Skip to content

[v12] Hold Auth init lock for the duration of initialization#29709

Merged
rosstimothy merged 3 commits intobranch/v12from
tross/backport-29593/v12
Jul 28, 2023
Merged

[v12] Hold Auth init lock for the duration of initialization#29709
rosstimothy merged 3 commits intobranch/v12from
tross/backport-29593/v12

Conversation

@rosstimothy
Copy link
Copy Markdown
Contributor

Backport #24559, part of #25639 and #29593 to branch/v12.

tobiaszheller and others added 3 commits July 27, 2023 14:52
* Add configuration with optional timeout to AcquireLock

* rename to RetryInterval
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 marked this pull request as ready for review July 27, 2023 19:28
@github-actions github-actions Bot requested review from espadolini and tigrato July 27, 2023 19:29
@rosstimothy rosstimothy added this pull request to the merge queue Jul 28, 2023
Merged via the queue into branch/v12 with commit e106599 Jul 28, 2023
@rosstimothy rosstimothy deleted the tross/backport-29593/v12 branch July 28, 2023 12:32
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.

4 participants