firebase / firebase-admin-dotnet

Firebase Admin .NET SDK
https://firebase.google.com/docs/admin/setup
Apache License 2.0
366 stars 131 forks source link

Which URLs & ports should be open for the package to work? #307

Closed tinonetic closed 2 years ago

tinonetic commented 3 years ago

Hi,

What URLs does the SDK require to work.

Our backend is sitting behind a web application firewall and a proxy server. So we need to know what to configure on it.

Sorry if it's in the documentation, but I do not see any reference in it. Please do add it if it isn't there already.

I have managed to pick the following. I hope I am write. Please confirm or correct me.

https://oauth2.googleapis.com:443 https://fcm.googleapis.com:443

Kind Regards, Tino

google-oss-bot commented 3 years ago

I found a few problems with this issue:

hiranya911 commented 3 years ago

If you're only using the FCM send API, then above 2 endpoints are enough. Other services/APIs call additional endpoints. Good call on documenting this somewhere. @egilmorez thoughts?

tinonetic commented 3 years ago

We configured firewall rules to allow everything going to *.googleapis.com:443

Works well, and would cover future integrations

hiranya911 commented 2 years ago

Yes, googleapis.com is a fairly safe bet. Almost all GCP endpoints are hosted on that domain.