Firebase Security Rules Tutorial: Protecting Your App's Data | Firebase Bootcamp #17

  Рет қаралды 5,529

Swiftful Thinking

Swiftful Thinking

Күн бұрын

Secure your Firebase database with custom security rules by following this comprehensive tutorial. Learn how to restrict access, prevent unauthorized modifications, and protect sensitive data in your app. Watch now to get started!
🤙 WELCOME BACK 🤙
WEBSITE: www.swiftful-thinking.com
DISCORD: / discord
GITHUB: github.com/SwiftfulThinking/
SAY THANKS: www.buymeacoffee.com/nicksarno
00:00 Firebase Security Rules
03:15 What are Security Rules?
07:20 Writing basic rules
11:50 Basic User Rules
20:05 Advanced User Rules
25:36 Complex User Rules
29:12 Basic Product Rules
33:19 Advanced Product Rules
37:00 Scaling rules
42:47 Bonus rules
44:03 Rules for sub-collections
47:29 Final thoughts

Пікірлер: 14
@linkosm
@linkosm 3 ай бұрын
I'm really enjoying learning Firebase rules on KZfaq for the first time. However, it seems like many creators prioritize maximizing their watch time for profit rather than focusing on effective teaching methods. Your 50 minutes video is enough to understand security rule. Thank you 🎉
@tonibuhlmann6594
@tonibuhlmann6594 Жыл бұрын
Finally a tutorial about the security rules. Thank you so much for this. It was very helpful!
@SwiftfulThinking
@SwiftfulThinking Жыл бұрын
You’re welcome 🤙
@michaelgrant2068
@michaelgrant2068 6 ай бұрын
Thanks for all the work you do. I always come back to this Firebase series whenever I need a refresher. All your information is always laid out so well and concise!
@andresraigoza2082
@andresraigoza2082 Жыл бұрын
Thank you so much! I finally understood security rules. I tried before writing these rules and I just got frustrated but now I feel like I got them. You are a great teacher, please continue with these great lessons 🙏🏻
@mg_chai
@mg_chai Жыл бұрын
Wow. it is never a boring video from you. New knowledge is always the way to move forward. Thanks a lot!
@harold_davis
@harold_davis 3 ай бұрын
bro you are a god send!
@Aymen_Raeed
@Aymen_Raeed Жыл бұрын
Thank you so much Nick!!
@linkosm
@linkosm 3 ай бұрын
Nice video 🎉😊
@TygermatrixSoftware
@TygermatrixSoftware 4 ай бұрын
Thanks for the tutorial! It was very helpful :) Quick question... have you ever run into weird issues with writing rules for a collection where there's a listener attached that uses a whereField("uid", isEqualTo: xxxx) clause? For example, Does NOT work -> match /users/{user} { allow read, write: if request.auth != null && request.auth.uid == user; // where {user} is the uid and document ID } Works -> match /users/{user} { allow read, write: if request.auth != null && request.auth.uid == resource.data.uid; //uid just happens to be on document here }
@salibhaldar6568
@salibhaldar6568 Жыл бұрын
Can you also please make an exclusive playlist about OOP using Swift?
@HadiPrayitnoSPdI
@HadiPrayitnoSPdI 8 ай бұрын
Hi friends, how do you secure realtime database as follows. I have notes product:{ data1: { idMaker: 123abc, .... }, data2: { idMaker: 123abc, .. }, ... } .What I want: all users can set() provided it has child: "name". and only users whose idUser is the same as idMaker can delete. please answer
@MarcoDonati
@MarcoDonati Жыл бұрын
Hi Nick. Great bootcamp! It took me 20 lessons before encountering the first problem 😀 After introducing the exact same security rules as you did, the app is not working anymore. I can't add favorites (the debugger says "Missing or Insufficient permissions"). If I restore the old rules (match /databases/{database}/documents { match /{document=**} { allow read, write: if request.auth != null;}}} then it works perfectly. Tried also to logout, delete users in DB and restart but no success. I triple/quadruple check and the new rules are exactly the same as yours (I didn't test the app at every step as you did, so not sure at what time it started to go wrong). Any hint?
@30guarino
@30guarino 6 ай бұрын
you probably were missing a semicolon ';' at the end the rule line
NERF WAR HEAVY: Drone Battle!
00:30
MacDannyGun
Рет қаралды 49 МЛН
Did you believe it was real? #tiktok
00:25
Анастасия Тарасова
Рет қаралды 46 МЛН
Tom & Jerry !! 😂😂
00:59
Tibo InShape
Рет қаралды 65 МЛН
ОСКАР ИСПОРТИЛ ДЖОНИ ЖИЗНЬ 😢 @lenta_com
01:01
Security Rules! 🔑 | Get to know Cloud Firestore #6
22:39
Firebase
Рет қаралды 268 М.
Firestore Security Rules - How to Hack a Firebase App
10:05
Fireship
Рет қаралды 129 М.
Your web app but good: Aaron Boodman (Local-First Conf)
19:36
Local-First Conf
Рет қаралды 977
Using Cloud Firestore For Your REACT Backend 2023 | CRUD App
51:15
Travis Media
Рет қаралды 19 М.
Why didn't the Angular team just use RxJS instead of Signals?
8:15
Joshua Morony
Рет қаралды 88 М.
Understanding Firestore Security Rules with Examples
18:33
Joshua Morony
Рет қаралды 41 М.
Why You Should Use Pydantic in 2024 | Tutorial
13:56
ArjanCodes
Рет қаралды 63 М.
NERF WAR HEAVY: Drone Battle!
00:30
MacDannyGun
Рет қаралды 49 МЛН