Using the below guides:
https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
https://cloud.google.com/kubernetes-engine/docs/tutorials/workload-identity-secrets
One google service account and one kubernetes service account with privileges for both activities.
The identity is working from the pod.
The secrets are accessible from the pod.
When trying to access the secrets through the client library it doesn't return any response - neither secrets nor errors. There is no error object in the API so can't be debugged at the application level.
async function accessSecretVersion() { const [version] = await client.accessSecretVersion({ name: name, });
Probably the same issue: https://github.com/googleapis/nodejs-secret-manager/issues/106
It's closed without any solution provided.