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

[v17] Prevent overwriting existing host_uuid file #48438

Merged
merged 1 commit into from
Nov 5, 2024

Conversation

rosstimothy
Copy link
Contributor

Backport #48012 to branch/v17

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 added backport no-changelog Indicates that a PR does not require a changelog entry labels Nov 5, 2024
@rosstimothy rosstimothy marked this pull request as ready for review November 5, 2024 14:36
@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/v17 with commit 9fb784e Nov 5, 2024
45 checks passed
@rosstimothy rosstimothy deleted the tross/backport-48012/v17 branch November 5, 2024 18: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