Questions tagged [google-cloud-api-gateway]

API Gateway enables you to provide secure access to your backend services through a well-defined REST API that is consistent across all of your services, regardless of the service implementation.

With API Gateway, you can create, secure, and monitor APIs for Google Cloud serverless back ends, including Cloud Functions, Cloud Run, and App Engine. Built on Envoy, API Gateway gives you high performance, scalability, and the freedom to focus on building great apps.

Documentation page for API Gateway.

129 questions
1
vote
2 answers

API Key Authentication stops working when Firebase Authentication is added in Swagger (OpenAPI 2.0) for GCP Cloud Functions

I'm working with a Swagger 2.0 (OpenAPI 2.0) specification for my Google Cloud Function API, and I am facing an issue with the authentication part of the configuration. I have initially set up API key authentication and it was working perfectly…
1
vote
1 answer

code": 403, "message": "Not Authorized to access this resource/api

GET https://admin.googleapis.com/admin/directory/v1/groups/{groupKey}/members I'm unable to make this HTTP call. here's my code is from google.oauth2.credentials import Credentials from google.auth.transport.requests import Request from…
1
vote
0 answers

GCP API Gateway keep give error "http: body field path \'foo\' must be a non-repeated message."

What could be causing the error "http: body field path 'foo' must be a non-repeated message" when deploying the configuration to GCP API Gateway with the following api-spec.yaml? I've read documentation swagger 2.0 and I think there's no issue here.…
1
vote
1 answer

How to add Authenticated cloud function behind GCP api gateway having firebase auth

My setup is like API lib built on top of API gateway endpoints => gateway authenticates requests against firebase users => Call Cloud function for an endpoints. This seems to be working fine. Only concern is security/authentication of cloud…
1
vote
1 answer

What's the best way to proxy requests with GCP?

What is the best way to proxy requests with GCP, e.g. to hide secrets. Is it by making use of GCP API-Gateway which spawns a Load Balancer or by using a Load Balancer directly. Or are there any other ways? A sample request to "transform" might…
1
vote
0 answers

What is the best way to proxy / rewrite URL with gcp to hide secrets without spawning a function / service?

I have an app which calls an external provider which needs a key in the URL. For security reasons I can't include the key in the app to call the external API directly. Therefore I need to proxy this URL / rewrite URL and attach the key in the URL…
1
vote
1 answer

Google API Gateway OpenApi Swaagger 2.0 to CloudRun Parameter configured for Path turns out in query instead of path

I'm testing an API Gateway setup on Google Cloud to access specific endpoints on a service deployed on Cloud Run. I'm following the steps shown here. We need to authenticate using an API Key, so the API Key specific configuration that went into the…
1
vote
1 answer

Is it possible to increase the validity of GCP JWT tokens beyond 1 hour? And is there a global API endpoint that I can scope the JWT to?

I'm trying to configure automation in my automation tool (called Tines), that will query the GCP IAM Recommender API and get recommendations for all my GCP projects. So naturally two API services are involved…
1
vote
0 answers

How to submit apache beam dataflow job to GCP through java application

I have a dataflow job which is written in apache beam with java. I am able run the dataflow job in GCP through this steps. Created dataflow template from my code. Then uploading template in cloud storage. Directly creating job from template option…
1
vote
1 answer

Google Cloud Api Gateway and Cloud Run in private context

I have a Google Cloud Api Gateway in front of a Cloud Run Backend. If both are public everything works. If I check Allow internal traffic only on Cloud Run, Api Gateway does not have access to the backend. Is there a way to keep a private connection…
1
vote
1 answer

Frequent errors on GCP API Gateway

I have an App Engine Standard Java 11 application served behind a GCP API Gateway. When I check the Cloud Logs I frequently see these errors like the following from API Gateway: { insertId: "5e1e0f456172eda03520c9fae065f312-1@a1" jsonPayload: { api:…
1
vote
0 answers

How to allow users to consume GCP API Gateway programmatically?

I have a simple bussiness case, not real one, but common: We have an API to sell, maybe weather API. Users stored and managed with some identity provider. Users can generate JWT token to use for machine-to-machine communication. For example using…
1
vote
3 answers

Save the result of a query in a BigQuery Table, in Cloud Storage

I would like to know what is the OPTIMAL way to store the result of a Google BigQuery table query, to Google Cloud storage. My code, which is currently being run in some Jupyter Notebook (in Vertex AI Workbench, same project than both the BigQuery…
1
vote
1 answer

Google Cloud API Gateway can't invoke Cloud Run service while using firebase auth

I am using API Gateway with firebase JWT authorisation (so that users can use google sign in) that is forwarding the requests to cloud run services and one cloud function service. Here is how my API Gateway config looks like: swagger: '2.0' info: …
1
vote
1 answer

Enabling Strict-Transport-Security header on GCP API Gateway

I am serving an App Engine Standard Java 11 runtime behind a GCP API Gateway. The application uses Spring Security to set security headers. I want to enable Strict-Transport-Security header in my responses but even tough the header is enabled by…
1 2
3
8 9