UNCLASSIFIED - NO CUI

Fix Vault initialization and injector admission in ambient mode

Summary

Closes #229 (closed) Closes #228 (closed)

Fix Vault startup and injector admission in an ambient mesh:

  • Add a PeerAuthentication scoped to this release's injector. Only its configured HTTPS webhook port accepts connections without Istio mTLS; other injector ports retain STRICT mTLS, and the namespace-wide Vault server policy stays intact. Quote the port map key so Flux can serialize the policy during post-rendering.
  • Check Kubernetes API reachability before vault operator init, so initialization does not produce credentials that cannot be saved. Exit before initialization when networking is unavailable and retry on the next container start.
  • Allow TCP 8443 alongside 443 in the SSO test's egress definition, matching the HTTPS gateway target port used for Keycloak OIDC discovery.

Includes the startup check, regression test, and SSO test policy from MR !324 at 8020b8e4. Retains one chart-version bump to 0.34.1-bb.7 and the regenerated README badge.

Umbrella Branch

fix/ambient-metrics-scraping

Validation

  • helm lint chart passed.
  • All 12 Bats tests passed, covering startup ordering, token Secret handling, scoped injector policy, custom webhook ports, string port-map keys, and disabled/nonambient configurations.
  • Both new regression assertions were observed failing before their respective fixes and passing afterward.
  • The three integrated implementation/test files match MR !324 (closed)'s source revision exactly.
  • Individual package CI uses the umbrella fix branch and this repository's package-specific test values. The separate combined integration MR !8539 tests all package branches together.
  • New clean-install/upgrade and SSO integration results are pending CI. No release-cluster deployment was performed.

Upgrade Notices

Existing clients that missed injection need a controlled recreation after webhook access is restored. Check their storage first: recreating a pod removes its emptyDir data. This change does not recreate client pods automatically.

When development autoInit is enabled and the Kubernetes API is unreachable, Vault exits before initialization and retries after a container restart, protecting initialization credentials from an unsuccessful Secret write. No manual configuration migration is required.

Edited by Jeffrey Victor

Merge request reports

Loading
Loading