Questions tagged [google-api-gateway]
66 questions
8
votes
2 answers
Google API Gateway: Provide API key in header
I'm trying to setup Google API Gateway to use an API key that callers send in the header.
My api config yaml looks like this:
...
securityDefinitions:
api_key_header:
type: apiKey
name: key
in: header
api_key_query:
type: apiKey
…

Slava Medvediev
- 1,431
- 19
- 35
3
votes
3 answers
Google API Gateway: Authorization Header not forwarded
I have a Google Cloud API gateway deployed to send requests to a cloud run service.
The cloud run service hosts a laravel docker container image and to authenticate with my authenticated pages, I need to send an Authorization header (Authorization:…

Lance Armah-Abraham
- 310
- 4
- 13
2
votes
1 answer
Firebase Hosting rewrite path to use GCP API Gateway as backend for SPA
I am trying to find a way to connect the backend (GCP API Gateway) to our Angular app hosted on firebase.
The goal is to route requests on myapp.com/api to the API Gateway. All other routes should server our SPA.
I know there is a possibility to…

smarkue
- 21
- 1
2
votes
0 answers
GCP API Gateway How to config 50 to 60 endpoints using API Gateway?
Have multiple API to be configured using API Gateway. But config file will be larger and more over it is not possible to configure each and every API in API Gateway. Is there any other ways are there for it ?. I am using cloud functions and clouds…

Sowndharya K
- 21
- 1
2
votes
1 answer
GCP API Gateway to secure internal/external communication for API deployed on App Engine
I am building a microservice architecture and I need help with internal/external communication.
I have microservices which are deployed on GCP App Engine Flex and have GCP API Gateway that sits in front of them. API Gateway handles external…

Rishabh Rusia
- 173
- 2
- 4
- 19
2
votes
2 answers
GCP API gateway returning 403 saying managed service "is not enabled for the project"
Trying to access a public cloud run service and not sure why I keep getting this error message ({"message":"PERMISSION_DENIED:API basic-express-api-1yy1jgrw4nwy2.apigateway.chrome-courage-336400.cloud.goog is not enabled for the…

Refayat Haque
- 81
- 6
2
votes
1 answer
How to get the jwt payload in route authenticated by api gateway inside the function?
I have a gateway configured for my project, and i added the security options in the route and it's works:
My function thats generate the jwt token:
def generate_jwt():
payload = {"iat": iat, "exp": exp, "iss": iss, "aud": aud, "sub": iss,…

Vinicius Spada Melo
- 38
- 4
2
votes
0 answers
API Gateway modifies backendRequest hostname to be "backend-cluster-dev.equipment.example.com:443" instead of just "dev.equipment.example.com:443"
Can't understand why API Gateway prepends the hostname with "backend-cluster" prefix. The log of the gateway on the request looks like below:
{
httpRequest: {
latency: "0.113s"
protocol: "HTTP/1.1"
remoteIp:…

Roman
- 73
- 8
2
votes
1 answer
Can not delete google api gateway config file
I was trying to delete a config file from the google api gateway service from the UI and also from the command line. But they are saying target config file is in use but I couldn't find it anywhere neither in UI nor in the result of gcloud command…

xalien
- 123
- 1
- 8
2
votes
1 answer
GCP API Gateway: Path parameters are being passed as query params
I'm trying to use GCP API Gateway to create a single endpoint for a couple of my backend services (A,B,C,D), each with their own path structure. I have the Gateway configured for one of the services as follows:
swagger: '2.0'
info:
title:
…

Nissan
- 466
- 1
- 4
- 12
2
votes
1 answer
Google API Gateway - streaming data in response
I'm using Google Cloud API Gateway in order to have single point of entry to my backed-end services and also for adding api-key security level.
And I have one endpoint which should return data as a stream chunk by chunk(content-type is audio/mpeg).…

Alexey Gorbel
- 220
- 3
- 11
2
votes
1 answer
Google API Gateway + Firebase: X-Apigateway-Api-Userinfo vs X-Forwarded-Authorization headers
I'm using Google API Gateway to in my Firebase app to verify if a user is signed-in. In API Gateway's documentation here, it recommends to use the forwarded X-Apigateway-Api-Userinfo header to retrieve user info:
API Gateway will send the…

Jason
- 115
- 6
2
votes
0 answers
how to create api keys for securing google API gateway(Beta) programmatically?
Use case: Users allowed to create api keys and revoke them from webapp.
The docs seem to only show creating Api keys using the Cloud Console. (Link to docs)

jasan
- 11,475
- 22
- 57
- 97
1
vote
1 answer
Why is Google api gateway not passing my query parameter to my cloud function?
TLDR - moved from one query param (api key) to two in my google api gateway config and it only accepts the first one in the url
Seems like this should be easy, but it's not working. I create a google cloud function with some hardcoded params,…

AlexMA
- 9,842
- 7
- 42
- 64
1
vote
1 answer
CORS error: No 'Access-Control-Allow-Origin' header present
I'm encountering a CORS (Cross-Origin Resource Sharing) issue while making an XMLHttpRequest from my web application. The error message I'm receiving is as follows:
Access to XMLHttpRequest at…

muhammad refda
- 31
- 1
- 7