-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
authprovider: Add support for expiring auth cache #5684
Conversation
64333ae
to
76b18b7
Compare
76b18b7
to
be0ce1a
Compare
} | ||
ap.authConfigCache[host] = &ac | ||
entry, exists := ap.authConfigCache[host] | ||
if exists && !ap.expireAc(entry.Created, host) { |
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.
I think some sane expiration defaults in here would be ok. Eg. 10min?
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.
Sounds good.
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.
Updated to use 10min default.
be0ce1a
to
246572f
Compare
This exposes a mechanism to expire cached auth configs. Signed-off-by: Brian Goff <[email protected]>
246572f
to
150e798
Compare
I'm testing these changes with a private repo to see how this does. |
That'll take like 7-9 hours to actually finish. |
This exposes a mechanism to expire cached auth configs.