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

[teleport-update] Protect against disk space leaks #49309

Merged
merged 3 commits into from
Nov 23, 2024

Conversation

sclevine
Copy link
Member

This PR ensures that teleport-update removes installations of Teleport that are no longer referenced by its configuration (update.yaml) or linked into /usr/local/bin.

Note that the logic avoids removing partially linked installations that are no longer referenced by configuration. This case could occur if a Teleport binary is removed in newer versions of Teleport, as teleport-update only atomically replaces (and never deletes) symlinks.


The teleport-update binary will be used to enable, disable, and trigger automatic Teleport agent updates. The new auto-updates system manages a local installation of the cluster-specified version of Teleport stored in /var/lib/teleport/versions.

RFD: #47126
Goal (internal): https://github.com/gravitational/cloud/issues/10289

@sclevine sclevine added the no-changelog Indicates that a PR does not require a changelog entry label Nov 21, 2024
@github-actions github-actions bot requested review from gzdunek and r0mant November 21, 2024 05:39
@sclevine sclevine force-pushed the sclevine/teleport-update-orphans branch from 3e2d32d to 7275296 Compare November 23, 2024 01:14
@sclevine sclevine enabled auto-merge November 23, 2024 01:14
@sclevine sclevine added this pull request to the merge queue Nov 23, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Nov 23, 2024
@sclevine sclevine added this pull request to the merge queue Nov 23, 2024
Merged via the queue into master with commit e8b3d21 Nov 23, 2024
40 checks passed
@sclevine sclevine deleted the sclevine/teleport-update-orphans branch November 23, 2024 02:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-changelog Indicates that a PR does not require a changelog entry size/sm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants