Open nbonavia opened 5 years ago
I've also been using ansible-vault
(this package) in Python, with a vault password that has an id. I encrypt with just the password, i.e. vault = Vault('password')
(I don't see the option to enter a vault id). When I try to decrypt later in a playbook, with the password, both with and without specifying the vault id, I get Decryption failed (no vault secrets were found that could decrypt)
With the -vvvv
option, ansible-vault decrypt
gives Error: HMAC verification failed: Signature did not match digest.
I have been trying to decrypt ansible-vault enctrypted strings with python, but I could not find much documentation when it comes to using vault ids. I tried to create a vault with the latest version of ansible-vault
but I could not find examples of how to set up the Vault Id when you decode the ansible_vault part, and when I tried to use Vault("password"), I got an error that no secrets were found. Can someone provide some snippets that will help me decrypt the below string?