-
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? |
Beta Was this translation helpful? Give feedback.
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 |
Beta Was this translation helpful? Give feedback.
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