Skip to content

chart: with the SPIRE-served webhook, namespaceInjection on and injectPodNdots off, the controller has no RBAC to patch the mutating webhook's caBundle #1411

Closed

Description

@bpalermo

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.

🤖 Generated with Claude Code

https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

Activity

  1. added
    bug
    chart
    on Oct 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugchart

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions