-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Key rotation leads to "Could not fetch private signing key for OpenID Connect" #1026
Comments
Thanks! I’ll investigate this over the weekend! |
Ok so this is actually a mixture of bad CLI error messages and mistaken assumptions:
No they're not, I'll fix the broken error messages but the root cause of this issue is misconfiguration. Thank you for reporting! |
Closes #1026 Signed-off-by: arekkas <aeneas@ory.am>
Closes #1026 Signed-off-by: arekkas <aeneas@ory.am>
Reopening for investigation following discussion on discord |
This patch resolves an issue which made it impossible to rotate secrets because an un-hashed version was used. Closes #1026 Signed-off-by: arekkas <aeneas@ory.am>
This patch resolves an issue which made it impossible to rotate secrets because an un-hashed version was used. Closes #1026 Signed-off-by: arekkas <aeneas@ory.am>
Hi,
I tested the new system key rotation feature of hydra v1.0.0-beta.9-alpine and it sees there is a bug.
First I start the hydra migration:
hydra migrate sql -e
Starting hydra:
SYSTEM_SECRET=system_secret_1 COOKIE_SECRET=cookie_secret_1 hydra serve all
Hydra is running normally.
Now I try to rotate the SYSTEM_SECRET. I use the new
migrate secret
command:OLD_SYSTEM_SECRET=system_secret_1 NEW_SYSTEM_SECRET=system_secret_2 hydra migrate secret $DATABASE_URL
This generates the following log message:
Then i run Hydra with the new secret:
SYSTEM_SECRET=system_secret_2 COOKIE_SECRET=cookie_secret_1 hydra serve all
This generates an error:
When I try to start hydra with the old
SYSTEM_SECRET
the same error appears.Running hydra with the environment variable
ROTATED_SYSTEM_SECRET
gives the same error message as well:SYSTEM_SECRET=system_secret_2 COOKIE_SECRET=cookie_secret_1 ROTATED_SYSTEM_SECRET=system_secret_2 hydra serve all
I would expect hydra to start normal with the new system secret.
All used secrets are 32 alphanumerics.
The text was updated successfully, but these errors were encountered: