-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[HashiVault] - Reuse provider clients when possible #1273
Description
Describe the solution you'd like
We're using ES to sync secrets from a private Hashicorp Vault instance into our Kubernetes cluster. We're authenticating via LDAP and finding that ES is making lots of requests to the authorization endpoint, despite the fact that the auth endpoint returns a token that is valid for 30 minutes.
Digging into the code a little bit, it seems that the vault client saves this token correctly, but ES creates a new client each time it reconciles each secret. I'd like to see a change to ES so that it re-uses client objects where possible.
What is the added value?
This should reduce the number of authentication requests, which will reduce load on both ends of the connection.
Give us examples of the outcome
For our Hashicorp Vault setup described above, we should only see a request to the auth/ldap endpoint when the current token expires, in our case roughly every 30 minutes.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status