简体   繁体   English

如何在 firebase 云函数中使用 github secrets

[英]How to use github secrets in firebase cloud functions

I am exploring github secrets along with github Actions to deloy firebase function on cloud.我正在探索 github secrets 和 github Actions 以在云上部署 firebase 功能。 In my app i am using lot of config value which should not be plain text in application so hiding these info i research about github secret that how it is working and can get the secrets in Workflow while building and deployment of application.在我的应用程序中,我在应用程序中使用了许多不应是纯文本的配置值,因此隐藏这些信息我研究了 github 秘密,它是如何工作的,并且可以在构建和部署应用程序时获取工作流中的秘密。 I am little confused that is it possible to use github secrets as a application secret store if yes then howit should work if i have a firebase function and going to deploy on cloud?我有点困惑,如果是的话,是否可以将 github 机密用作应用程序机密存储,那么如果我有 Firebase 功能并要部署在云上,它应该如何工作? Is there any example then please share.有没有例子然后分享一下。

PS: i am using github action to deploy my function on cloud when git push happens. PS:当发生 git push 时,我正在使用 github action 在云上部署我的函数。

GitHub secrets is not designed to be used as an application secret store. GitHub 机密并非旨在用作应用程序机密存储。 Only the GitHub Actions app can retrieve and decrypt the secret values so they can be sent to the runner with the job.只有 GitHub Actions 应用程序可以检索和解密机密值,以便将它们与作业一起发送给运行程序。

We currently do not and do not have a plan to enable other apps to retrieve and decrypt the secret values.我们目前没有也没有计划让其他应用程序检索和解密秘密值。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何将Firebase云功能与promises和forEach一起使用? - how to use Firebase Cloud Functions with promises and forEach? 如何在Firebase云功能中使用动态参考? - How to use dynamic reference in Firebase cloud functions? 如何在 Cloud Functions 中使用 Firebase 远程配置? - How to use Firebase Remote Config in Cloud Functions? 如何在 Github Actions 中使用机密? - How do I use secrets in Github Actions? 何时使用Firebase云功能 - When to use Firebase cloud functions 如何在 netlify lamda 中使用 firebase 云函数的 firestore.onWrite() - How to use firebase cloud functions' firestore.onWrite() in netlify lamda 如何将批处理通知API与Cloud Functions for Firebase一起使用? - How to use batch notifications API with Cloud Functions for Firebase? 如何在 firebase 云函数上正确使用 express-session - How to properly use express-session on firebase cloud functions Firebase Cloud Functions - 如何在 multiple.then() 方法中使用相同的返回值 - Firebase Cloud Functions - How to use same return value in multiple .then() methods 如何在Firebase Cloud Functions中使用两个数据库引用? - How to use two database reference in Firebase Cloud Functions?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM