Questions tagged [kong]

Kong is open-source management layer for Microservices & APIs, focused on high performance and reliability.

1
vote
0answers
6 views

Duplicate request with Kong or Traefik

I'm need send with Kong (Community Edition) one webhook ( request ) for two apis. The problem is i use one webhook of third parties, and can only specific one URL ( this not negotiation ). I use in ...
1
vote
1answer
32 views

kong ingress controller has not effect on ingress resource

I have kubernetes Cluster v1.10 Over Centos 7 I installed kubernetes by hard-way I have installed Kong ingress controller using helm helm repo add stable https://kubernetes-charts.storage....
0
votes
1answer
16 views

How do make an SSL Connection from a Kong serverless function using a client certificate

I'm trying to create a serverless function for Kong for authentication purposes. I'm required to use a client certificate to authenticate with the remote service that we have to use. I can't seem to ...
0
votes
0answers
9 views

How to show invalid credentials or token expired message in case of multiple authentication enabled per api in Kong api gateway

In kong, I have configured key-auth and JWT plugin on my api. In case of invalid credential or invalid token, request fallback to anonymous consumer having request-termination plugin. Hence, request ...
0
votes
1answer
20 views

How to make the OAuth 2.0 plugin work on Kong

I am new to Kong and microservice. I am using Kong CE version 0.14.1 and I need to secure an existing API through Oauth2.0 plugin. I tried to follow the instructions in the documentation kong-oauth2-...
0
votes
1answer
22 views

Making Kong secure(HTTPS)

I have used Kong as api gateway. Its running through docker on aws ec2 instance. I have created api in the kong and my app is accessing it via http but I want to secure it and should be accessed using ...
0
votes
1answer
25 views

Kong: How to list routes by service and limit size?

I'm trying to list all the routes for a service and limit the return size: "GET /services/get-headers/routes?size=3 HTTP/1.1", host: "localhost:8001" But I'm getting an error that says: /usr/local/...
0
votes
1answer
22 views

Api Gateway deploy with Kong and Nginx

I have this problem with Kong Api Gateway-- after all configureation and testings-- I am able to succesfully do this operation: curl -i -X GET --url http://localhost:8000 --header 'Host: api....
0
votes
1answer
44 views

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 ...
0
votes
1answer
78 views

Kong Ingress Controller Clarification

When I went through thsis doc for implementing KONG Ingress Controller for Kubernetes, It was mentioned One of the main features provided by an Ingress controller is the ability to react to ...
2
votes
1answer
39 views

What is the recommended way to manage dev dependencies in Lua projects?

I'm building a Lua library (an internal kong plugin actually), and this is the first time I'm using Lua - let alone writing production code with it. I've made it a luarock. From what I can see, the ...
0
votes
1answer
93 views

Kong API is returning 404 after configuring a service

I set up a Kong using docker and it was running fine. I configured a local service with the following info; { "host": "localhost", "created_at": 1534727577, "connect_timeout": 60000, "...
0
votes
0answers
33 views

How do I get Kongs X-Forwarded-Prefix Header into Spring Boot Application and its HATEOAS links?

i'm having a Spring Boot application that is accessed through Kong API Gateway. Because of this, the self links provided by Spring are wrong. The URL to access my application via Kong is the ...
0
votes
0answers
12 views

Default url for Jupyter notebook

I have a docker container running on marathon. locally it works fine. I registered a route in Kong to this container under www.mydomain.com/myroute/ Now the problem is that refs are not working ...
-1
votes
2answers
25 views

How to copy nginx logs of requests that took more than n seconds

Consider that the access logs are of this format: log_format detailed '$remote_addr $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' ...
0
votes
1answer
34 views

KONG API Gateway - Why route are not Unique?

I'm using KONG Community Edition (0.13.x). While I trying to create/add routes, It's creating route instance again and again even if I using same data. Exampleend-point - /routes/ post payload { "...
0
votes
2answers
60 views

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: ...
1
vote
0answers
117 views

How to serve docker-compose app (react-flask) using Kong?

Reverse Proxy/API Gateway noob here. I have a docker-compose application combining ReactJS, Flask, and MongoDB. ├── Makefile ├── docker-compose-dev.yml ├── docker-compose-prod.yml └── services ├...
1
vote
0answers
61 views

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

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
0
votes
0answers
32 views

Can't access 8000 port after install Kong

Installed Kong with docker by official guide. Then add an API: curl -i -X POST \ --url http://1.2.3.4:8001/apis/ \ --data 'name=test-api' \ --data 'hosts=1.2.3.4' \ --data 'upstream_url=http:/...
1
vote
0answers
168 views

How to deploy Kong to docker swarm?

Followed official guide to write a stack deploy file: stack.yml version: "3" services: kong-database: image: cassandra:3 ports: - "9042:9042" networks: - kong-net kong-...
2
votes
0answers
171 views

How to configure ssl for API in kong

I'm working on kong 0.13.1. Following the docs I added certificate as follows: { "data": [ { "cert": "certificate is really here", "created_at": 1529667116000, ...
1
vote
1answer
139 views

APIs authentication and JWT token validation with KONG

I plan to use Kong in our project. I'm currently working on a POC to see how we can integrate it in our platform as the main API gateway. I also want to use the JWT plugin for authentication and ...
0
votes
0answers
42 views

Kong proxy_pass config

I have a problem of Kong config, the Kong version is V_0.12.3. I already tried add a API uri is / to Kong named token, and add plugins to token with Oauth2.0. In my project, i have more services ...
0
votes
0answers
94 views

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). ...
0
votes
2answers
146 views

Custom Nginx configuration from Kong, must disable proxy temp file that blocks 1GB downloads

Trying to configure Nginx from Kong because the nginx default config has a proxy temp file limit that blocks 1GB downloads (or larger). A complication is that Kong runs in a docker container so we ...
2
votes
0answers
50 views

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 ...
1
vote
0answers
212 views

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 \ --...
0
votes
0answers
167 views

Converting the kong official docker-compose to deploy in docker swarm mode not working?

I am trying to write the docker-compose file of kong api gateway that I can use to deploy as stack in docker nodes running in docker swarm mode. The kong has its own official docker-compose file ...
0
votes
1answer
379 views

Not able to start kong service written in docker-compose

I have the following docker-compose.yml file to run the kong with postgresql. I also had the migrations there which I have removed for now. Wondering why is it throwing the connections issue with ...
0
votes
0answers
16 views

Custom Entities TTL Clean Up on Cluster

When the ttl option is used to save a custom entity, there is a cronjob-like using ngx.timer.at to clean up those records and the ones inserted in the ttls table. I have been trying to find ...
0
votes
0answers
29 views

Request library - send 'proxy-authorization' header from forward proxy to endpoint

I have a nodeJS app that goes through a forward proxy (Squid) before hitting an API that sits underneath a reverse proxy (Kong). The Kong proxy on the server requires a 'proxy-authorization' header....
0
votes
2answers
42 views

Kong plugin do not run access block

I'm developing a plugin to Kong API Gateway. I created a service pointing it to another service in the local network and basically every request to my service is redirected to the other one, so far so ...
0
votes
2answers
152 views

Validate given date is yesterday date

I'm new to lua programming and I'm working on license verification in kong. I want verify the expiry date with current date. How do I verify in lua script.
0
votes
0answers
45 views

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 ...
1
vote
0answers
85 views

How can I add a customized kong plugin into dockerized kong

I have a KONG container running and I want to add a customized plugin to it, specifically a JWT crafter. I've downloaded the plugin but I don't know how to make it start with my KONG container. so ...
0
votes
0answers
73 views

Proxying 404s to Kong API with static page hosting

I have a single Kong instance set up for serving static content and APIs from the same instance (using Docker), I want to be able to route 404s in the static path to an API path defined for the ...
0
votes
0answers
18 views

Kong weight based ring balancer method does not equally distribute the load over the targets if targets weight are same. #3460

Summary kong ring balancer method doesn't distribute the loads equally over the targets if targets weight are equal. E.g. If we add two targets with the same weight value(e.g. 100) then 1/2 request ...
0
votes
0answers
26 views

parse the Incoming Request's response in lua

I'm working in Kong API Management tool. In the Kong Dashboard, i have configured POST API URL and I want to receive the API's response in kong's custom Plugin. please help
1
vote
3answers
44 views

Disable Microservice initial exposed port after configuring it in a gateway

Hello I've been searching everywhere and did not found a solution to my problem, which is how can I access my API through the gateway configured endpoint only, currently I can access to my api using ...
0
votes
0answers
11 views

Accessing incoming request within kong's custom plugin

We are planning to write a custom plugin which makes a call to our on prem oauth service. We want use the incoming request's headers in the plugin. May I know what is the way to access this header ...
0
votes
0answers
20 views

how to create nginx config file dynamicaly ?

sudo cp /etc/nginx/sites-available/default /etc/nginx/sites-available/betaproductclient.conf sudo nano /etc/nginx/sites-available/betaproductclient.conf In My betaproductclient.conf file is ...
0
votes
1answer
90 views

lua-resty-http:connect method clarification

I've been implementing a kong plugin that needs to make HTTP requests to retrieve information to share it with the upstream services. There is an excellent library called lua-resty-http that can be ...
1
vote
0answers
337 views

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 ...
0
votes
1answer
32 views

Kong 0.10.3 KONG_RESPONSE_LATENCY header returns 0 and latency values don't match the documentation

I am using Kong 0.10.3 and it seems that the "latencies" object being logged by kong using the file logging plugin and the LATENCY headers in the response have erroneous values. Based on the Kong ...
0
votes
0answers
95 views

Kong OAUTH2 authenticated_userid validation against access token in Auth Code Flow

I have successfully setup Kong v0.11.1 and secured APIs using oauth2 auth code flow. oauth2 plugin was addedd on API level. config.global_credentials = true The issue is that if I generate a token ...
0
votes
1answer
104 views

Dockerizing KONG to run in a automated fashion and Setting the upstream urls dynamically

I am trying to write a yaml file for dockerizing KONG. The requirement to set up KONG is basic in which I want to set up two up stream urls (when the respective request comes, it point to these urls). ...
0
votes
1answer
116 views

Kubernetes architecture with on premise api gateway

When using on premise (running on my own) api gateway like Kong, should it be run in a node as 1 withing the main kubernetes cluster or should it be ran as separate kubernetes cluster?
0
votes
1answer
33 views

Is it possible to block access to direct route?

I am having an api under my kong. I added all routes using POST route (ex. under /myapi). How can I exclude someone of them ? Ex. I need to block acess to /myapi/somecontroller/somemethod. Is it ...