OIDC client secret is invalid error when deploying a VirtualServer on Nginx Plus on Kubernetes #2555
-
Hi, I am getting the following when I try to deploy a virtual server in kubernetes using Nginx Plus in EKS: Warning AddedOrUpdatedWithWarning 38s nginx-ingress-controller Configuration for mynmespace/my-virtual-server was added or updated ; with warning(s): OIDC policy mynamespave/kycloak-oidc-policy references an invalid secret mynamespace/oidc-secret: OIDC client secret is invalid: It must contain valid ASCII characters, must have all '"' escaped and must not contin any '$' or whitespaces ('\n', '\t' etc.) or end with an unescaped '' I am using similar to the following: Secret: Policy: Virtual Server: apiVersion: k8s.nginx.org/v1
Any thoughts on why I keep getting this error? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
@billb-asg Hello there.
How did you create your secret? |
Beta Was this translation helpful? Give feedback.
@billb-asg Hello there.
From the error, it looks like your secret was not created correctly.
It must contain valid ASCII characters, must have all '"' escaped and must not contin any '$' or whitespaces ('\n', '\t' etc.) or end with an unescaped ''
How did you create your secret?
Are you able to decode your secret successfully?