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

[v16] Prevent overwriting existing host_uuid file #48439

Merged
merged 1 commit into from
Nov 5, 2024

Conversation

rosstimothy
Copy link
Contributor

Backport #48012 to branch/v16

Copy link

This pull request is automatically being deployed by Amplify Hosting (learn more).

Access this pull request here: https://pr-48439.d212ksyjt6y4yg.amplifyapp.com

@rosstimothy rosstimothy added the no-changelog Indicates that a PR does not require a changelog entry label Nov 5, 2024
@rosstimothy rosstimothy force-pushed the tross/backport-48012/v16 branch from 5a4e98c to 5132716 Compare November 5, 2024 14:42
In some circumstances, multiple Teleport processes may be trying
to write the host_uuid file in the same data directory simultaneously.
The last of the writers would win, and any process using a host
UUID that did not match what ended up on disk could get into a perpertual
state of being unable to connect to the cluster.

To avoid the raciness, the host_uuid file writing process is no
longer a blind upsert. Instead, special care is taken to ensure
that there can only be a single writer, and that any subsequent
updates to the file are aborted and the first value written is
used instead.
@rosstimothy rosstimothy force-pushed the tross/backport-48012/v16 branch from 5132716 to f45b81d Compare November 5, 2024 14:58
@rosstimothy rosstimothy marked this pull request as ready for review November 5, 2024 17:34
@github-actions github-actions bot added size/md tctl tctl - Teleport admin tool labels Nov 5, 2024
@rosstimothy rosstimothy added this pull request to the merge queue Nov 5, 2024
Merged via the queue into branch/v16 with commit ecc51ca Nov 5, 2024
43 checks passed
@rosstimothy rosstimothy deleted the tross/backport-48012/v16 branch November 5, 2024 19:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport no-changelog Indicates that a PR does not require a changelog entry size/md tctl tctl - Teleport admin tool
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants