Google cloud firestore 基本云Firestore安全规则设置
我目前正在使用此默认代码保护我的Cloud Firestore数据库:Google cloud firestore 基本云Firestore安全规则设置,google-cloud-firestore,firebase-security,Google Cloud Firestore,Firebase Security,我目前正在使用此默认代码保护我的Cloud Firestore数据库: service firebase.storage { match /b/{bucket}/o { match /{allPaths=**} { allow read, write: if request.auth.uid != null; } } } 这段代码运行良好,模拟也很好 我尝试更新代码并使用我在每个指南中找到的新默认代码: service cloud.firestore {
service firebase.storage {
match /b/{bucket}/o {
match /{allPaths=**} {
allow read, write: if request.auth.uid != null;
}
}
}
这段代码运行良好,模拟也很好
我尝试更新代码并使用我在每个指南中找到的新默认代码:
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read, write: if request.auth.uid != null;
}
}
}
但该代码每次都失败,访问权限不被授予
在模拟中,我只是尝试读取名为“parameters”的集合中的文档
我是不是遗漏了什么?我的计划是在以后加强安全访问。好吧,我的坏消息是,我实际上意识到数据库访问规则和存储访问规则都有各自独立的安全面板 我试图用默认数据库规则更新存储规则