Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Add possibility to get list of secrets from path #295

Closed
exilehanharr opened this issue Aug 18, 2022 · 2 comments · Fixed by #343
Closed

Feature Request: Add possibility to get list of secrets from path #295

exilehanharr opened this issue Aug 18, 2022 · 2 comments · Fixed by #343
Labels
enhancement New feature or request

Comments

@exilehanharr
Copy link

SUMMARY

We add users to VMs and the option to pick up all secrets from some path would be good.

I've checked hvac python module and found that it can do this:

list_response = client.secrets.kv.v2.list_secrets(
    path='hvac',
)

I think this option can help and other cases. If I can do this with the actual version of hashi_vault, could you please share the information about this?

ISSUE TYPE
  • Feature Idea
COMPONENT NAME

hashi_vault lookup

ADDITIONAL INFORMATION
@briantist briantist added the enhancement New feature or request label Aug 20, 2022
@briantist
Copy link
Collaborator

Hi @exilehanharr , welcome!

We don't yet have list support but it is certainly something I want to see at some point.

My vague plans were to first introduce a generic vault_list (lookup and module), similar to the generic vault_read and vault_write content we have now, which helps to fill in for missing specific versions, and then to add things like vault_kv2_list, vault_kv1_list, etc., wherever it makes sense to have more specific listings.


If you are interested in contributing, please have a look at our Contributor guide and let me know.

@tomkivlin
Copy link
Contributor

I have a similar need for this - I will raise a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants