什么是“受信任的服务器环境"?在Firebase中? [英] What is a "trusted server environment" in Firebase?

查看:104
本文介绍了什么是“受信任的服务器环境"?在Firebase中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Firebase文档中经常提到受信任"和特权"服务器环境,但没有正式定义.这些是什么?

"Trusted" and "Privileged" server environments are frequently mentioned in the docs for Firebase, but there's no formal definition. What are they?

如何使服务器受信任或具有特权?

How do I make my server trusted or privileged?

推荐答案

或受信任"无法明确搜索服务器环境(在创建此问与答之前),可以从以下除外条件中推断出它.

While what "priveleged" or "trusted" server environments are is not explicitly searchable (prior to the creation of this Q&A), it can be inferred from the following excepts.

FCM设置,是以下摘录:

Firebase Cloud Messaging的服务器端包含两个组件:

The server side of Firebase Cloud Messaging consists of two components:

  • Google提供的FCM后端.

  • The FCM backend provided by Google.

您的应用服务器或其他运行服务器逻辑的受信任服务器环境,例如Firebase的云功能或Google管理的其他云环境.

Your app server or other trusted server environment where your server logic runs, such as Cloud Functions for Firebase or other cloud environments managed by Google.

您的应用服务器或受信任的服务器环境将消息请求发送到FCM后端,然后FCM后端将消息路由到在用户设备上运行的客户端应用.

Your app server or trusted server environment sends message requests to the FCM backend, which then routes messages to client apps running on users' devices.

常规设置的文档中:

Firebase项目支持Google服务帐户,您可以使用这些帐户从应用程序服务器或受信任的环境中调用Firebase服务器API.如果您要在本地开发代码或在本地部署应用程序,则可以使用通过此服务帐户获得的凭据来授权服务器请求.

Firebase projects support Google service accounts, which you can use to call Firebase server APIs from your app server or trusted environment. If you're developing code locally or deploying your application on-premises, you can use credentials obtained via this service account to authorize server requests.

  1. 要注意的是,两者都明确表示"app server or trusted environment",这暗示着两者是不同的事物.
  2. 此外,第一个摘录(尽管在语义上有些模棱两可) 可信环境的示例是"Cloud Functions for Firebase or other cloud environments managed by Google."
  3. 最后, 第二节摘录中的是信息"If you're developing code locally or deploying your application on-premises, you can use credentials obtained via this service account to authorize server requests"
  1. Important to notice is that both explicitly say "app server or trusted environment" which implies the two are different things.
  2. Further, the first excerpt (though somewhat semantically ambiguous) that examples of trusted environments are "Cloud Functions for Firebase or other cloud environments managed by Google."
  3. Finally, in the second excerpt is the information "If you're developing code locally or deploying your application on-premises, you can use credentials obtained via this service account to authorize server requests"

从所有这些可以推断出:

From all of this it can be inferred that:

  • 受信任和特权环境通常是google内部的事物,因此本质上值得信赖
  • 应用服务器通常是有权访问正确凭据的任何东西
  • 最后,除了拥有正确的凭据以使您的服务器成为受信任的环境"之外,您无需采取任何其他步骤.它不必是受信任的环境",也可以是受信任的环境".因为该术语的真正含义是由Google拥有".
  • Trusted and Priveleged Environments are generally things internal to google and therefore intrinsically trustworthy
  • App servers are generally anything which has access to the right credentials
  • And finally, you do not need to take any steps beyond having the correct credentials to make your server a "Trusted Environment." It does not need to be a "Trusted Environment," because what that term really means is "Owned by Google."

这篇关于什么是“受信任的服务器环境"?在Firebase中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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