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
26
votes
1 answer

Difference between Google's API Gateway and Cloud Endpoints

Recently I checked that Google release an API Gateway product, but I don't get what is the difference between the already created Cloud Endpoints, both of them seems to be very similar. Is API Gateway a newer version of Cloud Endpoints?. Or is it…
13
votes
6 answers

CORS errors when trying to fetch from new Google Cloud API Gateway

I was testing out the new API Gateway to secure a cloud function for my React application. So far the process has been much nicer than the previous alternatives, but I am currently getting CORS errors when trying to reach out to my API Gateway from…
8
votes
1 answer

Does Google Cloud API Gateway come with a Configurable Timeout?

I've looked through the Google Cloud API Gateway docs and searched the public issue tracker but haven't been able to find a mention of it one way or another. The closest I've come is this google groups thread from 4 months ago, which suggests that…
grunet
  • 311
  • 2
  • 9
7
votes
3 answers

GCP - How to update api specification in API Gateway

I have created an API Gateway and created an API config as well associated with it which lists a set of APIs. Now I want to add/modify a set of APIs. How do I update the same API config of this gateway?
Saurabh
  • 81
  • 1
  • 6
7
votes
1 answer

GCP - access from API Gateway to Google Cloud Run backend

In my GCP project, I have a python API running in a docker container (using connexion). I want to expose the API (with an API key) using API Gateway. When I deploy the docker container with --ingress internal, I get Access is forbidden. on API calls…
7
votes
1 answer

Using GCP API Gateway to front a Cloud Run backend with private ingress

I'd like to front my Cloud Run hosted API with API gateway, and only allow access to the Cloud Run URL from API Gateway. I currently have an API deployed to Cloud Run with "public" ingress and authorization enabled. This works, however I'm curious…
6
votes
2 answers

Google Cloud API Gateway with Google Kubernetes Engine (GKE)

I am looking for a working example/tutorial on how I can use Google Cloud API Gateway with microservices/API hosted in GKE. For example when I try to create an API Gateway and I point it to an existing API on GKE I get the following error: Backend…
6
votes
2 answers

Google Cloud (API GATEWAY) Custom Domain

I am currently building a rest api, for this I am using Google Cloud API Gateway and Google Cloud Run. I've been looking at all the google cloud documentation and researching elsewhere and I can't find how to add a custom domain to an API gateway…
andrefedev
  • 157
  • 2
  • 10
5
votes
1 answer

How can a Google Cloud API Gateway endpoint deliver data from a Cloud Storage file?

I'm in the process of building a large API that will use Google Cloud API Gateway to route various endpoints to different services – some may be serverless Cloud Functions, others will be served by a Rails app in our Kubernetes clusters, and so…
5
votes
1 answer

GCP API Gateway: Cannot use path params

I'm struggling to pass the path params from my gateway to the actual endpoints. Here is my Open API yaml: swagger: '2.0' info: description: | Blah blah version: 0.0.1 title: SSAuth contact: email: blah@gmail.com schemes: -…
Son Nguyen
  • 1,124
  • 2
  • 10
  • 24
4
votes
0 answers

How to connect GCP API gateway to the GKE?

I have configured GCP API gateway, but it is not able to connect back to GKE service. Is there any alternate solution ? What about GCP cloud endpoint? can we achieve same scenario by cloud endpoint? Or should we require in both case to use internal…
4
votes
0 answers

Authenticating with Google access token on GCP API Gateway

I'm trying to perform authentication on GCP API Gateway using Google access token (ya29.***, OAuth2). However, the the documentation has content on only JWT tokens. It seems it is possible to use Google ID token (which is a JWT) but I don't have it.…
4
votes
3 answers

API Gateway not returning Response

I was trying GCP API Gateway using firebase authentication. I can see my request has been processed from the logs and completed with response code 200. However, I am not getting the response back to my client. I am getting the response when I call…
3
votes
1 answer

I can't get google cloud functions gen 2 to work with only authorized requests from behind a API Gateway

I recently switched to google cloud functions gen 2 and am having an issue with authentication via API Gateway. I have the new cloud function being called by my gateway with the function itself not allowing unauthorized users. The gateway has a…
3
votes
1 answer

Securing Cloud Function Using API Gateway

My goal is to prevent users from accessing my cloud function endpoints by using an API key and API gateway. I have successfully deployed the API gateway; however, the original endpoint of each cloud function still exists and is accessible to the…
1
2 3
8 9