Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Altered hashivault_list.py to use the hvac list_secrets method #164
I updated the hashivault_list.py to utilise client.secrets.kv.v2.list_secrets and client.secrets.kv.v1.list_secrets methods and permit specifying the version and mount point.
With the current version, we had to modify several roles to account for the metadata/ in the path when transitioning to version 2 of the Vault KV secret engine.
This version removes the need to account for metadata/ in the Ansible role allowing a more seamless transition from version 1 to version 2 of the Vault KV.
I included some logic to ensure it won't break existing roles that use metadata/.
Tests also updated to test against both version 1 and version 2 of the KV.