Repository navigation
|
Hi guys, So when using step ca token, it is possible to supply a password via --provisioner-password-file however is there another way? stdin doesn't seem to work and I can't spot any env variables that are honoured (ideally we'd like to do it without ever dumping the provisioner password onto the target machine, as this is being done via ansible) Any suggestions or should I add support for this and open a PR? |
Answered by
tashian
Mar 22, 2022
Replies: 1 comment 3 replies
|
Hi @jwh, The approach we recommend here is to use process substitution. Assuming the env variable itself is well protected, you can safely do something like this: $ STEP_CA_PASSWORD=amazingpw; step ca token ... --provisioner-password-file <(echo -n "$STEP_CA_PASSWORD")See also: Our blog How to Handle Secrets on the Command Line Hope this helps :D |
3 replies
Answer selected by
jwh
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @jwh,
The approach we recommend here is to use process substitution. Assuming the env variable itself is well protected, you can safely do something like this:
See also: Our blog How to Handle Secrets on the Command Line
Hope this helps :D