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

[v15] Prevent overwriting existing host_uuid file #48443

Merged
merged 1 commit into from
Nov 5, 2024

Conversation

rosstimothy
Copy link
Contributor

Backport #48012 to branch/v15

@rosstimothy rosstimothy added backport no-changelog Indicates that a PR does not require a changelog entry labels Nov 5, 2024
Copy link

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

Access this pull request here: https://pr-48443.d1v2yqnl3ruxch.amplifyapp.com

@rosstimothy rosstimothy force-pushed the tross/backport-48012/v15 branch from f713054 to 7ee353a Compare November 5, 2024 14:41
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/v15 branch from 7ee353a to d1e73f4 Compare November 5, 2024 15:00
@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/v15 with commit ecc5ef9 Nov 5, 2024
37 checks passed
@rosstimothy rosstimothy deleted the tross/backport-48012/v15 branch November 5, 2024 18:37
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