-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Vault agent ignored listener unless cache stanza is specified #14434
Comments
Right now the proxy and the cache are pretty tightly tied together. We should make this clear in the documentation as you suggest, since it's impractical at least in the short term for us to support proxying without caching. |
That makes sense -- I do question the removal of the 'bug' though. To me that is either bad design or a bug -- either way it should be addressed with more than just documentation. While we're talking caches -- any ETA on the extension of caching functionality to KV V2? The auth and token renewal is nice but if the agent could be used for latency reduction that would be fantastic. It would reduce a lot of pressure from the cluster too as some bad acting apps that constantly read the same secrets don't need to travel all the way there and cause audit entries. |
Call it bad design then, it's definitely an intentional limitation. To me bug implies an unintended defect, rather than a feature we haven't yet implemented. I agree its absence is very unfortunate, and I do hope it gets addressed sooner rather than later.
It is another often requested feature but I don't know when it will happen, sorry. |
Hi there! Going to close this issue as we've just implemented this as part of #18137 - this will be available in the next major release. In short, you'll be able to use a Thanks for raising this issue! |
Describe the bug
This is either a documentation update request or functionality change. The only place that there is even a hint that the cache is in the caching documentation, where a small note that in a backwards way makes the use of the block necessary.
My suggestion is to remove the requirement that the cache is defined before the agent binds to an ip+port. Having a listener block defined by the user in the config is enough of an intent that that agent should bind. This is already a requirement since the cache requires at least one listener.
The less intrusive change would be that when starting the agent and no cache is present, a WARN message should pop when a listener is defined in the configuration.
To Reproduce
Steps to reproduce the behavior:
Start agent without a cache stanza, but with a listener stanza and see that it gives no warning/error that it will not be binding to a socket or IP.
Expected behavior
Cache stanza should not be required for the agent to bind and act as a proxy without caching. Or cache is badly named as it's obviously not caching secrets but tokens as well.
Environment:
vault status
): 1.9.3, 1.8.7, 1.7.3vault version
): 1.5.5, 1.8.7, 1.9.3, 1.9.5Vault agent configuration file(s):
The text was updated successfully, but these errors were encountered: