【发布时间】:2021-08-30 00:58:12
【问题描述】:
需要阻止垃圾邮件用户过度使用配额,或防止来自客户端应用程序的 DDOS 攻击,
当cloud function 发现某些特定uid 正在大量消耗资源(通过使用admin sdk,collections.onRead 属性),它应该通过写@ 将用户从应用程序中注销987654323@ 或 exit(0); 在该用户的 firestore 记录中,客户端应用程序正在主动侦听该记录,然后客户端应用程序应通过引用 firebase_auth: 库的特定函数来执行该代码,
或者有没有更好的方法来为这些场景实现这种故障保护?
【问题讨论】:
标签: firebase flutter google-cloud-firestore firebase-authentication google-cloud-functions