Repository navigation
feat(chart): decouple controller webhook cert from mesh SPIRE - #231
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 aClusterSPIFFEIDgranting 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:genSignedCert,caBundlebaked into the webhook config,lookup-reused across upgrades). Validates out of the box, no SPIRE setup.ClusterSPIFFEIDdnsNames).Mesh SPIRE for agent/registrar (
spire.enabled) is unchanged. Bumps theaetherchart to0.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