Google Cloud Function : support for Google Cloud KMS

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...

Access environment variables stored in Google Secret Manager from Google Cloud Build

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

How to access GSM secrets through Cloud Build and pass to Cloud Function

How does one pass a secret from Google Secrets Manager (GSM) to a Cloud Function when using Cloud Build? The below cloudbuild.yaml has three steps. Further, I'm using volumes to create permanent...

Can't access secret in GCP Secret Manager

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...

Authenticate Google Cloud vision without using environment variables (set credentials by code)

I am trying to connect to Google Cloud Vision from an AWS lambda function, the only way to authenticate seems to be by setting a certain environment variable, is there a way to authenticate using...

Google Cloud Function don't publish on PubSub, Timeout exceeded

first thanks for reading this and try to answer it :) On GCP (Google Cloud Plateform), i've got a database stored on cloud SQL, 2 Cloud functions, the first one is used to make a request on the...

Access Secret Manager of multiple google cloud projects using google-cloud-secretmanager client library in java

I using GCP Secret manager to store passwords using the google-cloud-secretmanager client library (Java). The client library is expecting the service account key (json) file path for a gcp project...

Certmanager Cross Project DNS01 Challenge Fail

Project Prod and Project Staging have been setup and each running a GKE cluster. Cert-manager is installed to automate the process of certificate issuance as explained in official docs. Project...

Airflow 1.10.13, 2020-11-24 issues after update with pip install

Below is the configuration which worked till December 1st composer-1.11.2-airflow-1.10.6 Python –...

How do I use Google Secrets Manager to create a docker ARG in Google Cloud Build?

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 ...

Connect Google Cloud Build to Google Cloud SQL

Google Cloud Run allows for using Cloud SQL. But what if you need Cloud SQL when building your container in Google Cloud Build? Is that possible? Background I have a Next.js project, that runs in...

Dataflow fails due to ERROR: Could not find a version that satisfies the requirement wheel (from versions: none)

Since the beginning of this year our python dataflow jobs result in an error on worker startup: Processing /var/opt/google/dataflow/setuptools-51.1.1.tar.gz ERROR: Could not find a version that...

How to create a secret in Google Cloud Secret Manager by Terraform?

This is official page: https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/secret_manager_secret I created these files: variables.tf variable gcp_project { type =...

SSH Private Key Not Working After Fetching It From Google's Secret Manager

I have an SSH Private Key which I use to SSH into some server. I have tested the key and it works perfectly. I have uploaded the key to Google Cloud Secret Manager, but when I fetch it from the...

Google Ads API Integration

The Company I work with has many clients who uses Google Ads to do marketing for their websites. The company wants to use client's data for Analysis. I am given a project to integrate Google Ads...

kubernetes external secrets on GKE , Permission error

I install kubernetes external secrets with helm, on GKE. GKE: 1.16.15-gke.6000 on asia-northeast1 helm app version 6.2.0 using Workload Identity as document written For workload identity,the...

Gcloud cloud build local component failing with error "Error loading config file: unknown field "availableSecrets" in cloudbuild.Build"

Greetings stackoverflow community! First time asker, long time user. I am testing out my cloudbuild.yaml file locally using Cloud Build Local component and Secret Manager and it is failing on...

Making authorised requests from Google Cloud Build

I'm trying to set up a deployment street in Google Cloud Build. To do this, I want to: Run unit test Deploy to Cloud Run without traffic Run integration tests Migrate traffic in Cloud Run I've...

Using apache-airflow-providers-snowflake on airflow (no module named Snowflake)

I have installed package apache-airflow-providers-snowflake on airflow on docker and i am getting error No module named Snowflake Please refer attachment (check the error mentioned for the...

Load env variables from Google's Secret Manager into Docker container that runs on Google Cloud Run, but not deployed via Cloud Build?

I'm currently delivering a node + nestjs application via as a docker container using Google's Cloud Run. I'm using the secrets manager for the secrets & using projects for dev/staging/prod and I'm...

How do I connect a Google App Engine API (ASP.NET Core 3.1) to Google Cloud SQL (Postgres) on SSL?

This is the most frustrating question I've never had to ask. How do I connect these two? I have an API (ASP.NET Core 3.1) and I deploy this application onto Google's App Engine. I also have a...

Error: 16 UNAUTHENTICATED: Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid auth credential

My Node.js code utilizing Google Secret Manager stopped working (it worked fine some time ago). I have set GOOGLE_APPLICATION_CREDENTIALS env variable to valid path and...

GCP VM Instance is not able to access secrets from Secret Manager despite of appropriate Roles

I created few secrets in GCP's Secret Manager service. Then to access those secrets on my local machine I created a service account and a JSON key to authenticate that service account from my...

import error after upgrade to airflow2.0.2

Received an import error after upgrading to airflow2.0.2-python3.7 image. Package seems to be installed, not sure what is causing the issue and how to fix it. Tried to uninstalling and...

Storing secrets in firebase projects: Firebase config API or Secret Manager API?

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...

Error: Socket hang up inside google cloud (nodejs) function

I'm using a google cloud function to get an token from Firestore, check if it is still active, if so return access token. Else: Get refresh token from secretmanager Refresh Update refresh token...

Cannot install google-api-core package in our python app (Google Cloud Platform) due to conflicting dependencies (Python 3)

When I tried to install the Google Core API package, it always gets errors for every different version of this package. The app is run in Python 3, and I got the following logs: The user requested...

GKE Workload Identity PermissionDenied

I am trying to use Google's preferred "Workload Identity" method to enable my GKE app to securely access secrets from Google Secrets. I've completed the setup and even checked all steps in the...

Airflow DAG - access context using SimpleHttpOperator to enable XCOM pull

I am struggling to pull xcoms into a task using the SimpleHttpOperator. The below dag is meant to orchestrate a number of requests (via Google Cloud Functions) made to a third party API, store the...

Why does this gRPC call from the Google Secret Manager API hang when run by Apache?

In short: I have a Django application being served up by Apache on a Google Compute Engine VM. I want to access a secret from Google Secret Manager in my Python code (when the Django app is...