mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-06 22:32:16 +00:00
fix(oidc): use authenticated encryption for opaque tokens (#12017)
# Which Problems Are Solved Opaque tokens now use authenticated encryption. # How the Problems Are Solved - Upgrade zitadel/oidc to v3.47 - Copy crypto implementation for refresh and session tokens (internal to zitadel) - Added config that allows validating old tokens for gradual roll-out # Additional Changes - Set NX cache for `integration-test-build` to `false`, working on a seperate fix. # Additional Context - closes #11315 --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: muhlemmer <[email protected]>
This commit is contained in:
@@ -774,6 +774,17 @@ EncryptionKeys:
|
||||
EncryptionKeyID: "idpConfigKey" # ZITADEL_ENCRYPTIONKEYS_IDPCONFIG_ENCRYPTIONKEYID
|
||||
DecryptionKeyIDs: # ZITADEL_ENCRYPTIONKEYS_IDPCONFIG_DECRYPTIONKEYIDS (comma separated list)
|
||||
OIDC:
|
||||
# Accept opaque tokens (access, session, refresh tokens, PATs etc) created by older ZITADEL versions.
|
||||
# Legacy tokens are vulnerable to certain crypto attacks,
|
||||
# so this should only be enabled during a migration and disabled afterwards.
|
||||
# After upgrading ZITADEL, new values will use authenticated encryption.
|
||||
# When this option is enabled tokens emitted from before the upgrade will still be accepted until they expire,
|
||||
# allowing gradual rollout of new tokens.
|
||||
# This allows upgrading ZITADEL without forcing logout of all users (and invalidating all PATs)
|
||||
# This option should be disabled as soon as all tokens have been replaced and PATs rotated.
|
||||
# Note: older versions of ZITADEL aren't able to verify newer tokens.
|
||||
# Downgrading ZITADEL will always logout all users that obtained a token after the upgrade.
|
||||
LegacyToken: true # ZITADEL_ENCRYPTIONKEYS_OIDC_LEGACYTOKEN
|
||||
EncryptionKeyID: "oidcKey" # ZITADEL_ENCRYPTIONKEYS_OIDC_ENCRYPTIONKEYID
|
||||
DecryptionKeyIDs: # ZITADEL_ENCRYPTIONKEYS_OIDC_DECRYPTIONKEYIDS (comma separated list)
|
||||
SAML:
|
||||
|
||||
Reference in New Issue
Block a user