Given a Bash Shell say in a Docker container running on Gitlab, for example, how would I get the password to get passed in?
When I login with this:
$ vault login -method=ldap username=myusername
It asks me for a password.
How do I get the prompt to not stop and for the password to be passed in as a variable?
I plan on using Gitlab Variables to pass in my password.
You should consider using JWT (JSON Web Token) mutual authentication between Gitlab and Vault. This way there's no need to save any passwords anywhere (including variables), that is you first obtain a temporary Vault token via JWT Auth like this:
And then you can access necessary secrets like this:
And when finished you can revoke this temporary token by: