Files
teleport/lib/auth/state
Vadym Popov 894761bab9 Prevent auth from starting when an incompatible major upgrade is detected (#43520)
* Teleport auth should refuse to start when jumping major versions (#41782)

* linter fixes

* code review changes:
- replaced to use process storage and state itme
- regexp replaced with semver
- additional check for v18 for empty version record in storage

* code review changes:
- add integration test
- store latest version in separate key

* code review changes:
- table tests
- error message

* code review changes:
- minor changes

* code review changes:
- reuse context for write operation

* code review changes:
- simplify integration test
- add downgrade check
- minor changes

* code review changes:
- move logic to the auth init

* code review changes:
- add development env to skip version check
- init the process storage if it is not set

* code review changes:
- add interface for local process storage
- use semver in storage instead

* change interface to version storage

* add fake version storage for other tests
2024-07-12 22:01:21 +00:00
..