You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
chart: proxy.authzSidecar.failureMode is compared with a raw string equality, so any spelling variance silently selects fail-closed #770
Found by the 2026-09-15 codebase review (dead-code sweep, chart mutation rendering).
charts/aether/values.yaml:386 documents proxy.authzSidecar.failureMode as an ALLOW/DENY switch, but the only consumer in the templates is a single {{- if eq .Values.proxy.authzSidecar.failureMode "ALLOW" }}. Allow, allow, a trailing space, or a YAML-quoted value with whitespace all fail the comparison and the ext_authz filter renders with failure_mode_allow: false — i.e. fail-closed on an authorization control, with no error, no warning, and nothing in helm lint.
Fix (one PR, chart patch bump):
Normalise before comparing: {{- if eq (upper (trim (toString .Values.proxy.authzSidecar.failureMode))) "ALLOW" }}.
Reject anything else at render time: {{- if not (has (upper (trim …)) (list "ALLOW" "DENY")) }}{{ fail "proxy.authzSidecar.failureMode must be ALLOW or DENY" }}{{ end }}, or add charts/aether/values.schema.json with an enum for the key (schema validation is the more general fix and also covers the other string-enum values in the chart — worth a look at registrar.registryBackend, edge.config.*).
//charts/aether:aether_template_test gets a case for failureMode: allow (lower case) that must render failure_mode_allow: true, and one for failureMode: maybe that must fail.
Not exploitable on talos-main today (proxy.authzSidecar.enabled=false, enabled-inert), but it is the kind of default that bites at the worst time.
Activity
fix(build,chart): review hazards — authz failureMode guard (#770), bu…