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
6 answers

how to config Kong force HTTP to redirect to HTTPS

As the kong doc https://getkong.org/docs/0.13.x/admin-api/#add-certificate , if we want our website to support https, we should do: curl -i -X POST \ --url http://localhost:8001/certificates \ --data 'cert =-----BEGIN CERTIFICATE-----...' …
Tommy
  • 31
  • 1
  • 1
  • 6
3
votes
0 answers

Kong configuration file not loading the new modifications

Hello I have a Kong docker image, and I modified the Kong configuration file, but when I reload my Kong container, it does not take into consideration the new modifications(adding a customized plugin and the path of it) I've saved the file but when…
3
votes
4 answers

Secure api using Kong

I am new to Kong. I am using Kong version 0.12.1. I have configured my api with Kong using basic-auth and it works as per the document, I am able to GET the host url with authentication using Kong Proxy in command window curl -i -X GET --url…
Aravindh
  • 441
  • 1
  • 6
  • 17
3
votes
1 answer

Socketio proxied throught Kong - Client connection keep closing

Summary Client socket connection keeps getting disconnected, reconnect, disconnected, .... and so on Steps To Reproduce I am using Kong (https://github.com/Kong/kong) as a API gateway. The websocket server is proxied through Kong Websocket server:…
Duc Anh
  • 581
  • 1
  • 9
  • 23
3
votes
3 answers

Kong - verify upstream ssl (ssl_proxy on)

I have sucessfully installed kong gateway for an API which load balance via upstream to multiple targets (application servers). Now, I have a self-signed certificate for my application servers, the ssl handshake should fail between kong and the…
knotito
  • 1,382
  • 1
  • 12
  • 18
3
votes
5 answers

Kong and JWT - how the APIs should extract the info from the token

today I started looking at Kong and how it provides some functionalities through plugins. I was reading the [enter link description here][Plugins] page and started looking at the JWT. It seems that Kong offers these endpoints (and not only): Create…
Momo
  • 345
  • 1
  • 5
  • 16
3
votes
1 answer

How Kong can be integrated with Consul

I would like to know the use of Consul and its integration with Kong. I understand Kong can be used as an API gateway specifically for micro-service architecture. Correct me if I am wrong. I have read integration between Kong and Consul. But I am…
Abhilash
  • 63
  • 1
  • 6
3
votes
2 answers

Load balancing in KONG API Gateway

We have multiple instance of a micro service behind the Kong API gateway where we want to balance the load for the user requests. Say Micro service 1 is multiplied in multiple instances which are kept behind the KONG API gateway; in such case the…
Muthu
  • 31
  • 1
  • 1
  • 4
3
votes
2 answers

Securing RESTful API with Firebase OAuth?

I'm using Firebase in my iOS and web app to handle user authentication. I need to make sure a user is logged in before he can make any requests to my API. How would I accomplish such a thing with Firebase? I'm thinking about using Kong -…
Holger Sindbaek
  • 2,278
  • 6
  • 41
  • 68
3
votes
3 answers

Kong returning 404 for Registered APIS

I have installed Kong successfully and mapped a API by administration services provided by Kong as below: http://kong:8001/apis payload: { "upstream_url": "http://test.suraj.com:9110/" "strip_request_path": true "request_path":…
Suraj
  • 1,625
  • 1
  • 15
  • 33
3
votes
2 answers

Change primary color in materialize css

I am trying to use the kong dashboard (https://github.com/PGBI/kong-dashboard). I would like to change the primary color used in materialize using GULP JS by using another SCSS file. I do not want to change the _variables.scss which is pulled by…
Anirudh
  • 15,107
  • 2
  • 14
  • 26
3
votes
2 answers

Kong refuses to recognise custom plugin as enabled

I was developing a Custom plugin for Kong. To start off I followed guidelines listed in this tutorial http://streamdata.io/blog/developing-an-helloworld-kong-plugin/ Few changes that I made along the way were changing dependency in the rockspec file…
2
votes
1 answer

Kong consumer unable to find secrets

I am testing kong for rate-limiting by api key in kubernetes 1.24. I am getting the error where the consumer is not able to find credentials. time="2023-08-15T06:57:08Z" level=error msg="resource processing failed: credential \"test-apikey\"…
2
votes
2 answers

How to integrate Cloud Armor with Kong?

I'm looking to integrate Cloud Armor with Kong to enhance security in my setup. Did some research but couldn't find anything like that apart from someone having the same issue, namely create an kong ingress controller and point my n service using…
2
votes
1 answer

How to get result of decode/parse the JWT plugin in the kong?

Is it possible the kong return result of decode JWT token and pass it into our service? maybe there is a additional key in the header x-user-id when we receiving request in our service. note: I am using Kong DB less and kubernetes