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

[v13] Hold Auth init lock for the duration of initialization #29706

Merged
merged 1 commit into from Jul 28, 2023

Conversation

rosstimothy
Copy link
Contributor

Backport #29593 to branch/v13

Auth now uses `RunWhileLocked` instead of `AcquireLock` to ensure
that the initialization lock is held until the bootstrapping
process is completed. Prior, Auth only held the lock for 30s which
could allow multiple Auths to attempt bootstrapping simultaneously.
Initialization should complete prior to 30s in most cases, but it
is not guarateed, especially on first boot when CAs are being
generated and a large data migration may be needed.
@rosstimothy rosstimothy added this pull request to the merge queue Jul 28, 2023
Merged via the queue into branch/v13 with commit 5b46d92 Jul 28, 2023
21 checks passed
@rosstimothy rosstimothy deleted the bot/backport-29593-branch/v13 branch July 28, 2023 12:35
@fheinecke fheinecke mentioned this pull request Sep 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants