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

ssh keys inside cloud build

I am trying to create a service that would run in a container, connect to a remote host by ssh and perform several commands remotely. This service will be built and run in cloud build. Right now I am stuck with trying to inject SSH keys into a…
vadim_v
  • 73
  • 2
  • 9
0
votes
1 answer

cloud build does not recognize build directory argument

I am trying to build a Cloud Run job with a trigger from Cloud Build and secrets from Secret Manager. I managed to get the trigger that I use to build my Dockerfile to run, but the build itself fails with the following error: BUILD Starting Step #0…
0
votes
0 answers

Java springboot gke + secret manager

I have a problem with my java pod application: I put a service account in the deployment.yaml, my code is: @RestController public class HelloSecretController{ @Value("${sm://myjavasecret}") String myJavaSecret; @Autowired private…
0
votes
1 answer

Terraform deletes google secrets version

My code is as below: # Enable API for Secret Manager resource "google_project_service" "secret_manager" { project = "buoyant-valve-34" service = "secretmanager.googleapis.com" disable_on_destroy = true } resource…
0
votes
0 answers

How do you convert bytes into a zipped file in python? (originally a zip file) for GCP secret manager secrets?

really need someones help here. I am currently trying to store a zip file in GCP secrets manager and then retrieve the zip file in python. from google.cloud import secretmanager import base64 client =…
0
votes
0 answers

Access Secret Manager Service Account from Cloud Run

Using Azure Devops I'm developing a Cloud Run service on PROJECT_A that need to utilize a Service Account of a PROJECT_B to read logs from Stackdriver. I've successfully deployed the Cloud Run using its gcloud commands. gcloud run deploy [[SERVICE]…
0
votes
1 answer

Python create secret with tags in Google Secret manager

I am using Google Cloud run for my applications. I am storing all my secrets in Google Cloud Secret Manager. To read secrets I do the following: from google.cloud import secretmanager import hashlib def access_secret_version(secret_id,…
Europa
  • 974
  • 12
  • 40
0
votes
1 answer

How to use two differents projects id of GCP in Cloud Function

I have a Cloud Function, in this function I'm connecting database through secrets by GCP for my secrets I'm using different project id (com-project-data) For my Google Cloud Function I'm using another project id (com-project-common) Exists a…
0
votes
1 answer

Google Cloud Function: Expose Secret as Environment Variable?

I have set up a few Google Cloud Functions that access various APIs in their implementation. Naturally, these APIs require tokens or username/passwords to work. I have created these secrets in Google Cloud Secret Manager and can successfully access…
0
votes
0 answers

Using gcloud node.js client libraries like @google-cloud/secretmanager, @google-cloud/firestore etc. in a Vue 3 app

Can Google Cloud node.js client libraries like @google-cloud/secretmanager, @google-cloud/firestore and the like be used directly in a Vue3 client side app or do we need to develop a backend API to act as an intermediary between the Vue3 frontend…
0
votes
1 answer

Create a simple text secret in Google Cloud Secret Manager using CLI

When using the GUI on Google Cloud Console to create a secret all I needed to provide was the secret name and it's value and I'm done. However, I would like to use the gcloud cli to create simple string secrets. So far, all the documentations in the…
ololo
  • 1,326
  • 2
  • 14
  • 47
0
votes
1 answer

Accessing Gcp secret manager by aws

How to automate AWS access keys for the key rotation to update in GCP Secrets manager? Is there any service for this automation? We searched around the google for the documentation we couldn't find any results. Please provide any documentation on…
0
votes
0 answers

How to authenticate client via "clientViaApplicationDefaultCredentials"

I'm trying to consume the SecretManager API but I'm getting: Future getSecret()async { final client = await auth.clientViaApplicationDefaultCredentials( scopes: [FirestoreApi.cloudPlatformScope]); try{ final api =…
0
votes
1 answer

Passing Gitlab CI variables to Google Cloud Secret Manager

I have variables in my gitlab CI that I want to pass to GCP secret manager through my CI/CD piepeline. I found this command that allows me to create a single secret : gcloud secrets create secret-id --data-file="/path/to/file.txt" But when it comes…
0
votes
0 answers

Cloud Functions alternative with Secret Manager without timeout quota

With so many GCP options, what is the best Cloud Functions alternative to store a node.js code on GCP that should be executed without any time restriction and with access to the Secret Manager? For a better illustration, the existing node.js code is…