-
Notifications
You must be signed in to change notification settings - Fork 59
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
hashi_vault - lookup plugin should allow environment variables for Username / Password auth #54
Comments
Hey @briantist I would be interested in putting in a PR for this! Is there any special contributing guide I should follow? |
Unfortunately there's not a collection-specific guide to follow just yet. Luckily this change is exceptionally small, so the things you'd need to follow are:
Take a look at how the existing env vars are defined up in the doc string for the plugin. Don't forget to add One thing I want to point out however: your examples, using the |
@nwerker The changes referenced above have been released in v1.2.0. |
@briantist Thank you very much for the implementation! Sorry for not getting back to you sooner, I was a few months unavailable due to wrist surgery! We will profit a lot from this changes, thank you heaps! |
@nwerker no worries, thank you for opening the issue, and I wish you a speedy recovery! |
SUMMARY
Moved from following issue in previous repository: Original Issue
Other authentication method parameters like token for instance can be passed via certain environment variables. There should be specific environment variables to pass "username", "password" and "mount_point" parameters to allow for cleaner and more flexible calls when using the lookup plugin with instance or userpass authentication.
ISSUE TYPE
COMPONENT NAME
hashi_vault
ADDITIONAL INFORMATION
This would allow for global initializing of the parameters and solve problems of reuising them on each usage of the lookup plugin.
This would be an example of the current state:
This would be an example of how the usage after implementation:
The text was updated successfully, but these errors were encountered: