Questions tagged [gcp-secret-manager]
13 questions
2
votes
1 answer
How to read a secret from GCP secret manager in terraform
I have manually enabled secretmanager API and created a secret in GCP.
I want to read this secret in my Terraform and use it for postgres instance.
Following is what I have tried so far:
data "google_secret_manager_secret_version"…

Aseem
- 5,848
- 7
- 45
- 69
2
votes
2 answers
Retrieving environment variables in Google Cloud stored in secret manager
I am unable to retrieve an environment variable accessed in code in my bitbucket deployed application.
When my application starts, I want to fetch db uri, like this:
const uri = process.env.MONGODB_CONNECTION_URI;
Whenever I build and push the…

larsesen
- 63
- 2
- 8
2
votes
2 answers
Get secret for the Helm Chart from GCP Secret Manager
Is there any way to retrieve secrets for the Helm Chart from the GCP Secret Manager during the chart deployment CI/CD pipeline? Or is better to use CI/CD secret manager and then there pull credentials for the chart deployment?

JackTheKnife
- 3,795
- 8
- 57
- 117
1
vote
0 answers
Spring boot not able to get secrets from Google secret manager during deployment in GCP
I have a Spring-boot based micro-service which is getting the database URL and credentials from GCP secret manager. I was able to run the service on my local and the secrets were being fetched from GCP secret manager without any error.
I have also…

Sumit Desai
- 1,542
- 9
- 22
1
vote
1 answer
Secret Manager- To create the secret of a secret_name which is out there already and used by production application
We are trying to run terraform script to increase the size of Redis instance.
The plan says, it is going to create the secret of a secret_name which is out there already and used by production application.
Solution for the error

lokesh kumar
- 11
- 1
1
vote
1 answer
Spring Boot cloud config does not handle Google Secret Manager tokens
I am running a web app using Spring Boot 2.6.10 with external configuration. Our configuration server is secure, so credentials must be provided. The credentials are stored in Google Cloud Secret Manager. However, it seems that the Spring Cloud…

MiseryMachine
- 73
- 7
1
vote
0 answers
Can we pass different credentials for SecretManagerTemplate in Spring Boot?
Is there a way to pass different credentials to SecretManagerTemplate (from spring-cloud-gcp-starter-secretmanager)?.
I've been searching ways of configuring different credentials for SecretManagerTemplate, but i've found nothing so far.
This is the…

Stranger
- 73
- 6
0
votes
1 answer
java.lang.IllegalStateException: getTransportChannel() called when needsExecutor() is true while getting gcp secret manager
I tried to use with dependency version google-cloud-secretmanager 2.13.0. is there anyone can help with this? Here is util class to get secret manager value.
public String get(String secretName) {
try (SecretManagerServiceClient client =…

Chan Myae Aung
- 1
- 1
0
votes
0 answers
GCP authentication not working with gcloud auth activate-service-account
I have a Spring-boot and docker based micro-service which has database details in GCP secrets manager. I am trying to do the GCP authentication required for secrets manager using gcloud auth activate-service-account. However, when I am debugging the…

Sumit Desai
- 1,542
- 9
- 22
0
votes
1 answer
How to read Secret Manager secrets as file (e.g. GOOGLE_APPLICATION_CREDENTIALS as Json)?
So far I would point GOOGLE_APPLICATION_CREDENTIALS to the file which stores the service-account (SA) credentials for the Firebase SA e.g.…

Stefan Falk
- 23,898
- 50
- 191
- 378
0
votes
1 answer
Google Cloud Platform: secret as build env variable
I have a few Google Functions with some private NPM packages, that I need to install during the build phase.
Credentials to NPM registries are set via .npmrc file. Token is expected to be ENV variable, as…

Petr Bělecký
- 67
- 1
- 7
0
votes
1 answer
The frequency of loading Secret Manager in Cloud Run
I am considering migrating my current web services to Cloud Run.
In Cloud Run's "Variables and Secrets", if we use Secret Manager to mount environment variables and credential files, how often will Secret Manager be read by which of the…

Coichiro Aso
- 3
- 1
0
votes
0 answers
Terraform module for GCP secret module
Error: Unsupported block type
│
│ on ..\Terraform_1.0.0_Win_O\config\secret\secret.tf line 6, in module "secret_user_managed_replication":
│ 6: replication {
│
│ Blocks of type "replication" are not expected here.