【发布时间】:2018-12-26 13:57:37
【问题描述】:
我真的希望能够通过仅允许 firebase 函数写入特定集合来保护我的 firestore 数据库...我将如何去做呢?查看那里的文档,我找不到任何可以说明您如何做到这一点的内容。例如,我正在寻找类似的东西:
service cloud.firestore {
match /databases/{database}/documents {
// Match any document in the 'cities' collection
match /cities/{city} {
allow read;
allow write: if <from firebase function>;
}
}
}
【问题讨论】:
标签: firebase google-cloud-firestore google-cloud-functions firebase-security