Skip to content

proxy pod: the ext_authz sidecar can start after the proxy is serving — authz errors (403 under failureMode DENY) until it is up #1275

Closed

Description

@bpalermo

Seen on the talos-main upgrade to chart 2.4.8 (2026-10-05 19:30Z), the first roll with the new OPA image (openpolicyagent/opa:1.21.1-envoy-static, #1247), which fired AetherAuthzCanaryErrors (ext_authz error: 2 in 10m).

In every new aether-proxy pod the authz container started 7–13 s after the proxy container, because the kubelet starts containers in order and the new image had to be pulled (10.4 s on worker-01):

node proxy started authz started
worker-03 19:29:50 19:30:03
worker-04 19:30:18 19:30:29
worker-01 19:30:46 19:30:57
worker-02 19:31:16 19:31:23
worker-05 19:31:44 19:31:53

On worker-01 the proxy answered two authz-canary requests in that window: envoy_http_capture_http_ext_authz_error_total{node="main-worker-01"} = 2, flat afterwards; ok/denied resumed 1:1 on all nodes. With failureMode: DENY those requests get a 403; a real route using the filter would see the same on every proxy roll that needs an image pull (and, to a lesser degree, on any roll).

Fix options: make the authz sidecar a native sidecar (init container with restartPolicy: Always and a startup probe on its socket) so it is up before the proxy container starts and outlives it on shutdown; or gate the proxy's readiness/hot-restart handoff on the authz socket accepting. Check the shutdown side too (sidecar exiting before the proxy drains). Add the ordering to the chart's helm_template_test and an e2e (there is none for ext_authz today).

🤖 Generated with Claude Code

https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions