UNCLASSIFIED - NO CUI

autoInit post-start fails on new installs under Istio ambient

Under Istio ambient, a new pod's traffic is dropped until its first postStart hook ends (https://github.com/istio/istio/issues/60969).

On a new install with no external KMS or S3 dependency, autoInit runs vault operator init during that hook and loses the root token and unseal keys. Vault is then initialized and sealed with no keys, so the pod stays in PostStartHookError. This is failing the sso jobs, and the chart's default storage should hit it too.

Fix: exit the hook before vault operator init if the Kubernetes API is unreachable. Ending the hook restores the pod's traffic, so init succeeds after the restart.

Edited by Jonathan Braswell