Search code examples
firebasegoogle-cloud-firestoregoogle-cloud-functionsfirebase-security

what firestore security rules are applied on Google Cloud Functions?


I applied recently to most of my firestore collections allow read and write only if user is authenticated. however, I am implementing some google cloud functions (scheduled functions and on document creation functions) to do some changes on these collections (create new documents and update some others). I am not sure if the cloud function will be able to do so after these rules.

is google cloud function considered authintacted? or what rules are applied in that case?


Solution

  • Cloud Functions run Server-Side as admin. They completely surpass Firestore rules.
    You shouldn't worry about it.