How do i handle secrets in Google Cloud Functions?

前端 未结 3 2036
没有蜡笔的小新
没有蜡笔的小新 2021-02-13 23:44

What is the common practice here? There seems to be no tools provided by gcloud. I\'m deploying functions from local machine for now, so I can hardcode secrets, but

3条回答
  •  情书的邮戳
    2021-02-13 23:51

    You can use the Secret Manager for this. Follow the instructions on the link to add a secret.

    The only GOTCHA I found is that by default the service account doesn't have read-access to the secrets, you've got to manually grant permissions, like so:

提交回复
热议问题