-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
feat: allow vault secret to handle write operation #5068
feat: allow vault secret to handle write operation #5068
Conversation
Thank you for your contribution! 🙏 We will review your PR as soon as possible. While you are waiting, make sure to:
Learn more about: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good!
@loispostula do you think you can add unit test for this? hashicorpvault_handler.go
is missing test coverage, so we should work on improving this 🙏
@zroubalik I'm working on adding a e2e test as well, and while adding it I discover an issue, so I'll update my commit with all that |
@zroubalik I've changed the approach for the PR. I've added support for different vault secret backend. The default behaviour remains the same, if no type is probided, the secret is handled as either a v1 or v2 secret (to keep behaviour of #4152). This allows me to conduct specific Regarding testing, I've move the secret fetching inside of the I've also made another notable change which is to bundle the call to the vault api by path. This is the default behaviour of |
Signed-off-by: Loïs Postula <lois@postu.la>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for the great contribution! I like the general direction, I love the tests! I have just a few nits.
Signed-off-by: Loïs Postula <lois@postu.la>
/run-e2e hashicorp |
@loispostula what I can see in the test logs logs:
|
Thanks a lot, I've replicated locally, and I had not update the e2e test to use the |
Signed-off-by: Loïs Postula <lois@postu.la>
/run-e2e hashicorp |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, great job! Thanks a lot for this great contribution. 🚀
Please just resolve the last few things on the docs PR and we can go ahead and merge this!
🙏
@zroubalik Thanks, doc pr updated :D Thanks for all the feedback |
Signed-off-by: Loïs Postula <lois@postu.la> Signed-off-by: anton.lysina <alysina@gmail.com>
Allow hashicorp vault secret to use write operation
Checklist
Fixes #5067
Relates to kedacore/charts#547 and kedacore/keda-docs#1242