pega-helm-charts icon indicating copy to clipboard operation
pega-helm-charts copied to clipboard

SRS OAuth fails with missing private key

Open maracle6 opened this issue 1 year ago • 0 comments

Describe the bug The Helm chart adds an env variable SERV_AUTH_PRIVATE_KEY, but we get an error message in the Pega log that says SERV_AUTH_CLIENT_SECRET hasn't been set.

com.pega.platform.securitycore.internal.oauth2.ClientAuthenticationProviderException: Unable to load auth data: [com.pega.platform.securitycore.internal.oauth2.PrivateKeyJWTProvider@31f90517: Incorrect private key: , com.pega.platform.securitycore.internal.oauth2.ClientSecretBasicProvider@2f6f2d91: Either SERV_AUTH_CLIENT_ID or SERV_AUTH_CLIENT_SECRET env vars empty

To Reproduce Configure OAuth as described in the documentation

Expected behavior Successful authentication. This feature begins working if we add to our tier definition:

custom: env: - name: SERV_AUTH_CLIENT_SECRET valueFrom: secretKeyRef: name: pega-srs-auth-secret key: privateKey

Chart version 3.10.0

maracle6 avatar Dec 12 '23 17:12 maracle6