hashicorp / vault-helm

Helm chart to install Vault and other associated components.
Mozilla Public License 2.0
1.1k stars 881 forks source link

Vault doesn't Initialize with Auto-unseal using Transit Secrets Engine #480

Open reddy9694 opened 3 years ago

reddy9694 commented 3 years ago

Configured Vault using Auto-unseal using Transit Secrets Engine.

As mentioned in the following doc I've configured multiple vaults and everything seems to be working fine. https://learn.hashicorp.com/tutorials/vault/autounseal-transit?in=vault/auto-unseal

Vault A ( This is configured to use for unsealing the Vault B as mentioned in the above doc ) Vault B ( This is the actual vault where we store stuff... )

After Vault is up and running I tried the validating the following scenario.

What if I lost the unseal vault server (Vault A )?

I believe vault should come up with initialized, sealed mode so that I can unseal with the recovery key but that doesn't seems to happen in my case.

Am i missing anything here ?

tongpu commented 3 years ago

Have you tried to unseal via kubectl exec or by using kubectl port-forward? Using the Kubernetes service is probably not going to work because non of the endpoints are ready, because the readinessProbe is checking for an unsealed pod.