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 auth should refuse to start when jumping major versions #41782

Open
r0mant opened this issue May 20, 2024 · 0 comments · May be fixed by #43520
Open

Teleport auth should refuse to start when jumping major versions #41782

r0mant opened this issue May 20, 2024 · 0 comments · May be fixed by #43520
Assignees
Labels
feature-request Used for new features in Teleport, improvements to current should be #enhancements

Comments

@r0mant
Copy link
Collaborator

r0mant commented May 20, 2024

From time to time we get S1's from folks who attempt to jump multiple major versions at once when upgrading despite our compatibility guarantees that state that only adjacent major upgrades are supported. This leads to corrupted backend, broken cluster and lengthy recovery time.

Let's prevent these situations by having auth to just refuse to start when it detects an incompatible upgrade path is being attempted. One way to implement this would be to have auth save its version in the backend and then check it the first thing during startup to make sure that last "saved" version is not more than 1 major version behind, and abort startup if it is before any backend migrations are done, and exit with an error exit code and a clear error message explaining that this is unsupported upgrade path and linking to the compatibility documentation.

@r0mant r0mant added the feature-request Used for new features in Teleport, improvements to current should be #enhancements label May 20, 2024
@vapopov vapopov self-assigned this Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Used for new features in Teleport, improvements to current should be #enhancements
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants