Andrey Solera
Andrey Solera

Reputation: 2402

Firestore security rules for server side code

According to what I've read, when a function runs via the server, all Firestore rules are ignored. How can I avoid this behavior?

Upvotes: 0

Views: 323

Answers (1)

Frank van Puffelen
Frank van Puffelen

Reputation: 598765

Cloud Functions use the Admin SDK to access Firestore, which runs with administrative privileges and always bypasses security rules. There is (currently) no way to change this behavior.

Also see:

Upvotes: 5

Related Questions