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.

Useful links:

1246 questions
3
votes
1 answer

Ocelot API Gateway Optional Parameter

Is there a way to tell Ocelot that a parameter is optional? Let's say the query param below is optional: "DownstreamPathTemplate": "/api/SearchAPI/?query={query}", "DownstreamScheme": "https", "DownstreamHostAndPorts": [ { "Host":…
Izzy Rodriguez
  • 2,097
  • 3
  • 21
  • 32
3
votes
3 answers

How to add a custom filter specific to a route in Spring Cloud Gateway

So I am new to spring cloud gateway and have just started playing around with it . I was going through the documentation and stumbled upon how to create a custom…
Indraneel Bende
  • 3,196
  • 4
  • 24
  • 36
3
votes
1 answer

How Api gateway combine responses form microservices

According to article https://dzone.com/articles/building-microservices-using there is a statement: The API Gateway is responsible for request routing, composition, and protocol translation. All requests from clients first go through the API…
user12317159
3
votes
2 answers

Aggregation, Sorting, Filtering and Pagination with Microservices having their own database

Approach and Requirement: We have a microservices architecture developed in ASP.Net Core with Sql Server database, where each microservice has its own SQL database and we are not allowed to do cross microservice communication for aggregating data…
S2S2
  • 8,322
  • 5
  • 37
  • 65
3
votes
2 answers

AWS API Gateway: API available for authenticated and guest users only

I'm quite new to AWS and I try to understand some basic concepts. In my Android app, I use: Cognito User Pool and Identity Pool to allow my users to register and sign in, but also to use the app as guest users API Gateway and AWS Lambda to create…
matteoh
  • 2,810
  • 2
  • 29
  • 54
3
votes
1 answer

How can I stop a request in Ocelot's PreAuthenticationMiddleware?

I have to do some checks on the request's jwt before ocelot authentication, so I'm doing them within the PreAuthenticationMiddleware like this: var config = new OcelotPipelineConfiguration { PreAuthenticationMiddleware = async (ctx, next) => …
Doc
  • 5,078
  • 6
  • 52
  • 88
3
votes
2 answers

Where is kong.conf file?

I installed kong as per the official installation guide. And now to start I should give the kong.conf file ? I cant find where it is . kong start [-c /path/to/kong.conf]
bereket gebredingle
  • 12,064
  • 3
  • 36
  • 47
3
votes
0 answers

How to add custom authentication logic to the Kong Plugin

How do I integrate custom authentication service to Kong API Gateway, which redirects the call to different endpoint based on header or parameter validations and once authenticated should generate a token in the API Gateway. Is this possible in Kong…
Ali
  • 253
  • 4
  • 13
3
votes
2 answers

API key auth for Ambassador

I'm trying to figure out how to create a simple API key protected proxy with Ambassador on k8s, yet can't seem to find any docs on this. Specifically, I just want to set it up so it can take a request with API-KEY header, authenticate it, and if…
kozyr
  • 1,334
  • 1
  • 20
  • 30
3
votes
1 answer

How to implement JWT with Keycloak in Spring boot microservice acrhitecture?

I have read some articles for Keycloak spring implementation (eg: easily-secure-your-spring-boot-applications-with-keycloak) but no one mention how to use with JWT. I have created zuul api gateway and add Keycloak adapter as described in the…
ZeroProcess
  • 1,140
  • 2
  • 10
  • 21
3
votes
2 answers

If we have already implemented the authorization in .Net Core Micro-service API Gateway do we need to implement in all micro services as well?

@here, please help me understanding microservice authentication with API Gateway. Let's take an example - I have 10 different independent deployed microservices and I have implemented the API Gateway for all of them meaning all the request will be…
3
votes
0 answers

Forbidden when calling api from custom domain registered in CloudFlare

I have a working API-Gateway solution, when I call the API-Gateway directly I get a 200 response as expected. We use CloudFlare as our DNS provider so I have registered the endpoint there and got a 403 "Forbidden". After reading though various…
3
votes
1 answer

Dynamic service name with ocelot and consul

I am using Ocelot and API gateway with Consul and the service discovery. I am registering services in the Consul with dynamic names like : service.name.1234 and service.name.5678 This services are statful and not meant to be scaled at all Since i am…
IB.
  • 1,019
  • 3
  • 13
  • 21
3
votes
1 answer

Creating users in express-gateway

Express-gateway has its own consumer management system and an Admin Api for managing user creation, updating, and so on. According to docs the Admin Api is for internal use and discourages exposing it publicly. If that's the case, then how does a…
1192805
  • 988
  • 2
  • 10
  • 26
3
votes
0 answers

SerializationException when making Gettem request to DynamoDB via API Gateway

I'm making a GetItem call to a DynamoDB via API Gateway integration. My request mapping is: { "TableName": "connected-content-dynamodb", "Key": { { "id" : {"S" : "$input.params('entity-id')"} } } } Response template…
sumek
  • 26,495
  • 13
  • 56
  • 75