Security and rules
The storage rules and security is the quintessential concept to understand. Firebase console provides a flexible way to manage security rules. When a mobile client requests access to create a file reference or download the uploaded file, it has to go through security rules; since Google and Firebase storage share the same storage bucket, if we make access public, it stays public in both services.
It is a very simple process to authorize users and validate requests. Storage security rules also allow path-based security, which makes managing complex requests easy. We can restrict a particular path or a person from having access to the files, or limit the file size being uploaded.
Rules are very important to the Firebase ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access