Firebase规则 - 限制访问/攻击

时间:2016-08-08 22:27:05

标签: firebase-realtime-database firebase-security

Firebase看起来很棒但是如果我要在任何地方犯错,那么将会出现规则错误并且无意中访问数据。我很想看到一个可以检查规则结构中严重缺陷的工具。我知道有模拟器,但你需要知道要检查什么。

这是我对规则的第一次尝试(理论上它应该只允许'匿名'用户访问他们自己的数据,然后只能作为0-20长度的字符串)。 此规则结构(下方)是否允许任何人访问或干扰其他用户的数据?

public sendUpdate() {
   this.showLoader();
   this._mtService.sendCurrentUpdate(this.myList).subscribe(
     res   => { this.stopLoader(); this.showMessageDialog(res); },
     error => { this.stopLoader(); this.showMessageDialog(error); }
   );
 }

0 个答案:

没有答案