google-secret-manager Questions

11

Solved

I'm writing a cloud function in Nodejs (10), and trying to access a secret like so: const [secret] = await new SecretManagerServiceClient().accessSecretVersion({ name: `projects/PROJECT_NUMBER/se...
Ratite asked 18/6, 2020 at 7:44

6

My application needs a bunch of secrets to run: database credentials, API credentials, etc. It's running in Google App Engine Standard Java 11. I need these secrets as environment variables or as a...

3

Solved

I have a firebase project with a google cloud function like this: export const myFun = functions.region("europe-west1") .runWith({ timeoutSeconds: 10, secrets: ['MY_SECRET'] }) .https.o...

5

Solved

I'm trying to migrate my code from using API keys stored in the .env file to using Google Cloud Platform Secrets Manager. I've followed the instructions here but I encounter an error saying that I ...
Armipotent asked 18/4, 2020 at 0:22

1

Solved

I am migrating a 1st generation Cloud Firestore Trigger to the second generation. However, I cannot figure out how to access Google's Secret Manager from within the second generation Cloud Trigger....

3

Solved

While testing a Google Cloud Function I wrote that attempts to access a secret stored in the Secret Manager, I get this error: Error: 7 PERMISSION_DENIED: Permission 'secretmanager.versions.access'...

2

Solved

I'm writing a Firebase function with Cloud Storage trigger. Like this const functions = require('firebase-functions') const doSomethingWithSecrets = require('./doSomethingWithSecrets') const doSom...

2

Does anyone know in which case choose Kubernetes secrets instead of google secret manager and the reverse ? Differences between the two ?

1

Solved

I've got a cloud function that needs to install dependencies from a private pypi. I've set up a secret called pypi_password for the project and given it the correct value. I've set up a service ac...

1

I created a secret on the Secrets Manager console. Then I took tried using the Go code quickstart guide like ctx := context.Background() client, err := secretmanager.NewClient(ctx) if err != nil {...
Billbillabong asked 19/4, 2020 at 7:48

5

Solved

For the life of Bryan, how do I do this? Terraform is used to create an SQL Server instance in GCP. Root password and user passwords are randomly generated, then put into the Google Secret Manager....
Libel asked 16/9, 2020 at 15:31

6

Solved

I have a running cloud run service user-service. For test purposes I passed client secrets via environment variables as plain text. Now since everything is working fine I'd like to use a secret ins...
Neuron asked 23/1, 2021 at 10:2

4

Solved

I have read through at least a dozen different stackoverflow questions that all present the same basic problem and have the same basic answer: either the module isn't installed correctly or the OP ...

2

Solved

I'm trying to grab the latest secret version. Is there a way to do that without specifying the version number? Such as using the keyword "latest". I'm trying to avoid having to iterate th...
Skill asked 16/8, 2021 at 15:11

1

Solved

I have two questions: Why can't I mount two cloud secrets in the same directory? I have attempted to mount two secrets, FIREBASE_AUTH_SERVICE_ACCOUNT and PURCHASE_VALIDATION_SERVICE_ACCOUNT in the...
Sherrer asked 26/7, 2021 at 16:2

1

Solved

To access secrets from cloud functions, Google provides the Secret Manager API: Secret Manager stores API keys, passwords, certificates, and other sensitive data. It provides convenience while imp...

4

Solved

I am using a Google Cloud Function (GCF) with a Pubsub trigger which sends a HTTP request to a third party API. The GCF receives notifications from a Pubsub topic used by a service which should no...

2

I'm doing a build on GCB in which I need to install private dependencies, so am using Google Secrets Manager. My cloudbuild.yaml looks like this: steps: - name: gcr.io/cloud-builders/gcloud entryp...

1

Solved

I'm using Google Secrets to store API keys and other application specific "secrets". When I deploy my application to a VM instance using a docker container, I want it to access the Google...

1

Solved

I want to grant a service account access to a secret in Google Secrets Manager. I can access the secret like this: gcloud beta secrets versions access 1 --secret="thesecret" --project="myproject"...
Steiermark asked 18/5, 2020 at 17:45

0

I can't figure out why I keep getting the error: Error: Could not load the default credentials. Browse to https://cloud.google.com/docs/authentication/getting-started for more information. firebas...
Leading asked 17/5, 2020 at 20:42

2

Solved

I have been trying to find a way to store secrets in GCP. I have explored Google Cloud KMS. It seems to be only for creating encryption keys, that can be used to encrypt say GCP storage elements. O...

1

How can I access the variables I define in Google Secret Manager from my Google Cloud Build Pipeline ?

1

Solved

If I follow the cloud build document, I have to specify encrypted secret on cloudbuild.yaml. secrets: - kmsKeyName: projects/[PROJECT-ID]/locations/global/keyRings/[KEYRING-NAME]/cryptoKeys/[KEY-N...

2

I am wondering if you please help me out with the following question. What are the differences between the KMS and the secret manager in GCP? Thank you in advance. https://cloud.google.com/secret...

© 2022 - 2024 — McMap. All rights reserved.