Can you use firebase authenticated users as part of Google Cloud IAM Access?

Viewed 512

I am developing an application which uses Firebase Authentication for User Authentication.

As part of the solution, I am also using Google Cloud Run to run some web engines. I know that I can restrict access to a given Cloud run instance via Google IAM user accounts/roles.

My question is, can I configure access to a given Cloud Run instance to specific firebase users? Could I dynamically create a group and then assign a subset of firebase users to this group which would then have access to the clound run service?

If so, is there anything you can provide in regards to how I would do this?

Thx

1 Answers

There is no configuration for this in Cloud Run. If you need to control access to Firebase Auth users (on any backend, not just Cloud Run), then you'll need to pass along an ID token to the backend, and verify it with the Firebase Admin SDK. Your code will then need to decide what to do with that user's request.

Related