1 token_review_endpoint.go: Invalid token: failed to validate JWT 1 token_review_endpoint.go:] End: Token review - authenticated = false, user = 1 token_review_endpoint.go: ] Begin: Token review 1 validator.go:] Invalid ID token: failed to verify signature: Could not verify JWT against any configured key.Aria Automation 8.18
The root cause is that the keyset used in the configuration is outdated. Aria Automation 8.18.1 rotates the key pair used to sign the tokens once in a year (every 11 months to be precise) and the old key pair is valid for 30 more days after it's been rotated.
To resolve the issue reconfigure the Single Sign-On setup for CCI.
Uninstall and unregister the CCI service in vCenter
Steps to check Supervisor cluster logs to match error:
1. ssh into the VCenter as root user
2. run /usr/lib/vmware-wcp/decryptK8Pwd.py inside the VC as shown in the code block below, it will print out the ip and password of the supervisor cluster.
ssh root@###### VMware vCenter Server 8.0.2.00000 Type: vCenter Server with an embedded Platform Services Controller (root@######) Password: Last login: Wed Jan 17 22:31:00 2024 from ###### Connected to service * List APIs: "help api list" * List Plugins: "help pi list" * Launch BASH: "shell" Command> shell Shell access is granted to root root@###### [ ~ ]# /usr/lib/vmware-wcp/decryptK8Pwd.py Read key from file Connected to PSQL Cluster: domain-######:###### IP: <IP of Supervisor Cluster> PWD: <Password of Supervisor Cluster> ------------------------------------------------------------
3. Use the ip (<IP of Supervisor Cluster>) and the password (<Password of Supervisor Cluster>) found in the previous step, ssh into the supervisor cluster, then run the cmd in the below block:
4. CCI Supervisor Service pod is under a namespace with "cci-service" as part of its name, hence we can use it to locate the namespace,
kubectl --kubeconfig /etc/kubernetes/admin.conf get ns | grep cci-service
svc-cci-service-domain-### Active 23m
5. List the pods in this namespace, you will find a pod with the prefix "cci-service",
kubectl --kubeconfig /etc/kubernetes/admin.conf -n svc-cci-service-domain-###get pod
NAME READY STATUS RESTARTS AGE
cci-service-##### 1/1 Running 0 25m
6. tail the logs of the pod, you will find the logging of each token request and the result of the token request
kubectl --kubeconfig /etc/kubernetes/admin.conf -n svc-cci-service-domain-### logs -f cci-service-#####