Repository navigation
chore(chart): OPA ext_authz preset 1.20.2 -> 1.21.1 (YAML 1.2 core schema) - #1247
Merged
Merged
Conversation
…hema) Move proxy.authzSidecar.opa.image to openpolicyagent/opa:1.21.1-envoy-static (tag pin, as before). OPA 1.21.0 parses all YAML under the 1.2 core schema: bare yes/no/on/off/y/n become strings, and documents with unreachable content are rejected. The preset feeds OPA no YAML (flags + a .rego file), so no chart config changes; the values comment and docs/configuration.md tell operators whose policy uses yaml.unmarshal or who ship their own OPA YAML. 1.21.0 also types empty literals as empty, documented alongside. Chart 2.4.5 -> 2.4.6. Closes #1222 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #1222
Change
proxy.authzSidecar.opa.image:openpolicyagent/opa:1.20.2-envoy-static->openpolicyagent/opa:1.21.1-envoy-static(tag pin, same style as before; the released opa-envoy-pluginv1.21.1-envoy).charts/aether2.4.5 -> 2.4.6.docs/configuration.md(the preset's docs) and thevalues.yamlcomment now carry the operator note below.What the release notes required (OPA 1.20.2 -> 1.21.0 -> 1.21.1)
--data, bundles, config files,yaml.unmarshal), bareyes/no/on/off/y/nare strings, not booleans;true/falseunchanged. Also "yaml: reject documents with unreachable content".The preset feeds OPA no YAML: only CLI flags (
run --server --skip-version-check --addr=unix://... --set=plugins.envoy_ext_authz_grpc.addr=... --set=decision_logs.console=true) and theopa.policy.regofile. There is no config file, bundle or data YAML in the chart templates or docs examples, so nothing to quote. The note is for operators whose policy usesyaml.unmarshalor who run their own OPA YAML.{}/[]or comparing a non-empty value to them is now a compile error. The chart ships no policy (opa.policy: "", required when enabled). The only example policy (proberauthzCanarycomment:allow if input...headers["x-authz"] == "letmein") is already Rego v1 and unaffected. Documented, because a policy that stops compiling means the sidecar does not start, which underfailureMode: DENYis a 403 on every opted-in route.--skip-version-check,--addr=unix://,plugins.envoy_ext_authz_grpc.addranddecision_logs.consoleall still work (verified below). 1.21.1 only fixes a 1.21.0 compiler regression.Verification
openpolicyagent/opa:1.21.1-envoy-staticlocally in Docker with the chart's exact args and the canary-style policy. It started the decision logger and the gRPC server on the UDS (path: envoy/authz/allow). Anenvoy.service.auth.v3.Authorization/Checkover the socket (from grpcurl; reflection enabled on that test instance only) returned OK forx-authz: letmeinand PERMISSION_DENIED (code 7) without it.{}, the same image exits 1 withrego_type_error, which confirms the startup-failure note.helm templatewith the preset enabled rendersimage: "openpolicyagent/opa:1.21.1-envoy-static". Nohelm_template_testor golden file pins the OPA image.bazel test //charts/...: 67/67 pass.bazel build --config=lint --@aspect_rules_lint//lint:fail_on_violation //...: clean.make format-check: exit 0.Not verified
e2e/, so nothing ran on kind. The talos-mainauthzCanary(prober chart) is the in-cluster check after deploy.openpolicyagent/opa:1.21.1-envoy-1-staticwas pushed to Docker Hub today with no matching opa-envoy-plugin release or tag yet. I deliberately did not pick it.🤖 Generated with Claude Code
https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr