Obtain the secret used by
gangway:
kubectl get secrets gangway -n tanzu-system-auth -o 'go-template={{ index .data "clientSecret" }}'
Vk13Yxxxxxx
Decode the secret:
kubectl get secrets gangway -n tanzu-system-auth -o 'go-template={{ index .data "clientSecret" }}' | base64 -D
VMware1!
After switching the
kubectl
context back to management cluster, confirm that the decoded secret is the same as specified in the
staticClients
section of the
configmap
used by dex. If not, please change it to match the decoded value.
kubectl get cm dex -n tanzu-system-auth -o 'go-template={{ index .data "config.yaml"}}' | grep -C5 secret
staticClients:
- id: workload
redirectURIs:
- 'https://<someIP>:30166/callback'
name: 'workload'
secret: VMware1!