Skip to content

feat(chart): authz sidecar resources, 2 controller replicas, an ext_authz canary, a priority class for the soak loader (#799) - #811

Merged
bpalermo merged 1 commit into
mainfrom
chore/authz-resources-controller-ha
Sep 19, 2026
Merged

bpalermo merged 1 commit into
mainfrom
chore/authz-resources-controller-ha

Conversation

@bpalermo

Copy link
Copy Markdown
Owner

Items 3 and 4 of the pending ranking; part of #799.

aether chart 0.92.26:

  • The authz (OPA) sidecar ran with resources: {} on every node: unbounded, and
    invisible to node request accounting. proxy.authzSidecar.resources defaults to
    10m / 32Mi requests and a 128Mi memory limit (idle OPA 1.20.2 measured ~10Mi /
    ~0m). No CPU limit: it is on the request path, and throttling turns into
    ext_authz timeouts, i.e. 403s under failureMode DENY.
  • OPA 1.20 deprecates --disable-telemetry; the preset now passes
    --skip-version-check, before a future OPA drops the old flag and the sidecar
    stops starting.
  • controller.replicaCount 1 -> 2, with a preferred anti-affinity between the
    replicas. Reconcilers stay leader-elected; the point is the admission webhooks,
    which every replica serves and which are failurePolicy: Ignore — while none
    answers, a pod created in an aether.io/managed namespace is admitted unmeshed.
    Deleting the single replica measured a 49 s gap on talos-main.

prober chart 0.4.0 — authzCanary (default off): Envoy's OTLP stats sink only
flushes counters that have been used, so a cluster where no route opts into
ext_authz exports no ext_authz statistics at all and has no evidence the sidecar
still evaluates policy (the 1.18.2 -> 1.20.2 bump could only be validated as
"starts, compiles, listens"). The canary is a dedicated authz-echo target with an
extAuthz HTTPFilter and a client asserting, every cycle, 200 with the allow header
and 403 without. Its own target on purpose: putting the filter on the prober's
echo would change what every soak baseline measured.

e2e/soak: the k6 runner gets PriorityClass aether-soak-loader (1000,
preemptionPolicy Never). A runner is a DaemonSet pod and cannot move; on a full
node the scheduler picked it twice as the victim for a surging aether-proxy pod
and that node's end-of-test summary was lost. Above the priority-0 test workloads
the victim becomes a svc-N pod, which reschedules elsewhere for free.

Verified: bazel test //charts/... and strict //website:all green; both charts rendered with helm template; the canary objects (incl. the HTTPFilter, through the admission webhook) and the k6 manifest pass kubectl apply --dry-run=server on talos-main; opa run --help on 1.20.2 lists --skip-version-check.

🤖 Generated with Claude Code

https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

…uthz canary, a priority class for the soak loader (#799)

aether chart 0.92.26:
- The authz (OPA) sidecar ran with `resources: {}` on every node: unbounded, and
  invisible to node request accounting. `proxy.authzSidecar.resources` defaults to
  10m / 32Mi requests and a 128Mi memory limit (idle OPA 1.20.2 measured ~10Mi /
  ~0m). No CPU limit: it is on the request path, and throttling turns into
  ext_authz timeouts, i.e. 403s under failureMode DENY.
- OPA 1.20 deprecates `--disable-telemetry`; the preset now passes
  `--skip-version-check`, before a future OPA drops the old flag and the sidecar
  stops starting.
- `controller.replicaCount` 1 -> 2, with a preferred anti-affinity between the
  replicas. Reconcilers stay leader-elected; the point is the admission webhooks,
  which every replica serves and which are failurePolicy: Ignore — while none
  answers, a pod created in an aether.io/managed namespace is admitted unmeshed.
  Deleting the single replica measured a 49 s gap on talos-main.

prober chart 0.4.0 — `authzCanary` (default off): Envoy's OTLP stats sink only
flushes counters that have been used, so a cluster where no route opts into
ext_authz exports no ext_authz statistics at all and has no evidence the sidecar
still evaluates policy (the 1.18.2 -> 1.20.2 bump could only be validated as
"starts, compiles, listens"). The canary is a dedicated `authz-echo` target with an
extAuthz HTTPFilter and a client asserting, every cycle, 200 with the allow header
and 403 without. Its own target on purpose: putting the filter on the prober's
`echo` would change what every soak baseline measured.

e2e/soak: the k6 runner gets PriorityClass `aether-soak-loader` (1000,
preemptionPolicy Never). A runner is a DaemonSet pod and cannot move; on a full
node the scheduler picked it twice as the victim for a surging aether-proxy pod
and that node's end-of-test summary was lost. Above the priority-0 test workloads
the victim becomes a svc-N pod, which reschedules elsewhere for free.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
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.

1 participant