Questions tagged [kong]

Kong is a cloud-native, fast, scalable, and distributed Microservice Abstraction Layer (also known as an API Gateway or API Middleware). Made available as an open-source project in 2015, its core values are high performance and extensibility. Actively maintained, Kong is widely used in production at companies ranging from startups to Global 5000 as well as government organizations.

Kong is an open-source (under Apache Version 2.0 license) management layer for Microservices and APIs, delivering high performance and reliability. Built on top of NGINX, Kong can be fully operated with a simple and easy to use RESTful API.

It provides an easy way to add extra functionality to APIs and microservices through the use of Kong Plugins.

741 questions
3
votes
1 answer

Kong - connect to upstream via HTTP/2

I try to solve this use case: browser client connects to the Kong API Gateway by HTTP/2. Kong proxy the HTTP/2 connection to the backend microservice and keep it open. The use case result should be, that client is connected via HTTP/2 with the…
Lukas Bares
  • 349
  • 3
  • 12
3
votes
1 answer

Best logging plugin of Kong API gateway to utilise existing ELK stack log

Can anyone help me to choose one Kong API Gateway logging plugin from all available options like Tcp Log, Udp Log, Http Log, File Log, Syslog, Statsd, Loggly, etc which can utilize the existing ELK stack log?
DevSay
  • 886
  • 1
  • 14
  • 32
3
votes
0 answers

How to route by header in DB-less Kong

I'm using Kong without database and I need to route request based on request header: x-forwarded-host. I'm referring to the doc: https://docs.konghq.com/hub/kong-inc/route-by-header/ But it doesn't provide examples for the "without database"…
Shuqi Zhang
  • 31
  • 1
  • 3
3
votes
1 answer

Docker + Kong: [PostgreSQL error] failed to retrieve PostgreSQL server_version_num: connection refused

I'm currently running Docker 19.03.5 and trying to replicate the contents of this article, but i'm getting the following error in the third step: First step: docker network create kong-net Second: docker run -d --name kong-database…
Bruno Albuquerque
  • 597
  • 1
  • 7
  • 21
3
votes
2 answers

Kong - custom plugins returning: custom-plugin plugin is enabled but not installed;

I have an instance of Kong that I am running using Dockerfile with contents: FROM kong:1.4.0 WORKDIR /files COPY plugins kong/plugins ENV KONG_LOG_LEVEL=debug ENV KONG_PLUGINS custom-plugin ENV KONG_LUA_PACKAGE_PATH /files/?.lua;; However, on…
fuzzi
  • 1,967
  • 9
  • 46
  • 90
3
votes
1 answer

Kong: Client Closing keep-alive connections

I am writing a custom plugin for kong. The plugin will transform request/response in accordance with my server. I am getting [info] 27#0: *588 client closed keepalive connection. After some debugging, I found that the error occurs whenever I set…
tusher
  • 53
  • 7
3
votes
1 answer

Multiple request transformers for kong API gateway

Using the Request Transformer plugin, we are transforming a query string to multiple headers. This is done globally for all our services. We also want do other specific transformations for a subset of a services. From what I read here that does not…
RckMrkr
  • 985
  • 1
  • 10
  • 14
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
0 answers

Integrating Kong and Azure Active Directory

Have you tried integrate Kong with Azure Active Directory Authentication in kong? What about it? I've found this documentation ... but I am not sure if LDAP can to be applied with Azure Active Directory. LDAP Authentication LDAP Authentication…
bgarcial
  • 2,915
  • 10
  • 56
  • 123
3
votes
1 answer

Keycloak behind Kong and strange redirect

Setup: minikube version: v0.27.0 Kong (helm install stable/kong) / version 1.0.2 Keycloak (helm install stable/keycloak) / version 4.8.3.Final I have a self signed SSL certificate for my "hello.local". What I need to achieve: Keycloak behind Kong…
Igor
  • 825
  • 2
  • 7
  • 18
3
votes
2 answers

Kong, 502 Bad Gateway with localhost Service

I am facing to an issue with Kong, i created my service and my route exactly like the 5min quickstart of the Kong's documentation but i only change some parameters to setup the service with my own api working on localhost:3000. So there is my…
Bronovitch
  • 31
  • 1
  • 4
3
votes
2 answers

How to use redis with kong api gateway

We are using kong api gateway as a single gateway for all apis. we are facing latency issue with few of our api's (1500-2000ms). later when we checked, latency was being created because of the "rate limiting" plugin. When we disable the plugin,…
Divy
  • 171
  • 2
  • 7
3
votes
0 answers

use 'X-Forwarded-For' instead of '$remote_ip' in pluggin 'rate-limiting'

We have many layers before Kong server. How can we use the plugin rate-limiting to limit requests by every enduser's client IP? I want the plugin rate-limiting to read the header X-Forwarded-For to get the users real IP. But I think it is using…
stoner
  • 39
  • 6
3
votes
0 answers

Postgresql successfully deploying with docker-compose but not in docker stack deploy

This is my docker-compose.yml file which has the postgresql to be deployed first than the service migrations and other services will be deployed. With docker-compose up its is successfully deploying and ready but when trying to deploy same with…
Tara Prasad Gurung
  • 3,422
  • 6
  • 38
  • 76