You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After changing the SECRET_KEY in invenio.cfg and running invenio instance migrate-secret-key --old-key CHANGE_ME, users are unable to log in with the message "incorrect password". It appears the command accepts any value as old-key without regenerating the secrets with the new secret key, posing a potential security risk to not be able to access the system after.
Steps to Reproduce
Create a user using user/password method
Make sure you able to login with your password.
Change SECRET_KEY in invenio.cfg.
Run the command invenio instance migrate-secret-key --old-key CHANGE_ME.
Attempt to log in with a user account using username and password.
Encounter "incorrect password" error.
Expected behavior
Users should be able to log in with their credentials after the secret key migration, and the process should validate the old-key properly to ensure secrets are regenerated with the new secret key securely.
Additional context
The issue was discovered during testing of the migrate-secret-key command, raising concerns about the command's validation of the old-key parameter and the regeneration process of secrets.
The text was updated successfully, but these errors were encountered:
Package version (if known): V12 latest
Describe the bug
After changing the
SECRET_KEY
ininvenio.cfg
and runninginvenio instance migrate-secret-key --old-key CHANGE_ME
, users are unable to log in with the message "incorrect password". It appears the command accepts any value asold-key
without regenerating the secrets with the new secret key, posing a potential security risk to not be able to access the system after.Steps to Reproduce
SECRET_KEY
ininvenio.cfg
.invenio instance migrate-secret-key --old-key CHANGE_ME
.Expected behavior
Users should be able to log in with their credentials after the secret key migration, and the process should validate the
old-key
properly to ensure secrets are regenerated with the new secret key securely.Additional context
The issue was discovered during testing of the
migrate-secret-key
command, raising concerns about the command's validation of theold-key
parameter and the regeneration process of secrets.The text was updated successfully, but these errors were encountered: