[英]Firebase Client access to your Cloud Firestore database expiring in 3 day(s)
I am a beginner in the Firebase database.我是Firebase数据库的初学者。 I was developing my own project when I receive an email from Firebase Team saying that you have to write security rules for client access.
当我收到来自 Firebase 团队的 email 说你必须为客户端访问编写安全规则时,我正在开发自己的项目。 I have no idea how to write security rules for the firebase.
我不知道如何为 firebase 编写安全规则。
HOW TO WRITE SECURITY RULES FOR THE CLOUD FIREBASE CONSOLE?如何为云 FIREBASE 控制台编写安全规则?
Remember that Firebase allows clients direct access to your data, and Firebase Security Rules are the only safeguard blocking access for malicious users.请记住,Firebase 允许客户端直接访问您的数据,而 Firebase 安全规则是阻止恶意用户访问的唯一保障。 Defining rules separately from product logic has a number of advantages: clients aren't responsible for enforcing security, buggy implementations will not compromise your data, and most importantly, you're not relying on an intermediary server to protect data from the world.
与产品逻辑分开定义规则有许多优点:客户端不负责强制执行安全性,错误的实现不会危及您的数据,最重要的是,您不依赖中间服务器来保护数据不受外界影响。
You can check this official document in Firebase Get started with Firebase Security Rules .您可以在 Firebase开始使用 Firebase 安全规则中查看此官方文档。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.