Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure Firebase witout Identity Platform #19774

Open
josh-burton opened this issue Oct 7, 2024 · 4 comments
Open

Configure Firebase witout Identity Platform #19774

josh-burton opened this issue Oct 7, 2024 · 4 comments
Labels

Comments

@josh-burton
Copy link

Question

We've recently migrated a bunch of Firebase projects to Terraform, and have no realised that most of them now have Authentication with Identity Platform, rather than just standard Fireabse auth. There is a significant cost increase with identity platform.

What I can't see from the docs is when a project is configured with identity platform.

  • Does the google_identity_platform_config resource always configure Identity Platform?
  • Is it a timing issue? Should we be ensuring the google_firebase_project resource is configured first, before configuring the google_identity_platform_config resource?
  • Is the identitytoolkit.googleapis.com service required for standard Firebase Auth?

Appreciate any help or guidance!

@serpro69
Copy link

According to docs, identity platform is an optional upgrade: https://firebase.google.com/docs/auth/#identity-platform
Setting up firebase project beforehand shouldn't be needed because identity platform is a separate google cloud service, and not part of firebase offerings (https://cloud.google.com/identity-platform/docs).

@josh-burton
Copy link
Author

Yes it is an optional upgrade via the UI, and should be via Terraform as well.

https://firebase.google.com/docs/projects/terraform/get-started#resources-authentication

These docs mention the following:

[google_identity_platform_config — enable Google Cloud Identity Platform (GCIP) (which is the backend for Firebase Authentication) and provide project-level authentication settings

Configuring Firebase Authentication via Terraform requires enabling GCIP.

@serpro69
Copy link

Ah, I see what you mean now. Since we actually use GCIP in firebase , I haven't even thought to try to setup firebase auth w/o it. Yeah, it shouldn't be mandatory via terraform if it's an optional feature. A bit odd why they'd do it like this, if it's intentional. Maybe better to create a bug/feature request instead?

You could also try to set things up manually via UI (w/o enabling the GCIP) and then export stuff into terraform via gcloud (see https://cloud.google.com/docs/terraform/resource-management/export) and see what resources that will export. It might be that it's possible to set this up w/o GCIP, just not documented.

@josh-burton
Copy link
Author

Thats a good tip about exporting the terraform config. I have also filed a feature request with Firebase and created a user voice request: https://firebase.uservoice.com/forums/948424-general/suggestions/48939287-allow-configuring-standard-firebase-authentication

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants