128 questions
0
votes
1
answer
97
views
Apigee Mock Response Not Triggering for Specific Error Status Code (400) in Flow
I am working with Apigee API Gateway and trying to configure a mock response for a specific scenario. Here's the problem:
I have an API endpoint /api/v1/XXXX/id/profile that returns profile data of a ...
0
votes
0
answers
119
views
Quota Limits Not Respected When Using x-api-key Header in API Gateway
I have configured my openapi.yaml to restrict access to one of the API endpoints with the following quota settings:
x-google-management:
metrics:
- name: "read-requests"
...
1
vote
1
answer
798
views
FastAPI and GCP API Gateway
I have a backend developed in FastApi using OpenAPI 3.0. It's hosted in GCP Cloud. The FastAPI is auto-documented (Swagger UI), and it's exposed to internet.
Now, I am deploying a GCP API Gateway in ...
0
votes
1
answer
534
views
Google Cloud API Gateway API Key Authentication Not Working
I've been having some trouble getting my API to work only with API key authentication.
I have deployed a Cloud Run app for a simple flask API that returns "hello world", requiring ...
0
votes
1
answer
589
views
GCP API Gateway - Authentication jwt
I want to use my Google Functions through API Gateway with the same behaviour, just with a clean API.
Since the beginning, I'm calling functions with this method:
curl "https://URL-OF-FUNCTION/...
0
votes
1
answer
71
views
Getting "getaddrinfo ENOTFOUND 500" error while invoking GCP apigw-2.com/api2 from GCP cloud run micro-1.com/api1
At present we have the below integration flow
angular app -> GCP apigw-1.com/api1 -> GCP cloud run micro-1.com/api1 -> GCP cloud run apigw-2.com/api2
we can invoke below without issues
...
1
vote
1
answer
128
views
Need design suggestions about role-based authorization
Below is the architecture of a project that I am working on. And I have some questions about how to implement role-based authorization.
What do I want to do here?
I want to make a shared system to ...
1
vote
0
answers
227
views
Is there a way to get an oauth2 "access_token" to Google API with my JSON credential file?
I'm trying for long hours to make a simple HTTP Post request for one of google's REST API.
(Specifically the image text predict one, using model imagetext@001)
I'm supposed to send an "...
0
votes
1
answer
167
views
Is there a way of checking the SA used in a Google API Gateway?
I create an Google API Gateway recently with Terraform to create it associated with a custom SA that will handle the IAM between the backends and the API.
Now that's created I can't find a way to ...
0
votes
0
answers
325
views
API Gateway GCP - proxy to not-gcp endpoint
I couldnt find example in documentation.
I work with API Gateway from GCP to use it for Cloud Functions/Cloud Run etc, all are part of GCP infra.
But now I want to have external URL
I know they are ...
1
vote
0
answers
373
views
GCP API Gateway: Do unauthenticated calls count towards usage for billing
I have setup a simple API on API Gateway and restricted access to it via API Keys. Now, if a user calls the API with a missing/invalid key, would that count towards billing (https://cloud.google.com/...
0
votes
0
answers
1k
views
How to report activity by individual API keys in Google Cloud > Google Maps Platform?
We've experienced an issue recently where Google Cloud billing increasing greatly due to increased access to our Places API.
It turns out that we'd not properly used Credentials to restrict usage of ...
1
vote
2
answers
521
views
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 ...
0
votes
1
answer
444
views
How can I implement custom user authentication provider/service and forward response to backend using gRPC in API Gateway on Google Cloud?
I was reading the docs on API GATEWAY, but I couldn't find the solution for the problem:
What I am struggling to achieve is, I have multiple services on cloud run, and one service is the ...
0
votes
1
answer
298
views
If I implement a load balanced to have my domain. how do i block the automatically generated url for my api gateway?
I am implementing security to my Cloud Run services through an Api Gateway NEG and a load balanced
I need block the automatically generated url for my api gateway so that they only access my services ...
0
votes
0
answers
258
views
Cloud Api Gateway not working with ^ special character
I have Implemented cloud API Gateway with eureka service discovery.
When I am calling my REST end point using API Gateway URL with query parameter including "^" special character, I am ...
0
votes
2
answers
225
views
Firebase Cloud Storage Caching from Firebase Hosting
So my backend application architecture is the following:
Deployed Web Api microservice on cloud run (nodejs express app)
Configured API Gateway for token validation from client (mobile app)
Profile ...
1
vote
1
answer
2k
views
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....
1
vote
1
answer
383
views
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 ...
0
votes
0
answers
271
views
404 Error on GCP App Engine Static Files via API Gateway
I have a node.js app deployed in App Engine. And I have my API Gateway setup in-front to route to that app.
API Config(yaml)
paths:
/hello:
get:
summary: Hello
operationId: hello
...
0
votes
2
answers
2k
views
Google API Gateway with API Key and JWT based authentication together
I am looking to build a service with authentication while also have the ability to restrict API calls. This is on GCP.
I am looking for Google API Gateway for this and understand that JWT based ...
4
votes
1
answer
360
views
GCP API Gateway - Cannot convert to service config with parameter in url path
The problem
I am getting my yaml file rejected by the GCP API Gateway. According to the docs here my path of /address/state/{state_id}/counties is a perfectly valid url, but I am getting this error.
...
0
votes
2
answers
728
views
Multiple APIs with custom domain in GCP
Imagine a use case where multiple REST APIs (pure API with no UI) are deployed using Cloud Run or Cloud Functions. Each API:
is unique and for a specific outside client, which will use it for
various ...
1
vote
1
answer
547
views
Google cloud npm package text to speech the FEMALE voice not working
Google cloud npm package text to speech the FEMALE voice not working but its always come with NEUTRAL voice
...
0
votes
1
answer
142
views
How to generate idToken from refreshToken securely
1.HTTP python client (a script) => 2. GCP API gateway => 3. validate request against firebase => 4. if request valid call cloud function v2 (cloud run)
Python script is generating ID token ...
0
votes
1
answer
1k
views
Cloud Run ingress - internal-and-cloud-load-balancing from api gateway
I have the following setup:
GLB -≥ Serverless NEG -> API GW -> Cloud Run
Is that possible to limit the ingress with the configuration option internal-and-cloud-load-balancing?
I am getting 403. ...
0
votes
0
answers
263
views
GCP API Gateway - Tracing not propagated
Traicing is currently not supported for API Gateway based on this documentation
However, when the trace is "started" by some component in front of that e.g. LB those traces/headers are not ...
0
votes
1
answer
762
views
GCP Config Create Gateway Bug
It doesn't seem possible to create an API Gateway config for a gateway i've created using:
gcloud api-gateway apis create test-api --project=acme-prd
Then the following command fails
gcloud api-...
2
votes
0
answers
162
views
Android application Apple sign-in failed with API_KEY_ANDROID_APP_BLOCKED Error
I have implanted Apple sign-in as a social login sign-in option to an Android application on mine. When I try the feature web view displays the following error.
{
"error": {
"...
0
votes
0
answers
404
views
GCP Gateway API Not Getting Authenticated with Oauth access token
Need to authenticate the GCP Gateway API with Oauth When testing with Postman sending the get request to the API returning the response that JWT is in wrong format.
"Jwt is not in the form of ...
1
vote
1
answer
502
views
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.
...
0
votes
1
answer
3k
views
How to use Google Service Account json file in .NET 6
I'm trying to create a .NET 6 web app that connects to Google Cloud API's, and host my app on Azure
I've created a service account with "Owner" permission, downloaded the json file, and ...
0
votes
0
answers
864
views
Can you wildcard route paths to multiple backends in Google API Gateway?
I'm trying to use Google API Gateway as the entry point for multiple backend services. The services have common endpoints, like /api/data that conflict with one another. I would like to pre-pend an ...
0
votes
1
answer
203
views
Can I authenticate the client accessing my API gateway using TLS-PSK?
I created an API Gateway to allow a certain client to access specific routes in my app engine. The client prefers to authenticate using Pre-Shared Key (PSK) over TLS. Is it possible to do that in a ...
0
votes
0
answers
352
views
How to use GCP API-Gateway for App Engine microservices?
I have multiple services deploy on App Engine default environment. Now I want to create a API-Gateway to make the calling of the services easier to use in Frontend. Also I can then use the security ...
0
votes
2
answers
260
views
GCP API Gateway - Hide project details in response message "quota exceeded"
When a configured quota is exceeded, the API Gateway responds with a detailed http 429 message to the client. This message contains information about the Google Cloud project such as the project name ...
0
votes
1
answer
726
views
GCP Load balancer terraform recipe for api gateway returns 404
I have created an LB for the api gateway using google documentation and it works fine, but after creating it using the terraform recipe it gives me a 404 page not found. These are the terraform ...
0
votes
0
answers
174
views
google cloud apigateway with dynamic endpoints
I am using the google apigateway with the following structure:
an endpoint called 'product' and then a product id. Hence each product gives a different url. E.g. my first product might be https://www....
1
vote
1
answer
774
views
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 ...
2
votes
0
answers
524
views
How to resolve GCP API gateway error 500?
My request flow is :
1.HTTP python client (a script) => 2. GCP API gateway => 3. validate request against firebase => 4. if request valid call cloud function v2 (cloud run)
Python script is ...
0
votes
0
answers
351
views
GCP API Gateway with multiple gRPC backend services
I have two (backend) gRPC cloud run services and I would like to expose both of them in a singe API Gateway. I have successfully exposed one of the two services through a gateway by following the ...
1
vote
0
answers
159
views
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 ...
1
vote
1
answer
2k
views
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 ...
0
votes
0
answers
321
views
Google cloud run endpoint (extensible) service proxy api gateway firebase token
Super basic (video) but the title is nearly my comment to Top 3 ways to run your containers on Google Cloud
User Authentication (content) in 2020 about api gateway from endpoints
Maybe a focal point ...
0
votes
1
answer
478
views
GCP API Gateway is confused about JWT by adding an external load-balancer in front
I had a running setup where a backend Cloud Run service was fronted by API Gateway. The security definition was straightforward:
flow: "implicit"
type: "oauth2"
x-google-...
0
votes
1
answer
1k
views
Routing traffic to two different backends in Cloud API Gateway using prefixes
I'm trying to migrate from using a Loadbalancer to Cloud API Gateway to reduce costs. My current loadbalancer routes all traffic to two backends, anything starting with /api/ goes to one cloud run ...
0
votes
0
answers
710
views
GCP API Gateway : Authentication of already logged in Google Users
Our API gateway exposes a URL endpoint to load images etc. from a Cloud Run backend service. This URL endpoint is used by a user interface secured by Google's Identity Aware Proxy (IAP). Therefore, ...
0
votes
1
answer
290
views
How do you use GCP's NodeJS library to deploy new API Gateway OpenAPI Specs?
The problem I'm trying to solve, is this:
I want to be able to deploy a new API Gateway configuration-file, that is the OpenAPI 2.0 (Swagger) specification, which API Gateway uses to set up the ...
1
vote
1
answer
892
views
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 ...
4
votes
1
answer
5k
views
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 ...