Questions tagged [google-api-gateway]
19 questions
1
vote
0 answers
Configure Google Cloud API Gateway for optional Authenticated with JWT, and unauthenticated?
I am trying to set up a GraqphQL Server, on Cloud Functions, and I want to set up an API Gateway to handle authentication with auth0 and jwt....
I have it working from the tutorial, the problem is it always requires a JWT token, where as I want some…
![](../../users/profiles/15757520.webp)
Uncap
- 11
- 1
1
vote
1 answer
JWT Token Google Cloud Run
I am developing an application with JWT authentication on the google cloud platform. Server side I added authentication via Cloud API Gateway to a cloud run backend. Now I am making a client to generate the JWT token and pass it in the call. To do…
![](../../users/profiles/8946341.webp)
Francesco
- 33
- 5
1
vote
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
…
![](../../users/profiles/1729543.webp)
Slava Medvediev
- 994
- 9
- 27
1
vote
2 answers
Google API Gateway throwing 400, Bad Request error for headers with underscore
I'm using Google API Gateway (available in beta) for my service. Facing an issue with the API Requests which have API Headers with underscore (_) in it's name e.g CUSTOM_HEADER_NAME. The API Gateway throws 400, Bad Request for such requests.
The…
![](../../users/profiles/3274644.webp)
Anand Mattikopp
- 167
- 8
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…
![](../../users/profiles/14650715.webp)
Robbie Heywood
- 11
- 2
1
vote
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)
![](../../users/profiles/3818829.webp)
jasan
- 8,391
- 16
- 45
- 90
0
votes
0 answers
GCP API Gateway model implementation and input validation
I am exploring API Gateway of GCP. Is there a way to add model to do input request validation against that model and throw specific errors on Gateway Layer itself.
![](../../users/profiles/8435814.webp)
code tutorial
- 182
- 8
0
votes
1 answer
How to deploy GCP API Gateway and Cloud function together without gcloud commands
We built an API and integrated cloud function as backend. Till now we were deploying cloud function first and API gateway later. Is there a best way to club these two services and deploy it as a whole?
![](../../users/profiles/8435814.webp)
code tutorial
- 182
- 8
0
votes
1 answer
Static IP for GCP API Gateway
Is there a native option to setup a static IP address for a google cloud API Gateway? As far as I researched, looks like I have to setup a cloud load balancer in front of the API Gateway and then use the static IP of the load balancer. I am not sure…
![](../../users/profiles/2876271.webp)
davidbilla
- 1,848
- 1
- 10
- 16
0
votes
1 answer
Google API Gateway: Assign config via gcloud CLI
I'm looking for a way to automate config updates for Google API Gateway, i.e. change config for an existing instance of "API Gateway" in a single step.
What I've tried so far, assuming that new API config name is "my-new-config" and API Gateway name…
![](../../users/profiles/1729543.webp)
Slava Medvediev
- 994
- 9
- 27
0
votes
0 answers
Using google API gateway as single access point for app engine
Recently I've implemented a couple of microservices on App engine, and I wanted to secure them through an API gateway (NO CLOUD ENDPOINTS) that authenticates every request before forwarding it to the backend. However, App Engines have a public…
![](../../users/profiles/14106548.webp)
AndreaCostanzo1
- 514
- 1
- 15
0
votes
1 answer
Why is the Cloud Run URL still accessible after API Gateway applied?
I applied Google's API Gateway using an opeanapi yaml file as the configuration, and received a new gateway URL.
My question is what is the point of the gateway if the original Cloud Run URL is still accessible?
I can make the exact same Postman…
![](../../users/profiles/8508357.webp)
Ty Showers
- 436
- 1
- 4
- 10
0
votes
0 answers
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…
![](../../users/profiles/14936201.webp)
Jason
- 93
- 5
0
votes
1 answer
GCP API Gateway for Compute Engine
I found the following snippet on api gateway marketing page.
So I was setting up API gateway for my app running on compute engine. As I couldn't find any documentation on how to configure compute engine on API engine, I created the following…
![](../../users/profiles/4355203.webp)
vzurd
- 704
- 1
- 9
- 21
0
votes
1 answer
Google API Gateway with Firebase Auth: Unable to get the response back to client
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…
![](../../users/profiles/4355203.webp)
vzurd
- 704
- 1
- 9
- 21