1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/test
Adrian Likins 6e737c8cb6
Fix 'New Vault password' on vault 'edit' (#35923)
* Fix 'New Vault password' on vault 'edit'

ffe0ddea96 introduce a
change on 'ansible-vault edit' that tried to check
for --encrypt-vault-id in that mode. But '--encrypt-vault-id'
is not intended for 'edit' since the 'edit' should always
reuse the vault secret that was used to decrypt the text.

Change cli to not check for --encrypt-vault-id on 'edit'.

VaultLib.decrypt_and_get_vault_id() was change to return
the vault secret used to decrypt (in addition to vault_id
and the plaintext).

VaultEditor.edit_file() will now use 'vault_secret_used'
as returned from decrypt_and_get_vault_id() so that
an edited file always gets reencrypted with the same
secret, regardless of any vault id configuration or
cli options.

Fixes #35834
2018-03-27 14:12:21 -04:00
..
cache
integration Fix 'New Vault password' on vault 'edit' (#35923) 2018-03-27 14:12:21 -04:00
legacy exo_dns_record: remove limitation for multiple records only for A type (#35173) 2018-02-05 22:40:02 +01:00
results
runner Add argument to allow limiting docker container to s specific amount of memory (#37950) 2018-03-26 16:45:50 -05:00
sanity Use arg_spec type for comparisons on default and choices (#37741) 2018-03-26 12:15:32 -05:00
units Fix 'New Vault password' on vault 'edit' (#35923) 2018-03-27 14:12:21 -04:00
utils Update httptester for httpbin==0.6.2 2018-03-21 11:21:39 -07:00