Questions tagged [api-gateway]
A service which acts as a gateway for many other services. Providing discovery, registry, security, circuit breaker, fault tolerance among other things.
1,058
questions
0
votes
0
answers
28
views
Spring Cloud: Why service is not worked in API Gateway
I am working with Spring Cloud. I have four services in my spring boot application college-service, student-service, eureka-server and api-gateway. I am trying to call college-service and student-...
-1
votes
1
answer
26
views
Micronaut Java Rest API not passing Access-Control-Allow-Origin when deployed in AWS Lambda and accessed through API Gateway
I have deployed Micronaut Java Rest API in AWS Lambda and trying to expose through API Gateway. The API resource (with POST method) is integrated with Lambda using Lambda-Proxy. The handler in AWS ...
0
votes
1
answer
28
views
API Gateway with Microservices and Application API with Fallback Controller
I'm creating an application which will be connected to microservices (shared inside company).
Attached screen shows a little of planned architecture
App architecture diagramAs you can see API Gateway (...
0
votes
0
answers
12
views
How to configure microprofile based Jakarta EE REST API to Kong API Gateway?
I am developing a rest api based on microprofile using jakarta ee 9.1. My question is how to confugure Kong API Gateway in jakarta ee based application?
NB: I am not using Spring or Spring cloud ...
0
votes
1
answer
49
views
.NET Microservices and CORS
Please, keep in mind that I am just getting to know microservices.
One thing that came to my mind is connecting CORS with microservices.
I'm creating a project using .NET Core 6 as a backend, and ...
0
votes
0
answers
13
views
Send data by req.user from api gateway to next service
I want to authenticate user by token and set user data in req.user after jwt.verify in middleware but after proxy to next service, I haven't any data in req.user
How can I transfare data by req.user ...
0
votes
1
answer
23
views
Validating requests in gateway service and other services
In our implementation, all incoming requests to the API-gateway service are validated using the JWT token and are routed to the corresponding service. But no protection is given for the other service ...
0
votes
0
answers
13
views
Add tags in existing AWS Apigateway (AWS::Serverless::Api)
I'm trying to add tags in the existing serverless API. I am running the commands in cloudshell and I am not getting any error, but could not find any tags attached to this API. The command I am trying ...
0
votes
0
answers
18
views
warning : at 'resources.Resources': unrecognized property '__deployment__' serverless during the deployment
I'm using serverless-plugin-bind-deployment-id plugin to generate the deployment id dynamically during the API gateway stage creation. During the deployment, I'm getting the below warning. I tried ...
0
votes
0
answers
24
views
Why does 'Same-Site' credentials work for Cross-Origin but 'Include' does not?
Have really been struggling with CORs lately, and finally got a combination that works. However based on all of the documentation I have read, it should NOT work.
From the "Configuring CORS" ...
0
votes
1
answer
41
views
GKE : Ingress to Gateway
I am migrating from ingress to gateway on GKE and wondering if there are things I could keep from the old configuration or if I have to start from zero with GW.
Also, I use envoy proxy, do I need a ...
0
votes
0
answers
19
views
AWS API Gateway - context object with asynchronous invocations
I have a lambda function that runs around 5 minutes and API Gateway's timeout limit is 29 seconds so I've set it up to asynchronously invoke it and used mapping template to pass any relevant data such ...
0
votes
0
answers
28
views
No servers available for service: item-service : Post enable HTTPS on Api-Gateway in Java
I have developed the Micro Service application with all services (Spring Boot) like api-gwateway , service-discovery, cloud-config , item-service and all. I just enabled the https in api-gateway and ...
0
votes
0
answers
39
views
PayloadTooLargeError: request entity too large error in nodejs
I am trying to pass the file to microservice from api_gateway, I can get the file in api_gateway from reactjs but in my microservice I am getting PayloadTooLargeError: request entity too large error ...
1
vote
0
answers
54
views
API gateway (Ocelot) and Aggregator .NET core microservices architecture pattern using RabbitMQ/ActiveMQ
In our application, we adopted a microservices architecture pattern. I am bt familiar with microservices architecture but I have a few doubts:
API Gateway: Userful to have a single point of entry to ...
0
votes
0
answers
7
views
Cognito question - Can cached tokens be used to access API gateway resource?
Scenario
Static S3 content served to via CloudFront - using Authorization@Edge – How to Use Lambda@Edge and JSON Web Tokens to Enhance Web Application Security | Networking & Content Delivery (...
0
votes
0
answers
21
views
API Gateway validator not validating schema of integer query parameter
I have a limit query string parameter that can be in the range of 1 to 100. I'm trying to enforce that range in my OpenAPI 3.0 spec as follows. But instead, through the API Gateway Console Test ...
0
votes
0
answers
22
views
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 ...
1
vote
1
answer
63
views
API Request validation against Swagger API schema (openapi 3.0.2)
Is there any java/python/javascript library that validates API request/payload against openapi 3.0.2
i looked many of the libraries but was not able to find the correct one.
There is one problem which ...
0
votes
0
answers
31
views
Deploy 2 pods gateway api then got token expired error
I deploy my gateway api on k8s, I sync token with spring session hazelcast. It's work fine until I scale replica to 2, hazelcast session cluster worked but when I login (with keycloak) and then when ...
0
votes
1
answer
67
views
To disable direct access to microservice & allow only though api gateway
I am currently working with spring boot micro services. To access those services I am using api gateway with Eureka client but I have one question to secure my service.
Consider I have below 4 ...
0
votes
0
answers
72
views
swagger-request-validator openapi 3.0.2
i am using swagger-request-validator-core library to validate request against open api 3.0. However, it gets fail for some of the requests with error:
Instance failed to match exactly one schema (...
0
votes
0
answers
21
views
Socket.io : type error when trying to use of("/namespace") with namespace
I am trying to get all sockets of users currently connected to my application. First, I did not have namespace and had the following, just as in the doc :
for (let [id, socket] of this.wss.of("/&...
0
votes
0
answers
44
views
Ocelot api gateway does not work in Kubernetes
I have been trying to use ocelot as an api gateway for my microservices application, I have deployed the project on AKS and I have tested every service on its on and seems to be working, when I try to ...
1
vote
0
answers
90
views
Spring cloud gateway api not working even with all right configuration
I was trying microservice with eureka discovery server, api gateway and one rest service. Like shown in below image
[Eureka discovery][1]
For Service discovery:
I have added relevant pom ...
0
votes
1
answer
33
views
AWS Lambda Authorizer caches more than token expiry
I have a lambda authorizer and its cache is set to 300 seconds. If the incoming token is about to expire let's say in 30 seconds, when it is validated and cached on APIGW/authorizer, it will be ...
0
votes
0
answers
33
views
spring cloud api gateway connection timed out
I have the following setup:
eureka server
api gateway
auth service
Api gateway yml:
server:
port: 8081
spring:
application:
name: api-gateway
zipkin:
base-url: http://localhost:9411
...
0
votes
0
answers
41
views
GCP api gateway SSLV3_ALERT_HANDSHAKE_FAILURE
I'm trying to create a small project to get to know the google cloud API gateway better.
I've created a gateway with the below config file that suppleid with the gateway docs and I made some ...
0
votes
1
answer
71
views
Spring cloud gateway refusing query parameters
I am starting to set up a Spring Cloud Gateway and it works fine without query parameters in the uri. But I need some parameters and they are not fixed, I do not use them to select the routing, I just ...
0
votes
2
answers
59
views
Azure AD B2C breaks OIDC spec
I've configured a custom policy with AAD B2C IEF per this link and am now trying to integrate it into API Gateway as a JWT authorizer per this link.
However, attempting to configure the authorizer ...
0
votes
0
answers
106
views
Spring Security - Keycloak fails with Invalid credentials after login when reached from docker container
I'm building a spring app using keycloak as identity provider. I use microservices with it. What I want to do is sending the request to api gateway, api gateway communicates with keycloak and ...
0
votes
1
answer
33
views
Presenting Serverless Microservices
I've used microservice architecture for years. I've also used serverless functions for years. But I've never found a neat was to present groups of serverless functions as microservices.
Server based ...
3
votes
0
answers
335
views
x-amz-apigw-id in API Gateway response headers?
Hi all I am using the API Gateway to expose the API , when I call my API it returns header called x-amz-apigw-id=some_value. What is this header means?
This is not equal to my API Gateway ID, I found ...
1
vote
1
answer
141
views
GCP Api Gateway is it possible to update the code of a config file or do I need to create a brand new config every time?
I'm trying to set up API Gateway to work with a GCP Function that I have running.
I previously created a config using the following code in terminal:
gcloud api-gateway api-configs create apigateway-...
1
vote
0
answers
62
views
Modifying handler to return response body when certain endpoint is requested when using serverless framework
I am using serverless framework to deploy entire nodejs type-script app on AWS Lambda.
When an endpoint is requested it invokes the lambda function, after which function corresponding to that endpoint ...
0
votes
1
answer
77
views
How to enable log rotation in envoy file based logging?
I am using envoy as api gateway. For logging, I am using a file-based logging approach (schema - type.googleapis.com/envoy.extensions.access_loggers.file.v3.FileAccessLog).
The logs are accumulated in ...
0
votes
0
answers
45
views
AWS Amplify Multiple frontends single API & Backend
I have 2 amplify webapps and I want that both are using the same AWS backend. So i followed the instructions on https://docs.amplify.aws/cli/teams/multi-frontend/#workflow. App A has the full amplify ...
0
votes
1
answer
32
views
Invoke aws api gateway from step function using IAM role auth type
I have use case where I have to invoke the api gatway rest endpoint in other aws account, they have given me a role to assume,
I am thinking of two options:
generate the request from the lambda and ...
1
vote
1
answer
79
views
Can I upload form-data files to S3 via AWS API-Gateway?
In AWS environment I want to upload a file to S3 via API gateway. I can't use lambda, because the 6MB payload limit. (The API gateway's 10MB limit is fine.) I could manage to upload a file with POST ...
0
votes
0
answers
30
views
Zuul shows underlying service is unreachable although all services are up
I am developing microservices using spring boot. I have several microservices and Zuul is the api gateway. Most of the time it works pretty fine. But sometimes Zuul shows that the underlying micro-...
0
votes
1
answer
59
views
Unable to update total value in square cash app
I'm using Square web payments SDK and I initialize Cash App Pay. At first (in initialization phase), I determine the total amount and initialize Cash App Pay, which renders the Cash App Pay button. ...
0
votes
1
answer
66
views
Accessing subitems in api gateway response mapping
I'm trying to do a mapping in an api gateway and I can't manage to access the children objects inside the returned json. This is my case:
When I test the endpoint directly in the api gateway I get ...
0
votes
1
answer
263
views
How to route requests to a dynamic endpoint on kong api-gateway
I have a service named alpha (created using python-django) that runs on http://127.0.0.1:9000 and has these two endpoings
/health returns {"health": "OK"} status 200
/codes/<...
0
votes
1
answer
27
views
Do API gateways only have a single endpoint?
I’m learning about micro services and API gateways. Some articles mention that api gateways only have one endpoint. Is that correct?
Let’s say my e-commerce page makes 2 calls, /products and /users to ...
0
votes
1
answer
47
views
API Gateway mapping template converts JSON string to comma-separated key=value pairs
Mapping template noob here.
Using this query string as input:
userid=foo&firstname=bar&lastname=bat
I need to POST data to Kinesis as JSON, thus:
{
"userid":"foo",
...
0
votes
1
answer
118
views
How to return a static response in kong api-gateway
I am using kong API-gateway in its DB-Less mode
as a result, I have a kong.yaml file as below:
_format_version: "2.1"
_transform: true
services:
- name: service1
url: http://service1:...
0
votes
1
answer
79
views
How to redirect client's HTTP requests to HTTPS via API Gateway Apache APISIX?
How can I redirect client HTTP requests to HTTPS when using Apache APISIX? Is there a more convenient way? How does it work?
0
votes
0
answers
34
views
How to use APISIX to implement cluster current limit and cluster rate limit?
I want to limit current and speed in a cluster, what should I do through APISIX?
0
votes
0
answers
30
views
How to limit service rate through API gateway Apache APISIX?
To prevent malicious attacks, it is necessary to limit the speed of the client. How to implement it through APISIX?
0
votes
0
answers
18
views
How to implement circuit breaking in API Gateway Apache APISIX and how to configure it?
Circuit breaking needs to be configured in the current environment, so how to implement the circuit breaking at the gateway layer?