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

[v10] backport #14698 (embed auth.Cache in auth.Server) #14984

Merged
merged 8 commits into from
Aug 3, 2022

Conversation

espadolini
Copy link
Contributor

@espadolini espadolini commented Jul 28, 2022

Backport of #14698 and #14986 to branch/v10

* Embed auth.Cache in auth.Server

* Hit the backend during Auth initialization

* Bypass the cache when rotating CAs

* Services.UpsertTrustedCluster is different

* Bypass the cache in waitForTunnelConnections

* Fix infinite recursion

* More cache bypassing during init and rotations

* Rename Services to Uncached in auth.Server

* Further cleanups

* Don't start the auth cache immediately

* Go back to Services rather than Uncached

* Comments and a missing method
It's is used in places that want the latest version (like registration)
Very little would hit those directly, and *auth.ServerWithRoles bypasses
the cache anyway.
@espadolini espadolini force-pushed the espadolini/v10-implicit-cache branch from 2d2e1b9 to 4bf3536 Compare August 2, 2022 08:13
@espadolini espadolini marked this pull request as ready for review August 2, 2022 08:14
@espadolini espadolini merged commit d552f04 into branch/v10 Aug 3, 2022
@espadolini espadolini deleted the espadolini/v10-implicit-cache branch August 5, 2022 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants