Security requirements demand that no secrets appear in the shell history. Which command does not meet this requirement?
The command that does not meet the security requirement of not having secrets appear in the shell history is B. vault kv put secret/password value-itsasecret. This command would store the secret value ''itsasecret'' in the key/value secrets engine at the path secret/password, but it would also expose the secret value in the shell history, which could be accessed by other users or malicious actors. This is not a secure way of storing secrets in Vault.
The other commands are more secure ways of storing secrets in Vault without revealing them in the shell history. A. generate-password | vault kv put secret/password value would use a pipe to pass the output of the generate-password command, which could be a script or a tool that generates a random password, to the vault kv put command, which would store the password in the key/value secrets engine at the path secret/password. The password would not be visible in the shell history, only the commands. C. vault kv put secret/password value=@data.txt would use the @ syntax to read the secret value from a file named data.txt, which could be encrypted or protected by file permissions, and store it in the key/value secrets engine at the path secret/password. The file name would be visible in the shell history, but not the secret value. D. vault kv put secret/password value-SSECRET_VALUE would use the -S syntax to read the secret value from the environment variable SECRET_VALUE, which could be set and unset in the shell session, and store it in the key/value secrets engine at the path secret/password. The environment variable name would be visible in the shell history, but not the secret value.
[Write Secrets | Vault | HashiCorp Developer]
When looking at Vault token details, which key helps you find the paths the token is able to access?
Latosha
11 days agoGarry
18 days agoMatt
26 days agoKattie
1 month agoAdela
1 month agoBlondell
2 months agoKerry
2 months agoStephaine
2 months agoMarya
2 months agoElinore
3 months agoTayna
3 months agoJennie
3 months agoTamar
3 months agoDierdre
4 months agoArthur
4 months agoMica
4 months agoCatrice
5 months agoBong
5 months agoPeggy
5 months agoGearldine
5 months agoLanie
6 months agoKrystal
6 months agoLemuel
6 months agoNoe
6 months agoLashandra
7 months agoPercy
7 months agoChantell
7 months agoCordell
7 months agoPamella
9 months agoEmiko
10 months agoIvette
12 months agoSabina
1 year agoAntione
1 year agoBarney
1 year agoLindy
1 year agoOlive
1 year agoCarlee
1 year agoMarshall
1 year agoAvery
1 year agoWillard
1 year agoLaticia
1 year agoAvery
1 year agoRutha
1 year agoSylvia
2 years agoBette
2 years agoBeatriz
2 years agoJosephine
2 years agoFranchesca
2 years agoElbert
2 years agoYuette
2 years agoWalton
2 years agoMammie
2 years agoLatonia
2 years agoLashaunda
2 years agoBeatriz
2 years agoCassi
2 years agoCordelia
2 years agoMalinda
2 years agoMalcom
2 years ago