Skip to content

[v11] Hold Auth init lock for the duration of initialization #29710

Merged
rosstimothy merged 3 commits intobranch/v11from
tross/backport-29593/v11
Jul 28, 2023
Merged

[v11] Hold Auth init lock for the duration of initialization #29710
rosstimothy merged 3 commits intobranch/v11from
tross/backport-29593/v11

Conversation

@rosstimothy
Copy link
Copy Markdown
Contributor

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

tobiaszheller and others added 3 commits July 27, 2023 15:06
* 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:29
@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/v11 with commit f7c2188 Jul 28, 2023
@rosstimothy rosstimothy deleted the tross/backport-29593/v11 branch July 28, 2023 12:33
@fheinecke fheinecke mentioned this pull request Aug 4, 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.

4 participants