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

Add option to configure a vault proxy instead of an agent #495

Open
liad5h opened this issue Jul 8, 2023 · 1 comment
Open

Add option to configure a vault proxy instead of an agent #495

liad5h opened this issue Jul 8, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@liad5h
Copy link

liad5h commented Jul 8, 2023

Is your feature request related to a problem? Please describe.
When a sidecar container is injected into a pod, the sidecar container authenticates to Vault and can then render secrets and provide them to the main container.
If the container wishes to interact with Vault through the local agent, it needs the agent token or any other token.

Today it is possible to configure the sidecar container to act as a proxy (via api_proxy) but this will be deprecated in v1.17, see:

Describe the solution you'd like
Add an option to inject a Vault Proxy instead of a Vault Agent -

arg = fmt.Sprintf("touch %s && vault agent -config=%s/config-init.hcl", TokenFile, configVolumePath)

An annotation like vault.hashicorp.com/sidecar-type: <agent / proxy> would be great.

Describe alternatives you've considered
It is also possible to deploy the proxy outside of the pod but doing that will use the same token for all of the client requests. In my opinion this is a big security risk.

Additional context
To achieve an api_proxy today, the vault.hashicorp.com/configmap annotation is required, and all of the configurations should be moved into the configmap. only then can I add the below block to get the proxy started:

api_proxy {
   use_auto_auth_token = true
}
@liad5h liad5h added the enhancement New feature or request label Jul 8, 2023
@liad5h
Copy link
Author

liad5h commented Jul 10, 2023

opened #496

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

No branches or pull requests

1 participant