-
Notifications
You must be signed in to change notification settings - Fork 178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
After the terraform apply, getting issue with vault export root token and crt looks invalid #76
Comments
The "unknown authority" issue might be due to the fact that Vault is set up with a self-signed certificate, and anything that communicates with the service will need to know what the CA is that signed that cert. For the vault CLI, you can set The |
Hi there! This has been automatically marked as stale because it has not had activity in the past 14 days. It will be closed in 14 days if no further activity takes place. |
I'm running this through a terraform based azure devops pipeline so these 2 bits are obviously creating the ca.pem and vault.pem on the build agent:
Would an extra provisioner which just copies the files over be ok? |
No matter even if I transfer the ca.pem and vault.pem across and do the export capath, tls still doesn't work. Any advice? |
Maybe. What's the full command-line and output? Plus any |
Thanks for the reply @dhduvall In my tls.tf:
I did change the provisioner cmds to the below, which allows a successful terraform run but I'm unable to find the ca.pem and vault.pem on both the build agent and pod:
Terraform apply stage output after using the above cmds instead: "> ../modules/gcp/vault-terraform/tls/ca.pem && chmod 0600 ../modules/gcp/vault-terraform/tls/ca.pem"]" Would like to be able to have the ca.pem and vault.pem transfer over during the terraform run. After a terraform apply, vault pods are all running and I kubectl exec into the vault and run these commands: / # export VAULT_ADDR="<api-address/load balancer endpoint ip>" Then when I proceed to do any kind of vault command, I get this:
EDIT: Logs
|
Hi
I have did cloning and exported the values of root token then looks token not available then when i run vault status looks ca.pem or crt is invalid and the errors are below
vault status
Error checking seal status: Get https://x.x.x.x/v1/sys/seal-status: x509: certificate signed by unknown authority
export VAULT_TOKEN="$(terraform output root_token)"
The output variable requested could not be found in the state
file. If you recently added this to your configuration, be
sure to run
terraform apply
, since the state won't be updatedwith new output variables until that command is run.
Let me know the work around for this, looks like there was PR few days before if this related to it?
The text was updated successfully, but these errors were encountered: