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

CachingClientFactory: support client taints #717

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

benashz
Copy link
Collaborator

@benashz benashz commented Apr 29, 2024

The secret reconcilers have no way of advising the CachingClientFactory that a Client might be invalid. Now a reconciler can taint the Client if a Vault operation fails for some reason. The common case is where a Vault request resulted in a 403 (forbidden) status code. In this case the reconciler can taint the client so that the next call to factory for the tainted client will have the factory check that the client's token is still valid by reaching out to Vault's lookup lookup API. Client taints should be used sparingly, since they can increase the number of requests to Vault.

The secret reconcilers have no way of advising the CachingClientFactory
that a Client might be invalid. Now a reconciler can taint the Client if
a Vault operation fails for some reason. The common case is where a
Vault request resulted in a 403 (forbidden) status code. In this case
the reconciler can taint the client so that the next call to factory for
the tainted client will have the factory validate that the client's
token is still valid by performing reaching out to Vault's lookup lookup
API. Client taints should be used sparingly, since they can increase the
number of requests to Vault.
@benashz benashz requested a review from a team as a code owner April 29, 2024 21:52
@benashz benashz requested review from tvoran and thyton April 30, 2024 00:28
@benashz benashz added this to the v0.7.0 milestone Apr 30, 2024
Copy link
Contributor

@thyton thyton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@benashz benashz modified the milestones: v0.7.0, v0.8.0 May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants