Skip to content

chart: proxy.authzSidecar.failureMode is compared with a raw string equality, so any spelling variance silently selects fail-closed #770

Closed

Description

@bpalermo

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):

  1. Normalise before comparing: {{- if eq (upper (trim (toString .Values.proxy.authzSidecar.failureMode))) "ALLOW" }}.
  2. 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.*).
  3. //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.

🤖 Generated with Claude Code

https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

Activity

  1. added
    bug
    on Sep 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions