Questions tagged [gcp-secrets-manager]

6 questions
3
votes
2 answers

How to set process.env from a function?

I'm very open to learning if there's a better "best practices" way to do this, but I have some scripts that I run occasionally that edit a database, and so I need to pass the DB password for those scripts. I'm getting the password by calling a…
1
vote
1 answer

Can't access a secret stored in secrets manager for a service account having google_secret_manager_secret_iam_binding

I'm trying to give a given GCE instance the permission to get one specific secret stored inside the secret manager. Not the WHOLE set of secrets, just one. So, I added this binding in my terraform code for the service account which in turn is used…
1
vote
1 answer

Google cloud build with pack and secrets manager not accessing environment variables

I'm using a standard gcr.io/k8s-skaffold/pack build function to build my app for google cloud run using google cloud build. In my cloudbuild.yaml I load 2 secrets from google secrets manager and pass it to the build function. The google cloud build…
1
vote
2 answers

Inserting secrets into GCP VM instance from secrets manager

Using github actions I'm building a container and pushing it to an existing VM instance. I would like to include secrets as environmental variables after authenticating the secret manager so the container can utilize them during runtime. The…
0
votes
0 answers

GCP Cloud Function - "DeadlineExceeded" from Secrets Manager

I'm working on a cloud function event trigger in GCP to respond to messages on a topic. The following code works fine when I run locally, but when I deploy out to GCP, which triggers the Startup during deployment, my calls to SecretsManager end in…
0
votes
1 answer

Google Cloud function accessing a secret from Secrets Manger

I'm having issues getting a cloud function to access a secret from the secrets manager. Basically I want to have my front-end access secrets by sending a request to the backend and then the backend getting the secret from secrets manager. My cloud…