Questions tagged [google-secret-manager]

Secret Manager provides a secure and convenient tool for storing API keys, passwords, certificates, and other sensitive data on Google Cloud Platform.

Secret Manager is a Google Cloud product that provides a secure and convenient way to store and access API keys, passwords, certificates, and other sensitive data.

Resources

Related Products

312 questions
0
votes
1 answer

recommended between native integration (as mounted volume or environment variable) and Secret Manager client library for Google cloud function?

I am new to cloud functions in implementing the secrets. I would like to know which one would be the recommended method in accessing the secrets in google cloud function in terms of secure, easy access, performance etc... I am aware of 3 methods…
Sekhar
  • 627
  • 4
  • 14
  • 34
0
votes
2 answers

Event based cloud function(python) in accessing the secrets

I need to implement pubsub event based cloud function along with secrets. Secret contains database password. I need to use the db credentials in processing the data received in pubsub. I am trying to access the db password from secret and to be used…
Sekhar
  • 627
  • 4
  • 14
  • 34
0
votes
1 answer

Issue with KubernetesPodOperator on GKE - PermissionDenied: 403 Request had insufficient authentication scopes

I am running a Helm-based deployment of Airflow 2.5.3 on a kubernetes cluster on GCP. Almost everything is working except I can't seem to access the secretmanager on GCP using the service account that is setup for the cluster. My DAG launches a…
0
votes
1 answer

Errors/difficulty with google secret manager and terraform

Edited to add: Very simple answer is below. I was over engingeering. I'm trying to learn some basic terraform, and have set what i thought was a sound setup. I separated into two apply's as i was having trouble with some dependencies (and…
0
votes
2 answers

Python Flask apps encountering '504 deadline error' when fetching secret versions from Google Secret Manager

I have multiple Flask apps that rely on the Python Secret Manager client to fetch secret versions from Google Secret Manager. However, starting today, all of these apps are encountering a "504 deadline error" when they attempt to fetch the secret…
0
votes
1 answer

Google Secret Manager API add Secret Version error, 'ProtoType' object has no attribute 'DESCRIPTOR'

I have code set up on a Google Cloud Function that accesses the secret, turns it into a json dict and then as Credentials for an OAuth. This is then refreshed to ensure validation. All of this works well, but when I want to update the Secret I run…
0
votes
1 answer

Google Secrets Manager with Firebase Functions

How can I pass different values for the cron so that I can schedule the function at different times in different environments? Previously I had the cron value hardcoded in the schedule, like: export const nameFunction = functions …
0
votes
2 answers

Authenticating with non-default credentials in node.js GCP Secret Manager client

I am trying to to use the @google-cloud/secret-manager package to read secrets from inside an application, and I want it to authenticate with a specific service account, not the default credentials. I can't find any documentation anywhere on how to…
0
votes
1 answer

Atomically Access a Secret on Google Cloud?

I would like to use Google Cloud's secret manager and either: a) Read a secret (if it already exists) b) Write a new secret (if none exists) However, based on the details here[1], it appears that only creating a secret version is a strongly…
aronchick
  • 6,786
  • 9
  • 48
  • 75
0
votes
0 answers

How to use Google Secret Manager with Flutter?

I have downloaded the service account json from Google Cloud and stored it in my assets folder. I well have the rules "Secret Manager Secret Accessor" et "Secret Manager Viewer" enable in my google cloud project Here is my code : const String…
Chloé
  • 331
  • 1
  • 5
  • 14
0
votes
1 answer

"Failed to de-alias project." error when listing gcp secrets with gcloud

I have the following error when I do the command gcloud secrets list: ERROR: (gcloud.secrets.list) HttpError accessing : response: <{'vary': 'Origin, X-Origin,…
Martin J
  • 2,019
  • 1
  • 15
  • 28
0
votes
1 answer

Private key not working when using Google Secrets Manager in Apps Script

I have a Google Apps Script application that uses a service account with domain-wide delegation to make changes to user accounts on a domain. To improve the security of the application, I moved from storing the private key in code to using Google…
Ian Hyzy
  • 481
  • 5
  • 26
0
votes
1 answer

Storing .env variables and initializing modules for Firebase Cloud Functions

I am trying to figure out the best way to store environment variables and initialize modules for cloud functions. From my understanding, there are 3 main ways, each with a potential drawback: Using .env variables (what I am currently doing) - This…
0
votes
0 answers

Fetch secret from google secret manager on a NodeJS Library

I would like to fetch secrets from google secret manager in my NodeJs Library. This is not an App Engine application. I'm creating a central logging library that sends logs from the firebase functions to LogScale. Because it is a library, it is…
Nino Matos
  • 91
  • 9
0
votes
0 answers

How to test DB connection Using Google Cloud SQL, Secrets Manager with Django 4.1 gcloud setup. Windows 10

I am following this tutorial and when I get to "python manage.py make mirations" I get the error - Models aren't loaded yet cloud-sql-proxy.exe is running on another cmd. I am trying to troubleshoot this but I am very new to Google Cloud SQL and…