-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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 to use environment variables for openid-connect plugin #11451
base: master
Are you sure you want to change the base?
feat: allow to use environment variables for openid-connect plugin #11451
Conversation
hi good morning @shreemaan-abhishek clould you kindly review this PR for me ? |
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.
please write a test case that uses vault as well.
@@ -290,7 +291,8 @@ local _M = { | |||
} | |||
|
|||
|
|||
function _M.check_schema(conf) | |||
function _M.check_schema(plugin_conf) | |||
local conf = fetch_secrets(plugin_conf) |
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.
this is not needed.
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.
this is not needed.↳
This is needed when someone puts a non-string value such as a Boolean into env var, otherwise the type inconsistency will fail the check
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.
please write a test case that uses vault as well.
t/fips/openid-connect.t
Outdated
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.
please add new test cases in t/plugin/openid-connect
Co-authored-by: Shreemaan Abhishek <[email protected]>
|
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.
the test cases for secret resource seems correct to me, please resolve the conflicts with master so that the tests can run
Great contribution!! I'm looking forward to this fix, as we are using AWS Secrets Manager as a secrets provider and we need to configure the secret as an environment variable. I hope this fix is merged and released soon 🙏 |
# Conflicts: # t/fips/openid-connect.t
hi @shreemaan-abhishek |
Description
feat: allow to use environment variables for openid-connect plugin
Checklist