Skip to content

chore(chart): OPA ext_authz preset 1.20.2 -> 1.21.1 (YAML 1.2 core schema) - #1247

Merged
bpalermo merged 2 commits into
mainfrom
chore/opa-1.21-1222
Oct 5, 2026
Merged

bpalermo merged 2 commits into
mainfrom
chore/opa-1.21-1222

Conversation

@bpalermo

@bpalermo bpalermo commented Oct 5, 2026

Copy link
Copy Markdown
Owner

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-plugin v1.21.1-envoy).
  • charts/aether 2.4.5 -> 2.4.6.
  • docs/configuration.md (the preset's docs) and the values.yaml comment now carry the operator note below.

What the release notes required (OPA 1.20.2 -> 1.21.0 -> 1.21.1)

  • YAML 1.2 core schema (breaking): everywhere OPA reads YAML (--data, bundles, config files, yaml.unmarshal), bare yes/no/on/off/y/n are strings, not booleans; true/false unchanged. 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 the opa.policy .rego file. 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 uses yaml.unmarshal or who run their own OPA YAML.
  • Empty literals typed as empty (1.21.0): selecting a key from {}/[] 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 (prober authzCanary comment: 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 under failureMode: DENY is a 403 on every opted-in route.
  • Flags/config keys: none removed or renamed. --skip-version-check, --addr=unix://, plugins.envoy_ext_authz_grpc.addr and decision_logs.console all still work (verified below). 1.21.1 only fixes a 1.21.0 compiler regression.

Verification

  • Ran openpolicyagent/opa:1.21.1-envoy-static locally 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). An envoy.service.auth.v3.Authorization/Check over the socket (from grpcurl; reflection enabled on that test instance only) returned OK for x-authz: letmein and PERMISSION_DENIED (code 7) without it.
  • With a policy that selects from {}, the same image exits 1 with rego_type_error, which confirms the startup-failure note.
  • helm template with the preset enabled renders image: "openpolicyagent/opa:1.21.1-envoy-static". No helm_template_test or 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

  • There is no ext_authz e2e under e2e/, so nothing ran on kind. The talos-main authzCanary (prober chart) is the in-cluster check after deploy.
  • openpolicyagent/opa:1.21.1-envoy-1-static was 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

bpalermo and others added 2 commits October 5, 2026 10:06
…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
@bpalermo
bpalermo merged commit 65e473a into main Oct 5, 2026
24 checks passed
@bpalermo
bpalermo deleted the chore/opa-1.21-1222 branch October 5, 2026 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chart: OPA preset image 1.20.2 → 1.21.x changes YAML parsing to the 1.2 core schema (yes/no/on/off stop being booleans) — maintainer decision

1 participant