Contra - A professional network for the jobs and skills of the futureSecuring Private Flutter Files Beyond Firestore Rules
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started
A Firestore document can be locked down so no other account reads its title or owner, and the file it points to can still open for anyone holding the link. Firebase evaluates the two separately: Firestore rules protect the record, Cloud Storage rules protect the object. The second gap is getDownloadURL(). The rule check happens once, when the app asks for the URL. After that there is no signed-in user for a rule to check, so signing the user out or deleting the Firestore record does not invalidate a link someone already has. Firebase's own remedy is a console step: create a new URL and revoke the old one. For private documents, store the object path instead of the URL, give the Storage rule its own owner check, and read the bytes with getData() or writeToFile() so the rules run on every request. Quick test: open one private file link from your current build in a signed-out browser window. If it loads, that screen is not private yet. https://www.duskolicanin.com/blog/flutter-private-files-storage-rules
Post image
Back to feed
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started