mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
add warnings for the stding usage examples (#51859)
* Add a warning about vault leaving secrets in the shell history. * Add a warning about accidental newlines in vault encrypted strings. +label: docsite_pr
This commit is contained in:
parent
de2531e275
commit
4c1476932e
1 changed files with 8 additions and 0 deletions
|
@ -180,6 +180,10 @@ To encrypt a string read from stdin and name it 'db_password':
|
|||
|
||||
echo -n 'letmein' | ansible-vault encrypt_string --vault-id dev@a_password_file --stdin-name 'db_password'
|
||||
|
||||
.. warning::
|
||||
|
||||
This method leaves the string in your shell history. Do not use it outside of testing.
|
||||
|
||||
Result::
|
||||
|
||||
Reading plaintext input from stdin. (ctrl-d to end input)
|
||||
|
@ -204,6 +208,10 @@ Output::
|
|||
|
||||
User enters 'hunter2' and hits ctrl-d.
|
||||
|
||||
.. warning::
|
||||
|
||||
Do not press Enter after supplying the string. That will add a newline to the encrypted value.
|
||||
|
||||
Result::
|
||||
|
||||
new_user_password: !vault |
|
||||
|
|
Loading…
Reference in a new issue