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

Read specific vault key using vault path templating #41

Open
tsabados opened this issue Jul 5, 2021 · 1 comment
Open

Read specific vault key using vault path templating #41

tsabados opened this issue Jul 5, 2021 · 1 comment

Comments

@tsabados
Copy link

tsabados commented Jul 5, 2021

Is it possible to read a specific vault key using vault path templating?

Documentation suggests that it is possible like this:

key2: VAULT:/helm2/test/key2

where "key2" would be vault key under vault secret path "/helm2/test".

I have tested this with KV version v2 but the plugin seems to expect that there is a vault key named "value" under the secret path "/helm2/test/key2" specified in the path template.

I have already modified the plugin to use syntax like this:

key2: VAULT:/helm2/test;key2

but I am wondering if I am missing something here.

@Just-Insane
Copy link
Owner

Hello,

sorry for the late response on this.

As far as I am aware, Helm-Vault only supports reading keys/values either added by it or added using the same names as the keys it would add, which I think is just “value” as the key name.

I think it would be easy enough to add this functionality since all Vault interaction is done through a third-party client which should be able to read any key name, it just hadn’t been needed until now, and adds some complexity.

Development on this project has slowed unfortunately as I haven't had much time to tinker with Kubernetes/Vault lately, but if you are able to open a PR I can get it reviewed and merged.

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

No branches or pull requests

2 participants