停止通过Firebase信息中心意外删除Firebase数据库 [英] Stopping accidental deletion of a firebase DB via Firebase Dashboard

查看:86
本文介绍了停止通过Firebase信息中心意外删除Firebase数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道在删除某些Firebase数据库之前是否有可能要求输入密码或其他东西吗?原因是我们有几个firebase实例进行开发工作,然后是主要产品。
我们都在开发数据库的一整天,并经常看到生产
我们经常垃圾开发数据库清除我们的系统。

我们非常担心,有一天我们会意外地把prod数据库当作是非常容易的 - 点击2次!那么任何傻瓜都可能犯的错误。

那么,是否可以配置我们的一个firebase数据库,以便在垃圾箱之前输入密码或类似的内容那数据库?
$ b

谢谢。

解决方案

我在Firebase工作



Firebase信息中心对权利采取全有或全无的方法:您可以进入或不能进入。所以,不幸的是你的第一个问题是否。



也就是说,有几件事要记住:


  1. Firebase至少每天都会备份所有数据库以用于灾难恢复。 意外点击删除算是一场灾难。

  2. 将应用程序管理中的开发人员工作(您在仪表板中执行的工作)分开是最好的办法。对于后者,你应该建立一个仪表板,防止管理员做灾难性的事情。请记住:开发人员常常是应用程序管理员。但是我发现即使在这种情况下,最好还是保护我的应用程序的用户免受我的开发者版本的侵害。



Does anyone know if its possible to ask for a password or something before deleting certain firebase DB's but not others when you are in the firebase dashboard?

Reason is that we have several firebase instances for development work and then a primary prod one. We are all over the dev db's all day and often looking at prod as well We often trash the dev database to clear our system down.

We are highly concerned that one day we are going to accidentally trash the prod database as its just too easy - 2 clicks! The kind of mistake any fool could make.

So, is it possible to configure one of our firebase databases so that you need to enter a password or something similar before you trash that database?

Thanks.

解决方案

Disclaimer: I work at Firebase

The Firebase Dashboard has an all-or-nothing approach to rights: either you can get in or you can't. So that is unfortunately a "no" to your first question.

That said, there are few things to keep in mind:

  1. Firebase makes backups of all databases for disaster recovery purposes at least daily. And "accidentally clicking delete" counts as a disaster.

  2. It's probably best to separate developer work (which you do in the dashboard) from application administration. For the latter, you should build a dashboard that prevents the administrator from doing disastrous things. Keep in mind: quite often the same person who is the developer is the application administrator. But I find that even in those cases, it is best to protect the users of my applications from the developer-version of me.

这篇关于停止通过Firebase信息中心意外删除Firebase数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆