Warrant is a highly scalable, centralized authorization service based on Google Zanzibar. Use it to define, enforce, query, and audit application authorization and access control.
Describe the bug
Currently, if using an older version of warrant, the auto-migrate will attempt to apply migrations from main which includes migrations that are not part of the running version.
To Reproduce
Steps to reproduce the behavior:
Run an old version of warrant (e.g. v1.0.1)
Upon startup, auto-migrate will run all migrations on main and cause the service to crash.
Expected behavior
The auto-migrate feature should fetch migrations from the relevant release/version rather than using the migrations on main.
Describe the bug Currently, if using an older version of warrant, the auto-migrate will attempt to apply migrations from
main
which includes migrations that are not part of the running version.To Reproduce Steps to reproduce the behavior:
v1.0.1
)main
and cause the service to crash.Expected behavior The auto-migrate feature should fetch migrations from the relevant release/version rather than using the migrations on
main
.Additional context N/A