I'm using Firestore as an MVP DB for an API we've got hosted on Heroku. The API doesn't use any authentication outside the OAuth provided by platforms like Slack and Google, and we're also not using any of Firebase's authentication
I'd like to change our security rules away from the insecure
allow read, write: if true; but I'm unsure how to write these rules in my context given most of the docs show security rules using Firebase auth or collection visibility
So, a couple questions:
- Is it secure "enough" that I'm using the Firebase admin SDK on the Heroku server to access Firestore, but that my security rules basically allow access to anyone?
- If not, How can I write rules that allow access only to a specific Heroku API endpoint?
- Alternatively, are there better practices I should use to secure the data?
Thanks so much