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

Serverless API Gateway on GCP

I'm looking for a solution to have a gateway to serverless on GCP with an Authorization/ Authentication made by IAM but didn't find a perfect solution to it. The idea's to have these gateway managing endpoints from APIs on GCP Functions, Cloud Run…
1
vote
1 answer

Cloud Function not deploying correctly

I am trying to patch(update) a job present in the cloud scheduler from a function mentioned below. This function uses api to update the Job's attribute(access_token). However its not deploying correctly. Are there any issues in code? import…
1
vote
0 answers

CORS error for missing Access-Control-Allow-Origin in preflight response header with NodeJs endpoint

I need to receive the privileges from Server for the Access-Control-Allow-Origin: *  in the response header. Keep receiving CORS error for some endpoints: 'Response to preflight request doesn't pass access control check: No…
1
vote
0 answers

GCP API Gateway: Setting required to false for parameters returns "properties not allowed by the schema" error

Trying to setup a cloud endpoint. with the following config. # openapi2-functions.yaml swagger: '2.0' info: title: Redacted description: Redacted version: 1.0.0 schemes: [http, https] produces: - application/json paths: …
1
vote
1 answer

Does Google API Gateway support web gRPC filtering?

I have Google Run containers serving gRPC services. I'd like to build out a front end using web gRPC on Firebase. I am exploring the usage of Google API Gateway as a proxy between web gRPC and proper gRPC. I am looking at this guide:…
1
vote
1 answer

Pulumi Outputs - create an external config file

I'm working with Cloudrun in GCP and would like to summarise the created APIs with API Gateway. This requires a Swagger/OpenAPI v2 document to be created containing the google generated URLs for the Cloudrun Services. How can I get these from the…
1
vote
0 answers

How can I validate scopes using API Gateway?

I am trying to validate the user's JWT on API Gateway. I can successfully validate JWT itself and its audience. On top of that, I want to block endpoints if a user has not the right scope, e.g., requests to "/api/v1/separate" should not be forwarded…
1
vote
1 answer

GCP Load Balancing with API Gateway returning 404

I have setted up an API Gateway in GCP and now I'm trying to configure GCP's Load Balancing in front of the gateway. In order to do this, what I've done is: Setted up a internet NEG with port 443 as default and the domain name to the gateway's url…
1
vote
1 answer

Does Cloud Endpoint and API Gateway (GCP) support Websocket?

I would like to ask everyone about the limitation of these services Cloud Endpoint and API Gateway (Beta) on the Google Cloud Platform. These services are support WebSocket protocol? Because I can't find the docs official reference about it. As I…
1
vote
1 answer

Difference between Google Cloud Endpoints vs. Google API Gateway

I recently stumbled over two products of GCP and am unsure how to differ them. The product descriptions of both always sound like the ultimate solution but I can't find a real difference between them. https://cloud.google.com/endpoints vs.…
1
vote
0 answers

Google Cloud API Gateway - "internal error has occurred" on creation

I am looking to create a GCP Cloud API Gateway resource for my project. I have created the API and also created the API config. I am now looking to create the Gateway itself. However, when I run the Gateway creation command I get the following…
1
vote
1 answer

Google cloud API Gateway with authentication yaml config file deployment error

I am new in API Gateway and trying to enable security on my API. I follow some instruction which I found on the internet like this: https://medium.com/swlh/manage-serverless-apis-with-api-gateway-in-gcp-b7f906efec1a Here is my YAML file: #…
user565
  • 871
  • 1
  • 22
  • 47
1
vote
0 answers

After the integration with GCLB, will it be possible to route multiple api configs in a single gcp api gateway?

GCP API-Gateway documentation says the following A gateway only host a single API config. You cannot deploy multiple API configs to the same gateway. https://cloud.google.com/api-gateway/docs/glossary But I want to manage a separate swagger file…
1
vote
1 answer

Google Cloud API Gateway authenticate multiple service accounts

For the APIs hosted in GCP I'm planning to authenticate consuming services (from outside gcp environment) with the help of service accounts with private keys and API gateway. It all works fine for one service account (service-account-1),…
0
votes
0 answers

Google Cloud Rest API Authentication through Service Account

I invoking google cloud rest API from postman. As per google documentation, I have created Service Account and download key json file and json file contents are as below "type": "service_account", "project_id": "myproject", "private_key_id":…
1 2 3
8 9