.
While connected to the Supervisor cluster context, the following symptoms are observed and the client token lease shows older date.
Viewing API aggregator logs show:
kubectl -n svc-secret-store-domain-<ID> logs api-aggregator-<POD_ID> | less
INFO:keyvaluesecret_crd_rest.go:775: Method: ., URL: GET https://secret-store-service.svc-secret-store-domain-cx.svc.cluster.local:8200/v1/secret/metadata/secret-test?list=trueERROR:keyvaluesecret_crd_rest.go:820: Bao request returned status code 403 with body {"errors":["permission denied"]}ERROR:keyvaluesecret_crd_rest.go:332: Failed to list secrets in namespace secret-test: Couldn't list secrets: Bao request returned something other than 2xxINFO:keyvaluesecret_crd_rest.go:314: LIST API calledINFO:keyvaluesecret_crd_rest.go:223: Namespace is: secret-testINFO:keyvaluesecret_crd_rest.go:883: Client token lease {}, {} 0 xxxx-xx-xx INFO:11:21:30 keyvaluesecret_crd_rest.go:775: Method: ., URL: GET https://secret-store-service.svc-secret-store-domain-cx.svc.cluster.local:8200/v1/secret/metadata/secret-test?list=trueERROR:11:21:30 keyvaluesecret_crd_rest.go:820: Bao request returned status code 403 with body {"errors":["permission denied"]}ERROR:11:21:30 keyvaluesecret_crd_rest.go:332: Failed to list secrets in namespace secret-test: Couldn't list secrets: Bao request returned something other than 2xx
kubectl -n <secret-store-namespace> exec -it secret-store-0 -- shbao write auth/kubernetes/role/api-aggregator \bound_service_account_names=api-aggregator \bound_service_account_namespaces=<secret-store-service-namespace>\ttl=720h \max_ttl=2160hbao read auth/kubernetes/role/api-aggregatorkubectl rollout restart deployment api-aggregator -n <secret-store-service-namespace>Additional Information: If the API aggregator token is not expired but secret generation still fails, verify if the environment is impacted by related certificate trust issues as outlined in KB 415914.