zitadel / zitadel

ZITADEL - Identity infrastructure, simplified for you.
https://zitadel.com
Apache License 2.0
8.19k stars 509 forks source link

[Epic]: OIDC signing key management #7809

Open muhlemmer opened 4 months ago

muhlemmer commented 4 months ago

As an admin I want to be able to create, rotate and disable signing keys for OIDC tokens manually. Keys only exist on instance level, as they represent the issuer (instance domain).

Background / proposal was done in the Improve OIDC key management discussion.

eliobischof commented 4 months ago

To make it smaller, I'd create a story for api/oidc, frontend and migration each, put this one behind a feature flag and estimate it 3

muhlemmer commented 3 months ago

+1

When the access token lifetime on instance level is more than then public key lifetime from the zitadel runtime config (30 hrs in defaults.yaml), userinfo and introspection will fail when JWTs are used.

muhlemmer commented 3 months ago

To make it smaller, I'd create a story for api/oidc, frontend and migration each, put this one behind a feature flag and estimate it 3

Done, this issue is now an epic.

As now we want to use the feature flag, we can take care of migration this way: once the feature flag gets enabled we generate the keys as with instance creation. This has been added to the resource user story.