Skip to content

chart: controller.webhook.spire=true is accepted with spire.enabled=false #1412

Closed

Description

@bpalermo

The chart renders --spire-enabled=true on the controller when controller.webhook.spire=true even if spire.enabled=false. A mesh without SPIRE cannot serve a SPIRE-issued webhook certificate. Seen in a render; whether any combination is intended was not checked.

Fix: fail the render with a clear message for the contradictory pair, with a helm_template_fail_test.

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
    minor
    chart
    on Oct 8, 2026
  2. bpalermo commented on Oct 8, 2026

    @bpalermo
    OwnerAuthor

    Finding from the #1411 work (PR #1426), which deliberately did NOT make this pair a render failure.

    controller.webhook.spire=true with spire.enabled=false renders a coherent configuration, and the docs describe it as supported:

    • values.yaml, the header of controller-webhook.yaml and docs/configuration.md say the webhook certificate source is decoupled from mesh SPIRE; spire.enabled is described as the mesh-wide mTLS switch, not "SPIRE is installed".
    • Everything the SPIRE-served webhook needs is gated on controller.webhook.spire alone; with the pair, only the controller uses SPIRE and it gets --identity-gate=false. The controller's --spire-enabled flag means only "serve the webhook with an SVID".
    • A render failure would break a documented path: the runbook tells Argo CD users to serve the webhook with SPIRE because helm template generates a new self-signed CA on every sync; a cleartext mesh would then have no stable webhook certificate.

    Against: one comment in agent-proxy-daemonset.yaml treats spire.enabled=false as "SPIRE is not deployed"; nothing in the repo uses the pair.

    Proposed resolution: not a bug. Close with a docs change: one sentence in values.yaml saying the pair is supported and what spire.enabled=false means; fix the stale spire.enabled row in docs/configuration.md (it still lists the webhook certificate); correct the comment on aether_identity_gate_no_spire_test, which says the pair cannot be rendered; and a template test pinning that it renders.

    🤖 Generated with Claude Code

    https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

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

    bugchartminor

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions