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
4
votes
1 answer

Kong with AWS Application Load Balancer

I was trying to create an alb-ingress-controller and point to kong-proxy. Since kong controller supports only classic loadbalancer and network loadbalancer I followed all the mentioned steps from…
4
votes
0 answers

Kong with Docker Compose on Windows: failed loading initial list of upstreams: failed to get from node cache: could not acquire callback lock

I am experimenting with Kong deployed via Docker using Docker Compose and Docker Desktop for Windows. When I start the container I seee a bunch of Lua errors, which from reading other posts around the net seem to maybe indicate some issue with the…
Vigs
  • 1,286
  • 3
  • 13
  • 30
4
votes
1 answer

How to secure API behind Kong Gateway for both pubic and internal traffic

We currently have multiple APIs that are not behind a gateway. The APIs that are exposed publicly use OpenID Connect for authentication and claims authorization. Some of the APIs are internal only and are network secured behind a firewall. We plan…
4
votes
3 answers

Kong Ingress Controller - Remove Kong related headers

I have a working installation of Kong on a Kubernetes cluster, using kubernetes-ingress-controller functionality (https://github.com/Kong/kubernetes-ingress-controller). I would like to remove the following Kong's related…
Marco
  • 700
  • 1
  • 14
  • 26
4
votes
0 answers

SAML request authentication with Kong

we are using konghq as an API gateway for one of our customers but we are very new to it and therefore don't know how to tackle this authentication issue. We have to authenticate our services with a SAML token. Our micro services are behind kong…
Oldfighter
  • 145
  • 2
  • 11
4
votes
3 answers

Kong: docker-compose [PostgreSQL error] failed to retrieve PostgreSQL server_version_num: host or service not provided, or not known

I'm trying to learn how to use Kong for my API server, but met the error: kong_1 | nginx: [error] init_by_lua error: /usr/local/share/lua/5.1/kong/init.lua:388: [PostgreSQL error] failed to retrieve PostgreSQL server_version_num: host or…
Raymond Liao
  • 1,799
  • 3
  • 20
  • 32
4
votes
0 answers

How to add Authentication header to Dash-plotly app with flask backend when using Kong with oauth2?

I have setup authentication on my flask backed Dash-plotly app using Kong oauth2 plugin. I want to send the authentication header to my dash app on the /dash route. I tried sending the same via my flask backend in the resp header. from flask import…
Hritik
  • 53
  • 5
4
votes
1 answer

What is the purpose of Kong API Gateway Routes

I am trying to better understand Kong API Gateway - Routes Let's say I add a service to my Kong Admin API. This service only allows GET requests and when you do a GET request to the service, all it does is generate a random number. I've already…
ShadyBears
  • 3,955
  • 13
  • 44
  • 66
4
votes
3 answers

How do you view the request details including headers, host that Kong is Making?

I am using kong as an API gateway. I am struggling to debug the requests that kong is making to upstreams. I have tried using the syslog plugin, but that only logs the request kong receives and the response it sends back to the client. I am looking…
tread
  • 10,133
  • 17
  • 95
  • 170
4
votes
2 answers

X-Cache-Status is always Bypass using Kong proxy-cache plugin

I have service in Kong and I have set proxy-cache plugin for that service. curl -X POST http://localhost:8001/plugins --data "name=proxy-cache" --data "config.strategy=redis" --data 'service_id=2f0a285d-7b25-48d6-adc3-bbf28ffe5f47' --data…
Saeed.Torabzadeh
  • 121
  • 2
  • 10
4
votes
2 answers

After installing kong by luarocks, how do I install the binary and run it?

I installed kong by luarocks with this command: luarocks install kong 0.14.1-0 but i can't find the binary 'kong' to start service. The document (like below), Where is the bin?:
Hay Zhang
  • 41
  • 1
4
votes
2 answers

Docker Kong admin API is unreachable

I've upgraded the Docker Kong image to the version 0.14.0 and it stopped responding to connections from outside the container: $ curl 127.0.0.1:8001 --trace-ascii dump.txt == Info: Rebuilt URL to: 127.0.0.1:8001/ == Info: Trying 127.0.0.1... ==…
super.t
  • 2,526
  • 7
  • 32
  • 51
4
votes
1 answer

Same endpoint for anonymous and authenticated users

I want to add this endpoint /graphql in kong for both anonymous and authenticated users : if the apikey is provided consider it as authenticated othwerwise consider it as anonymous
sel_space
  • 187
  • 2
  • 12
4
votes
1 answer

Kong custom error message / response

We are looking to override Kong error response structure and write custom messages (i.e. replace "API rate limit exceeded", "Invalid authentication credentials" and others with our custom messages). The error response structure we are looking for…
urgas9
  • 806
  • 9
  • 22
4
votes
0 answers

Get response body in Kong access log

I want to retrieve request and response body logs from Kong api manager. I have added new plugin (udp-log plugin) to kong, to get stream logs in Graylog dashboard. According to this link I have tried to setup my nginx-kong.conf file in…
Reza
  • 141
  • 1
  • 12
1 2
3
49 50