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

[3.1.2 backport] CBG-3457 prevent N-1 downgrades by stamping db version into gateway registry #6500

Merged
merged 1 commit into from
Oct 5, 2023

Conversation

torcolvin
Copy link
Collaborator

backports CBG-3445 prevent N-1 downgrades by stamping db version into gateway registry (#6486)

…egistry (#6486)

* CBG-3445 stamp db version into gateway registry

- update gateway registry on startup to include new version numbers
- ensure that a database is not loaded if is more than a minor version upgrade

Improvements to ComparableVersion

- make copyable so that you can't pass a nil version by mistake
- change String() method to be a non pointer method to avoid mishaps if you don't print a pointer.
@adamcfraser adamcfraser merged commit e74b2ca into release/3.1.2 Oct 5, 2023
@adamcfraser adamcfraser deleted the CBG-3457 branch October 5, 2023 22:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants