I am using Firebase in order to send push notification, Firestore database to store user informations and notification send and a cloud function which will interact with external API call in order to do tasks.
All is working good... To good...
In fact, when I call the cloud function URL without being authenticated it works. The worst: when I enter the cloud function URL on Google it works and return me elements of my Firestore database!
So the URL cloud function is PUBLIC and if someone find the URL cloud function, he can have access to the Firestore database and can read and write inside it.
I looked through the internet all the possibilities to restrict access to the cloud function URL only for users who can used it but nothing compelling.
Can someone help me to find a proper solution for this critical problem?
Hope this post will help someone in the futur
Thanks