Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
  • 06:57
    hizzyishome opened #7474
  • Jun 19 09:42
    lclin412 edited #7473
  • Jun 19 09:41
    lclin412 edited #7473
  • Jun 19 09:41
    lclin412 opened #7473
  • Jun 19 08:24
    xiupengrong opened #7472
  • Jun 18 12:27
    bungle synchronize #7465
  • Jun 18 12:27

    bungle on new-patches

    feat(patches) a commit to test … (compare)

  • Jun 18 12:27
    bungle synchronize #7468
  • Jun 18 12:27

    bungle on mock-upstream

    fix(tests) add server header on… (compare)

  • Jun 18 11:15
    CLAassistant commented #7466
  • Jun 18 11:14
    hnlq715 commented #7466
  • Jun 18 09:44
    lclin412 closed #7471
  • Jun 18 07:57
    lclin412 edited #7471
  • Jun 18 07:55
    lclin412 opened #7471
  • Jun 18 07:05
    danghongthanh-dev commented #5988
  • Jun 18 01:52
    lclin412 commented #7437
  • Jun 17 20:52
    falondarville review_requested #7456
  • Jun 17 19:28
    gszr commented #7466
  • Jun 17 19:06
    guanlan demilestoned #7162
  • Jun 17 18:26
    gszr edited #7464
is it possible to deploy kong in EKS with an existing LB resource instead of it provisioning it's own?
Steve Chavez
Hello. Is it possible to use a unix socket instead of tcp for an upstream?
Steve Chavez
This one is simple in Nginx, but I don't know to do it through Kong.

Hi i am trying add services with external url but issues it requires special char in path value something


"(characters outside of the reserved list of RFC 3986 found); receiverParty\\: unknown field; receiverService\\: unknown field; senderService\\: unknown field)",
  "name": "schema violation",
  "fields": {
    "path": "invalid path: '/XISOAPAdapter/MessageServlet\\' (characters outside of the reserved list of RFC 3986 found)",
    "senderService\\": "unknown field",
    "interface\\": "unknown field",
    "receiverParty\\": "unknown field",
    "interfaceNamespace\\": "unknown field",
    "receiverService\\": "unknown field""
any suggestion ?
i got it https://docs.konghq.com/hub/kong-inc/request-transformer/
Hi. How basic auth plugin can be combined with ip restriction/whitelist plugin using declarative yaml configuration? I would like to whitelisted users (by IP address) to bypass basic auth, but all others need to pass basic auth to use my APIs
Guys , i am trying to apply odic plugins + request-transformer-advanced plugin ( used send basic user/pass ) to send backend. When i enabled both plugins i always get 401..
mean Kong does not sending basic user/pass to services/upstream . What am i missing ?
aditya raj

curl -i -X GET --url http://localhost:8000/api/helllo
HTTP/1.1 502 Bad Gateway
Server: openresty
Date: Fri, 02 Apr 2021 14:09:00 GMT
Content-Type: application/json; charset=utf-8
Connection: keep-alive
Content-Length: 75
vary: Origin
Access-Control-Allow-Origin: *
Access-Control-Expose-Headers: X-Auth-Token
X-Kong-Upstream-Latency: 1
X-Kong-Proxy-Latency: 4
Via: kong/2.3.3

"message":"An invalid response was received from the upstream server"

iam running anode app at port 3000
my kong is running
but i am getting error
any body can help
Folks, I am trying Request-transformer plugin in Kong.
I am not able to understand this:
What does it mean?
Hi, I added the access-control-allow-origin header using the kong request transform plugin but it's not showing in the preflight request header and the browser throws me cors error. my service which is mapped on the kong gateway is on the Kubernetes cluster with custom dns. I also tried the kong cors plugin but the result is the same. please help me in this.
Hi guys,
I suddenly get the error:
ERROR: bin/busted:58: module 'busted.runner' not found:No LuaRocks module found for busted.runner.
Im using Kong 2.3.2 and didn't change any logic. Doesn anyone know more about the cause of the error?
Pongo ran before without problems
Elyahou Ittah
Hi, what is the correct way to override the error html template used by kong ?
Zhi Yan Liu
Greeting folks! when my plugin hangs by a remote grpc call, any requests on any nginx listened ports also hangs forever ..
anyone meet this similar case?
is it a normal case? does it related to my grpc calling in lua?
nginx version: openresty/
kong version: 2.0.4
lua version: 5.1
Job Schipper
I'm looking into kong and i'm struggeling to understand the best practices for authentication combined with using a gateway.
Is it generally a good idea to share the same authentication mechanism on the gateway and the services behind it? If yes, what is the point of having Kong verify it, if all the services behind it are also going to do the same thing?
In all the examples i find, the domain services itself don't have authentication on it, and Kong is just put in front to handle this, but this doesnt seem like a very realistic production scenario

Are there any open source kong plugins to send requests and response to rabbitmq?


Lungati's Projects

Hello, I'm testing https://github.com/revomatico/docker-kong-oidc and wondering how to get started with the plugin. I've set it up as a global plugin, but can't figure out what to do to start communicating with my Auth server.

I'm trying to allow my users on Azure AD access to my backend microservices. So, frontend->Microsoft IdP -> {User logs in} -> Kong OIDC.

2 replies

2021/04/26 10:18:48 [error] 31#0: 1172111144 [lua] init.lua:800: balancer(): failed to retry the dns/balancer resolver for internal-.us-west-2.elb.amazonaws.com' with: dns server error: 100 cache only lookup failed while connecting to upstream, client: client_ip, server: kong, request: "POST /v1/account/search HTTP/1.1", upstream: "", host: "kong-ingress-data-plane.kong.svc.cluster.local:8443" ip is old pod's ip. requests are not routed to new pod.
Can someone please help me

Hello, do we have any examples to implement custom error handlers in Kong Gateway
2 replies
Hello , i am trying to look if incoming request JWT i want to route based on claim id and route to differnent routes , if claim id is xxx-test1 then redirect to test1 .
Lungati's Projects

Hello , i am trying to look if incoming request JWT i want to route based on claim id and route to differnent routes , if claim id is xxx-test1 then redirect to test1 .

I have the same question, I'm trying to get my oidc plugin (https://github.com/revomatico/docker-kong-oidc) to send jwt's based on the flow described in this link for Kong Konnect https://docs.konghq.com/hub/kong-inc/openid-connect/ Do they work the same? I receive the code from my IdP. What's supposed to happen next?

3 replies
Elyahou Ittah

Hi, I opened an issue about improving error handling in kong. Basically it allow to have more consistent errors response from kong and to allow change the error template. I would like to have your feedback on this :)


Hi, We are running Kong on Kubernetes with DB mode. When we try to add a custom plugin and re-run the values.yaml in HELM way, gateway pods are not turning in to run state.. they are only in init state and waiting for wait-to-db container.. any suggestion please?
This is the link we followed for custom plugin - https://docs.konghq.com/kubernetes-ingress-controller/1.2.x/guides/setting-up-custom-plugins/
Rishabh Gupta
I was looking for a way to achieve distributed log tracing across services. Kong has a bundled plugin correlation-id (https://github.com/Kong/kong/pull/1094/files) which helps passing this header to upstream but this plugin does not provide log tracing within Kong. Basically, wanted to have a functionality where each usage of kong.log uses this unique identifier for each request. This will help trace all the logs. Any suggestions?
Ryan Burn
Is there a way to access response bodies for http2? kong.service.response.get_raw_body() doesn't work with http2: https://github.com/Kong/kong/issues/5566#issuecomment-585837627
I am trying to install a customized plugin, said MY_PLUGIN, into Kong, which is run in dockerized way. however, there are dependent packages in MY_PLUGIN, such as 'lunajson'. An error message "module 'lunajson' not found:No LuaRocks module found for lunajson" is got after "docker run kong".
It seems like kong is trying to install packages by luarocks. May I know if there is any way to let "docker run kong" download the dependencies by .rockspec?
Isaac Cambron
@MarkYQJ I think you can just put RUN luarocks install lunajson in your dockerfile
1 reply
Thijs Schreijer
@MarkYQJ "let "docker run kong" download the dependencies" is a bad idea. In general docker images are supposed to be identical whenever you run them. So adding components at runtime is against the docker philosophy. The right approach is to create a new image using a dockerfile (which adds the plugin + dependencies), and at runtime just run the new image.
If you add a rockspec file to your plugin, then installing it through luarocks should pull in all the required dependencies. You can also use the "customize" option for the Kong docker images, see https://github.com/Kong/docker-kong/tree/master/customize
@Tieske got it, i think you are right!
An interesting question, if I am going to send a request in kong plugin, to another service, which is also proxy by kong, what's the optimal way? for example
service S1, routing R1, with plugin P1
service S2, routing R2
if i am going to access S2 in P1, should i just send request to "http://localhost/R2"?
Wiki Criki
Hi, I am having trouble setting up authentication with the LDAP plugin in Kong. What would be the best place to ask questions about this?
Hello! I am having a problem using the "request transformer advanced" plugin. I have a multipart/form-data endpoint (to upload a file) and I use the plugin to set an additional body field [I'm using the "Config.Add.Body" param]. Enabling the plugin the body field is correctly set but the file is removed from the request. If I disable the plugin the file stays in the body... What am I doing wrong?
Thijs Schreijer
@wikicriki_gitlab see the tagline; the official forum is https://discuss.konghq.com/ this gitter channel is not being watched actively afaik
Wiki Criki
Compile Source report missing method 'ngx_balancer.enable_keepalive()' #7420
Error in the last step of source code installation
hi..I have installed kong using docker-compose ...but i dont know how to add and install custom plugins in kong and give its path to docker-compose file
any one can help me with proper and clear steps to install plugins and adding it to kong?