You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
chart: with the SPIRE-served webhook, namespaceInjection on and injectPodNdots off, the controller has no RBAC to patch the mutating webhook's caBundle #1411
controller-rbac.yaml grants mutatingwebhookconfigurations only under injectPodNdots. But controller-webhook.yaml renders the MutatingWebhookConfiguration, and controller-deployment.yaml passes --mutating-webhook-config-name, when EITHER injectPodNdots or namespaceInjection is on. With controller.webhook.spire=true, namespaceInjection=true and injectPodNdots=false, the controller is told to maintain the configuration's caBundle and has no permission to. Measured in a render; not run on a cluster.
Consequence if it holds at runtime: the mutating webhook's CA bundle is never set, and with failurePolicy: Ignore namespace-based mesh injection and the identity-gate init container silently do not happen.
Fix: grant the rule under the same condition that renders the configuration (one shared helper for the condition), with a template test for each combination. Check talos-main's values to see whether it runs the affected combination.
Reported by the chart test-rule work (PR #1410), not changed there.
Activity
fix(chart): the controller's webhook RBAC follows the condition that …