5

Is it possible to have a Firebase Storage rule that is similar to the get() function of Firestore?

Basically I would like to check the user document in Firestore to allow writes in Storage.

I guess working with claims would be the best solution, but I'm not sure I can use that.

I would like something like this:

allow create: if get(/databases/$(database)/documents/users/$(request.auth.uid)).data.canDoSomeStuff == true;
Doug Stevenson
  • 268,359
  • 30
  • 341
  • 380
Johan Nordberg
  • 3,491
  • 3
  • 31
  • 54

1 Answers1

3

It's currently not possible for security rules for any Firebase product to reach outside of their own product. Feel free to file a feature request for that.

Doug Stevenson
  • 268,359
  • 30
  • 341
  • 380