vault auth -method=ldap -address=https://vault.test.com username="${USER}" password=myPassword
envchain sea vault auth -method=ldap -address=https://vault.test.com username="${USER}" password="${DOMAIN_PASSWORD}m"
--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/hashicorp/vault/issues
IRC: #vault-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Vault" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vault-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vault-tool/54119552-e814-4943-ab2c-e668ed01b18e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/vault-tool/CAN3s8zZ1R60aE79u2%3DRscDrs4EDAGUyrPKbVD%3DDa3psH5X3Jug%40mail.gmail.com.
I am trying to supply the password to the Vault command line using EnvChain.I have the password stored in the keychain and I am able to grep it out and confirm that it's pulling the password from the keychain.However, I am now trying to get this password inserted into the Vault CLI. Here is the command before using EnvChain with a hard-coded password.vault auth -method=ldap -address=https://vault.test.com username="${USER}" password=myPassword
Then I wrapped the command inside of EnvChain. EnvChain gets the password and creates an environment variable that is LOCAL to the EnvChain process.envchain sea vault auth -method=ldap -address=https://vault.test.com username="${USER}" password="${DOMAIN_PASSWORD}m"
The problem is, it can't resolve the variable. Even when I try to echo it to the console, it's empty (envchain sea echo $DOMAIN_PASSWORD).