I have two services running on Google Compute Engine. The services are written in Go. Each of the services has separate GCP service account. Can I use this service account to authenticate one service when calling the another one? Is there an API suitable for it?
I do not know how to verify the identity of the access token? As pointed in one of the answers I cannot add custom permissions (role+resource) to GCP IAM.
There is a ton of documentation about authenticating Google Cloud Platform API calls but nothing about using service accounts to secure own endpoints.
The point is, I don't want to manage separate set of permissions one for service account and another one in KeyCloak or other system.