[oidc] Clarify startup warning: Secret key for encrypting tokens should be 32 characters long
#33532
Labels
Milestone
Secret key for encrypting tokens should be 32 characters long
#33532
Description
When starting Quarkus, the following warning message will be displayed if your client secret is less than 32 characters in length.
Configuration
Logs
It is unclear what the significance of this warning is or what action should be taken by users. Furthermore a client secret is usually something generated by an external Identity Provider that you cannot customize.
Looking at #32192, and specifically the
TenantConfigContext#createTokenEncSecretKey
method, it appears that Quarkus is using the client secret (quarkus.oidc.credentials.secret
) to encrypt the OIDC session cookie. However, this is not mentioned in the OIDC configuration reference or the Migration Guide and it's unclear whether this is intentional or if it should be referencingquarkus.oidc.token-state-manager.encryption-secret
(as mentioned in the migration guide).quarkus/extensions/oidc/runtime/src/main/java/io/quarkus/oidc/runtime/TenantConfigContext.java
Lines 85 to 87 in d73267b
Implementation ideas
Add further clarifications to the warning message so that users can easily tell:
The text was updated successfully, but these errors were encountered: