Skip to content

feat(chart): decouple controller webhook cert from mesh SPIRE - #231

Merged
bpalermo merged 3 commits into
mainfrom
feat/decouple-webhook-cert
Jun 19, 2026
Merged

bpalermo merged 3 commits into
mainfrom
feat/decouple-webhook-cert

Conversation

@bpalermo

Copy link
Copy Markdown
Owner

Why

Before cutting the consolidated chart over to talos-main, the controller's validating webhook needs to actually validate. Today its serving cert is tied to spire.enabled (the mesh mTLS toggle): with mesh SPIRE on, the webhook serves a SPIRE SVID, which requires a ClusterSPIFFEID granting the controller the webhook Service DNS SAN (<release>-controller-webhook.<ns>.svc) — otherwise the apiserver↔webhook TLS hostname check fails and the webhook is fail-open.

What

New value controller.webhook.spire (default false), decoupled from mesh SPIRE:

  • false (default): webhook uses a Helm self-signed cert (genSignedCert, caBundle baked into the webhook config, lookup-reused across upgrades). Validates out of the box, no SPIRE setup.
  • true: webhook serves the controller's SPIRE X.509 SVID + runtime caBundle injection (still needs the ClusterSPIFFEID dnsNames).

Mesh SPIRE for agent/registrar (spire.enabled) is unchanged. Bumps the aether chart to 0.5.0.

Verified by rendering both modes: default → webhook Secret + caBundle, controller has no --spire-enabled, agent/registrar keep mesh SPIRE; controller.webhook.spire=true → no controller Secret, controller --spire-enabled + --webhook-config-name. Chart lint/template tests pass.

🤖 Generated with Claude Code

bpalermo and others added 3 commits June 19, 2026 09:23
The chart consolidation (#229) merged without updating the release workflows,
so the post-merge publish failed (`no such package charts/agent`) and the new
charts/images were never published.

- publish.yaml: push //charts/crds, //charts/aether (chart + agent/cni-install/
  registrar/controller images), //charts/prober — replacing the deleted
  agent/registrar push targets.
- proxy-release.yml: bump the proxy image in charts/aether/values.yaml, and as
  repository+tag (the proxy image is no longer a single `ref:`).

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Pihqn5RmVPhV9HTdBnqbvY
The controller webhook serving cert was tied to spire.enabled (the mesh mTLS
toggle), which forced a SPIRE SVID webhook whenever the mesh used SPIRE — and that
needs a ClusterSPIFFEID granting the controller the webhook Service DNS SAN, or
the apiserver↔webhook TLS fails (fail-open).

Add controller.webhook.spire (default false): the webhook uses a Helm self-signed
cert (genSignedCert, caBundle baked in) that validates out of the box, independent
of mesh SPIRE. Set true to use the controller's SPIRE SVID (still requires the
ClusterSPIFFEID dnsNames). Mesh SPIRE (agent/registrar) is unchanged.

Bumps the aether chart to 0.5.0.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Pihqn5RmVPhV9HTdBnqbvY
@bpalermo
bpalermo merged commit 3dc7748 into main Jun 19, 2026
14 checks passed
@bpalermo
bpalermo deleted the feat/decouple-webhook-cert branch June 19, 2026 12:52
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