I have a simple cloud function, that is triggered by a creation of a new user on the Firebase
Auth
, which makes a POST
request to a service running on Google Kubernetes Engine
together with an ESP (Google-Endpoints).
From what I was able to understand, by reading "Authentication between services" I should be able to define an service-to-service authentication by assigning a security definition related to a Service Account with a Service Account Token Creator role. How would I go about it to authenticate this request, using service accounts, so that only this function could make this request? Could this service account be somehow attributed to the function? Kindly guide me for this issue.
Thank you!
Authorization: Bearer TOKEN
header which contains an OAuth Identity Token. – John Hanley--service-account
. That sets the Identity that functions uses. On the other side, you need to verify the token received in the HTTP header. cloud.google.com/sdk/gcloud/reference/functions/deploy – John Hanley