Take an extremely technical engineer with extremely good communication skills and extreme work ethic to put together such an extensive series and you get this guy
@k4f6 жыл бұрын
I love you Database Robin Williams!
@microcontrolledbot6 жыл бұрын
I have thought this since episode one. Way to call it out
@jessemartinez16966 жыл бұрын
@@microcontrolledbot hahaha
@ClosedCaptionCreator5 жыл бұрын
Never able to un-see.
@themongru5 жыл бұрын
I had the exact same thought straight away lmao. This guy is awesome
@pavelooo22895 жыл бұрын
came to find this comment.
@masaokitamura4 жыл бұрын
02:57 Rules in the Firebase Console 04:11 Rules do not cascade (unlike RTDB) 05:37 Wildcard variables 07:53 Rules will be mostly based on 3 pieces of data: data request, target documents, some other data 10:21 CRUD: create rules 12:06 CRUD: update rules 14:04 CRUD: read rules 16:49 Limit restaurant updates to editors and owners 18:18 Adding SuperAdmin and Moderators 19:25 Custom Functions 20:15 Check if Resource is valid using a function and refactoring rules Full playlist: kzbin.info/aero/PLl-K7zZEsYLluG5MCVEzXAQ7ACZBCuZgZ
@vincetacofield503 жыл бұрын
hero
@Sibearian_3 жыл бұрын
Thank you so much
@lucutes2936 Жыл бұрын
ZOV
@FellowEnginerd6 жыл бұрын
Wow, easily the best video education series I've ever watched. Production quality through the roof and presenter is clearly knowledgable and able to communicate in a fun and direct way. Thank You!
@theman471453 ай бұрын
Love this. Fast, efficient, clear, and engaging. This is exactly what I want to see in a technical video. No filler, no wasted time, not vague or confusing. Thank you!
@RaphaelMattosatContextaWare6 жыл бұрын
The whole series is great! I'm glad you aren't afraid of lengthy videos. The short videos on the channel are good too, but intermediate or more experienced developers want more details. Please keep this up! Also, I feel I laughed more than I should at the "moist" joke :)
@mayukhchakraborty53643 жыл бұрын
To be honest, I never realized how 22 minutes passed, like in a snap
@hoxorious6 жыл бұрын
Who else noticed that little thread on his right shoulder?! 😁 By the way, a great video! 👍👍
@codinginflow6 жыл бұрын
Omg now I can't watch the video
@violindiep6 жыл бұрын
I went directly to the comments to see if I were alone noticing it haha (25s passed so far...)
@LucTemetNosce5 жыл бұрын
That's the only reason I scrolled down to see the comments
@mithunlzmv8065 жыл бұрын
that thread broke the security rules and listening the video!!
@pagevpetty5 жыл бұрын
how could you NOT, like the thumb bandage one...
@tommyruskus3 ай бұрын
Wow, this taught me everything I needed to know, thanks so much for uploading this video! 😊
@yoshcode3 жыл бұрын
Thank you for using a realistic use case like the restaurant app, with some decently complex data, instead of just a "to do app" like every other tutorial out there hah
@Firebase3 жыл бұрын
Glad it was helpful!
@1002CK6 жыл бұрын
Tod always provide a great perspective to look at thing, and create product that is easier for us developer to use
@raghav42966 жыл бұрын
Looking forward at early 2019 for Todd's video on #7- Hey we updated Firestore to support Geoqueries, collection group queries,OR queries. 😁
@Saturn28883 жыл бұрын
I dunno what kinda docs you're taking about, but when I spent hours each night struggling to figure out these rules (which I eventually figured out), you answers all my questions in a single 20 min video.
@boo52742 жыл бұрын
What an awesome video, and now I've seen there's an entire series from this guy. explained it perfectly for my ape brain. Thank you!
@CrystalMusicProductions5 жыл бұрын
Best tutorial I have seen so far for learning the security rules :)
@GustavAndersson6 жыл бұрын
So nice with a high-quality tutorial series where the presenter is SO good that he doesn't need to beg the viewer to subscribe; we'll do it anyway! And share! Can't wait for the next instalment.
@callybx5 жыл бұрын
Just brilliant - so clear and simply explained - thank you!!!!
@LuisCastillo-qh8wm4 жыл бұрын
Best videos series of this channel, as a developer I love it!
@extspence3 жыл бұрын
Great Series, the string cut the string.
@gwapster135 жыл бұрын
Best tutorials for Firebase.
@zenban3 жыл бұрын
Security Rules, like the noun, but also Security Rules! like the verb... All I know is Database Robin Williams Rules! Seriously thank you for making learning a new language much less intimidating
@reeehaaan3 жыл бұрын
for me ×0.75 playback speed is good
@kavinda_dilshan_paramsoodi2 жыл бұрын
I like this guy. He's like my next-door uncle who always is funny and nice to people.
@codinginflow6 жыл бұрын
security rulez!
@spidfire4 жыл бұрын
Did the example for matching google.com contain a bug because it also matches something@totallynotgoogle.com ?
@mohamadtahmad84514 жыл бұрын
I have a question when we use the get() method at 16:50, does that get call count to my readers in firestore?
@netdur4 жыл бұрын
yes
@digitalml6 жыл бұрын
Love your entire series. Would love to see a video on perhaps the best ways to combine all the services together. For example in my current app, we are using realtime database, firestore, firebase authentication, storage and now cloud messaging. With so many products one could see how confusing the entire product ecosystem is...
@microcontrolledbot6 жыл бұрын
This is a great series. Please do a episode all about pagination.
@azmaniandevil4 жыл бұрын
This genuinely is one of the more enjoyable "tooling how to" videos that I've seen. Great work Todd and Firebase team!
@momtalaidorganization54244 жыл бұрын
I love your explanations mate!
@mozesong52646 жыл бұрын
6:54 best thing i heard all day
@roscoedds58965 жыл бұрын
Love the video! Thanks a lot for clear instructions. They have helped me a lot to improve my app!! It's nice to watch which gives an honest approach to the content.
@duncanhunter90256 жыл бұрын
Super awesome video thanks for making these and going into some detail!
@mattbio6 жыл бұрын
Finally a video that explains this. Thanks, you helped a lot 😁
@erwin_AI5846 жыл бұрын
So happy with this video. It really goes into proper depth and will definitely help me secure everything properly! The local emulator definitely deserves another episode though (or maybe an example on git?), as the documentation is quite hard to comprehend fully.
@armankarimi92093 жыл бұрын
Your videos are a delight! Thank you :D
@Firebase3 жыл бұрын
Glad you like them!
@asdfghyter5 жыл бұрын
How do you handle when people put random irrelevant data in a document? Is there a way to whitelist which fields are allowed on a document? This could be a security problem if they predict a field that we would add later.
@JBuchmann5 жыл бұрын
Commonly a large company would have front AND backend devs working on a project. (assuming a 'traditional' server backend is involved). But with Firestore, is this still the case?... for example, with Firebase (and cloud functions, security rules, etc.) typically would this mostly still be done by a backend developer? Or with Firebase is the intent for the front end devs to do this themselves (and thus essentially be full stack)?
@adebolalateef90942 жыл бұрын
my exact question rn! seeing it's not being answered, I have to go elsewhere 😪
@igorkuna2904 жыл бұрын
Club Databass 😂 Awesome video BTW, I learned a lot.
@belqisshida53454 жыл бұрын
Is Cloud Firestore a good selection for a bank account? Can it be safe and reliable to save people's money which is a number to the Cloud Firestore? My concern is reliability and security. Any suggestions?
@biffbiffson7350Ай бұрын
I've been struggling for two full days under a mistaken assumption -- that if you try to write a rule that says a user can only read docs with a status field (say) == "published", he will get back documents meeting that condition. No, it actually throws an "insufficient permissions" error, since not all documents meet that condition. I assume I have this right, finally? This is mentioned at about the 15-minute mark, but it's probably worth greater (and earlier) emphasizing!
@RobinYoulton6 жыл бұрын
Thanks Todd, super useful and relevant to my development efforts.
@Nikon11015 жыл бұрын
haha, that IAM joke was really nice
@kravenCOG3 жыл бұрын
ohhh thanks so much.. i had two days trying to understand ... thank you.
@spiderous5 жыл бұрын
What if technically someone retrieved information from my app and created his own with the same credentials? He can send to my database the same requests as I do, e.g. send message. I am really confused by it because my project information is public on my website.
@justdominican7474 Жыл бұрын
This guy cracks me up
@DenisTRUFFAUT6 жыл бұрын
Excellent video, with a strong use case !
@hoaivu253 жыл бұрын
great tutorial. thank.
@Firebase3 жыл бұрын
Glad it was helpful!
@viddeoshuffle5 жыл бұрын
If you access to a document field from a security rule, does it count as a read? 💸
@Squad2ND Жыл бұрын
Even though it's possible to create Security Rules on each document-attribute, is it possible for a client to add new fields in the update? I can't help but thinking about having all updates/create go theough a Cloud Function first to make more fine-grained validation.
@albertodeagostini61436 жыл бұрын
Wow this is explained very well, nice vid
@mymusicloversworld5 жыл бұрын
Very nicely presented and explained. 👍
@enriccamarero56016 жыл бұрын
Amazing! But, where did you get that sick sticker for the laptop? 😍
@jelmer-77905 жыл бұрын
Great video, great episode: this answered a lot of questions I had regarding security for which I am grateful! I still have one concern regarding security due to the schemaless nature of the database. How can I prevent malicious users from spamming my database by writing data to 'fields' I haven't defined? Because from what I understand, anybody with 'write' access to a certain documents can make a function that writes random key:value pairs to the database and run it from a console. Is is possible to write a function that prevents all keys that aren't defined by me 'the programmer' to be written to the database?
@sutikshnadubey4 жыл бұрын
Nice Videos! It'd be great if Summary of rules/points can be given in description section.
@Jb679123 жыл бұрын
is this any better or worse than using a node.js backend? It seems like a LOT of little rules to write when node.js would make it simpler or would it not?
@josefsantamaria6 жыл бұрын
Very useful tutorial! Thanks!
@mohamedyoussef88352 жыл бұрын
Awesome video +++++ 😃
@Firebase2 жыл бұрын
Happy to hear you enjoyed the video, Mohamed! Don't forget to check out the links in the description for more tips and tutorials 👍
@muhammadtouhid9985 жыл бұрын
this guy is awesome! I've become a fan
@nicolapigozzo51886 жыл бұрын
how to allow only some specific internal ip addresses from login into my firebase auth login we app?? please provide me some tips it is turning like a nightmare.
@mdtamjeed5 жыл бұрын
While running the Firestore Rules simulator, request.token seems to be null. And if at all we provide it using Custom Auth Provider, we need to provide "super_admin" it at the "token" level, which is not the case with actual real world situation, as the custom claim is in "customClaims" property of "token" property. TL;DR: With simulation -> "token":{ "super_admin":true } With real case -> "token":{ "customClaims":{ "super_admin":true } }
@arturo_gomez4 жыл бұрын
Great video! Keep it up!
@codewithfelix3940 Жыл бұрын
Man i like ur vids, always .
@nimamc6 жыл бұрын
Is it true that using sub-collections basically is a kind of extra security? For example, you know that users can only get a sub-collection that belongs to a specific parent id, so unless they know all the parent ids and loop over that, there is no way they can just get a list of all the item in a sub-collection.
@saikumarreddyatluri33325 жыл бұрын
It would be the video if u even show the structure of firebase
@kimduer61944 жыл бұрын
If I write thorough security rules within Firestore, can I eliminate them from the client-side code entirely or should I have them in both places?
@hexadcml4 жыл бұрын
Normally, I would hate these corny jokes. But I love these.
@dinushkam24444 жыл бұрын
hidden got you in Firebase
@muttmagandi5 жыл бұрын
The fox on the computer looks a lot like the Firefox... :)
@dabblewriter6 жыл бұрын
When you have a "roles" map of uid => role, how can you validate to ensure only the owner can add/remove editors, but an editor can remove themselves from the map?
@daretobedangerous6552 Жыл бұрын
would have been great if you show us how the document snapshot looks like first
@paoluccij4 жыл бұрын
I don't know if something has changed at the moment, but it continues to appear in the documentation that the first thing we must put is "rules_version = '2';"; the truth is that it is the first error and it does not allow publishing only by placing that in the rules
@alexandregagne41516 жыл бұрын
Could you do a video on Firestore pagination? Thank you very much for your video ;)
@rubenheymans19885 жыл бұрын
How about a crud datatable with sort, pagination and search, all server side
@thanhtung292210 ай бұрын
Hi Guys. I implement Firestore within my Backend with Express and have all types of validations against Client side requests. Do i really still need to implement those rules ?
@AonghasAnderson4 жыл бұрын
Super super useful!
@seemayr3 жыл бұрын
this is great!!
@connelhooley3 жыл бұрын
How can we stop users adding new properties for objects? E.g. I can validate the name and dob fields, but how do I stop them adding 50 new fields on an update for example?
@nakka0072 жыл бұрын
What programming language is that?
@GoingthroghIT4 жыл бұрын
It says that the video will cover a case where access will be based on some other data in some other collection but then never covers this part. "Some other data located in some other part of your db"
@LarsRyeJeppesen4 жыл бұрын
Super super helpful
@DRocksRecords4 жыл бұрын
Thank you very much.
@zzong80353 жыл бұрын
if I choose to store my users info using the firebase auth user profile and use the user.diplayName field to store username, and on a Firestore collection('reviews') I have reference to the username. Say when I want to update a user's username (user.displayName), I also need to go and update all duplicated data on the reviews collection. My question is can I make a batch job that consists of a auth.updateProfile and a firestore.docRef.update?
@Alessandro_Russo5 жыл бұрын
To use the Security rules i must use Firebase auth?
@apayrus6 жыл бұрын
Please, open the ability to translate subtitles to other languages. This material is interesting for many peoples. Not only for English speakers.
@kllokoq2 жыл бұрын
Why is there a fox trying to eat a bird on the laptop cover? What does it mean?
@warren4882 жыл бұрын
it's only now hitting me that i created an entire backend for my app because i didnt understand security rules and therefore couldnt open up writes to the frontend 😥😥
@adamm31226 жыл бұрын
I really like the idea of all these videos, but because I’m a bit of a noob developer, I have a hard time picturing the use cases in real apps. What has always helped is having super basic apps using these cases and watching what happens instead of just discussing what would happen.
@bitculator5 жыл бұрын
It would be great if you showed the structure inside the firebase dashboard as well... I can't get shit to work... I assume reviews are a subcollection of a first-level document the first level documents all represent a restaurant, right?... and the 'score' is a field inside the subcollections documents? I can't get nothing to show at all.. even if I just check request.resource.data.score is number.... ive tried adding score as a number and put in 3 in all places where I can make a field, I even only have 1 main document, and 1 document in the sub-collection, so a total of 2 places where I have put in 3 as a number with a key as score ... but yet I'm denied access... The only thing that works for me is to check if the user is logged in... then I can access it all, no other rules work for me...
@5argon6 жыл бұрын
You mentioned leaking private data because you can only get a whole document, and so separating into a "private" document with security rule is needed. (e.g. you should not store user's sensitive data in the same document as public data) However when I look at REST API it looks like getting a partial document is supported by DocumentMask. firebase.google.com/docs/firestore/reference/rest/v1beta1/projects.databases.documents/get Is it just updated?
@chidev91313 жыл бұрын
From my understanding, if your client is following the exact code of your app, this is correct, there's nothing to worry about. But let's pretend for a moment that the client is a malicious user. If all the private fields are grouped with the public fields, you can't have separate security rules for the fields. And thus, that malicious user who is able to request data by pretending to be sent from your app would get private data - something that you wouldn't want.
@javadziaebrahimi35684 жыл бұрын
really helpful thankssssssss
@abdous-i8s4 жыл бұрын
This is awesome! We still need a backup solution that does not cost 1000$
@ashishtrivedi64265 жыл бұрын
Lets say i have school. teacher wants to create collection in document for specific students, and few documents for all students in calss . how can i model this ?? I cant assign roles at such granular control
@amarpreetsingh8576 жыл бұрын
how to use pagination?
@microcontrolledbot6 жыл бұрын
@@ToddKerpelmanCorp That is really great news. I had just requested that in my recent comment.
@noamgonen62436 жыл бұрын
security rules ! (like the verb)
@jihadmahde4 жыл бұрын
I didn't get that :/
@noamgonen62434 жыл бұрын
@@jihadmahde word play? "you rock" = "your rule" --> verb... while same time "rules of the game" (noun) ... --> so u can read the title both ways.... just a silly word play in a moment of boredom, nothing to read too deep into :-)
@bitculator5 жыл бұрын
Upvoted, even tho i cant get mine to work... only != null will work, all other rules will fuck me up
@lucaban6 жыл бұрын
Finally an emoji in the title!
@rollingarchives4 жыл бұрын
8:40 sneaky cutaway
@Alexander-mg4pr2 жыл бұрын
I really wish you showed your actual Firestore Database structure 😕
@premierleagueiniraq8485 жыл бұрын
please you can explain how to use firebase database REST API
@alexeyiskrov28456 жыл бұрын
Great video! It would be even better if it was released few months ago when I was implementing security rules for my database.
@b5a5m56 жыл бұрын
Probably would've been best if you read the documentation :P
@sachinbudni2335 жыл бұрын
how to fetch a particular fields from the firestore in angular firebase