-
Notifications
You must be signed in to change notification settings - Fork 173
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
Add support for injecting HTTPS_PROXY env var in agent containers #211
Conversation
I managed to validate this change in a local Kubernetes cluster. I validated these flows:
Please let me know if you want me to perform any other manual tests. |
One question I have is to whether it makes sense to inject the same value in the Since the recommended Vault server setup is to enable TLS, maybe this PR is good enough as is, but it may not work for development/test Vault clusters without TLS enabled, as requests are sent to Vault in plain HTTP. Let me know what you think. |
All looks good here @danielfm, do you mind resolving the conflicts? |
This struct seems to be used for defining the Vault agent configuration file[1], but since it doesn't have a specific flag for setting up a proxy address, this field is useless. [1] https://www.vaultproject.io/docs/agent
@jasonodonnell done. |
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, thanks!
…shicorp#211) * Add support for injecting HTTPS_PROXY env var in agent containers * Remove unnecessary field This struct seems to be used for defining the Vault agent configuration file[1], but since it doesn't have a specific flag for setting up a proxy address, this field is useless. [1] https://www.vaultproject.io/docs/agent
Why is this PR necessary, what does it do?
This PR aims to add to the injector the ability of setting the
HTTPS_PROXY
environment variable in the init/sidecar containers in order to allow requests to Vault to be made via a proxy.References:
Fixes: #205
Notes:
If the reviewers feel there are tests missing, please let me know! I may have missed something.
I'll try to run this version of the injector in a test cluster to validate the workflow, but in the mean time, feel free to comment.