Issues with Ordering When Using Vault CLI's -no-print
Argument
Today I've been fighting a bit of an issue with the Vault CLI (v1.1.2) not masking the output of a vault login
.
It appears that this is due to the ordering of the arguments I was using:
-vault login -method=aws -path=aws-ec2 role=.... -no-print=true
+vault login -no-print=true -method=aws -path=aws-ec2 role=....
In the former command, it appears that the EC2 auth takes arguments (i.e. role
) which are slightly different to Vault's usual arguments, such as -no-print
.
By moving it earlier in the command, it no longer prints output for the result of login
.