Skip to content

don't delete unit schedule file#24631

Merged
fspmarshall merged 3 commits intomasterfrom
fspmarshall/dont-delete-upgrade-schedule
May 9, 2023
Merged

don't delete unit schedule file#24631
fspmarshall merged 3 commits intomasterfrom
fspmarshall/dont-delete-upgrade-schedule

Conversation

@fspmarshall
Copy link
Copy Markdown
Contributor

Updates the unit schedule exporter to blank the upgrade schedule file instead of deleting it when unhealthy. This change is intended to preserve the file permissions of the schedule file across resets so that users running teleport as a non-root user can choose to grant it the ability to modify the schedule file without also granting said user the ability to modify other upgrader parameters (e.g. endpoint).

This PR also slightly loosens the default file permissions so that non-root users can view (but still not edit) the upgrader parameters. This is safe because the upgrader parameters never contain any secret values.

@fspmarshall fspmarshall added this pull request to the merge queue May 9, 2023
Merged via the queue into master with commit 02b0e79 May 9, 2023
@fspmarshall fspmarshall deleted the fspmarshall/dont-delete-upgrade-schedule branch May 9, 2023 18:37
@public-teleport-github-review-bot
Copy link
Copy Markdown

@fspmarshall See the table below for backport results.

Branch Result
branch/v13 Create PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants