Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
  • 16:50
    jeremyjpj0916 commented #7118
  • 16:45
    jeremyjpj0916 commented #7105
  • 16:10
    sergio-margale closed #7101
  • 16:10
    sergio-margale commented #7101
  • 15:20
    tingeltangelthomas commented #6035
  • 14:47
    probably-not commented #7111
  • 14:35
    ealogar edited #7153
  • 14:34
    ealogar commented #7153
  • 14:30
    ealogar commented #7153
  • 09:30
    jeremyjpj0916 commented #7105
  • 09:29
    jeremyjpj0916 closed #7105
  • 09:15
    jeremyjpj0916 commented #7105
  • 09:15
    jeremyjpj0916 commented #7105
  • 09:14
    jeremyjpj0916 commented #7105
  • 09:13
    jeremyjpj0916 commented #7105
  • 09:00
    bungle commented #7105
  • 08:59
    bungle commented #7105
  • 08:59
    bungle commented #7105
  • 08:59
    bungle commented #7105
  • 08:41
    fengzhao opened #7154

hello guys, I encountered issue with AES ECB-128 cipher is not working, code below

function check ()
        local base64_decode = ngx.decode_base64
        local aes = require "resty.aes"
        local str = require "resty.string"

        local aes_128_cbc_md5 = aes:new("AKeyForAES")
        local aes_128_cbc_with_iv = aes:new("fTVHgxWn1xQb",nil, aes.cipher(128,"ecb"), {iv="0102030405060708"})
        local encrypted = aes_128_cbc_with_iv:encrypt("2572787899")
        ngx.log(ngx.ERR, encrypted)
        ngx.log(ngx.ERR, aes_128_cbc_with_iv:decrypt(encrypted))
        return aes_128_cbc_with_iv:decrypt(encrypted)

return check()

plz help thanks in advance

Dan Shapir
Trying to use the kong-plugin-jwt-firebase with the latest version of kong, installing through Helm and using an ingress controller.
I get an error due to the fact this plugin is using the 'openssl' rocks package, which for some reason isn't part of Kong anymore?
module 'openssl' not found:No LuaRocks module found for openssl
I'm deploying kong:latest to k8 on google and I'm seeing strange behavior. With no config changes at all, the worker processes are constantly getting SIGIO and SIGCHLD before exiting on signal 9. Anyone have an idea how I can debug why they are exiting?
I'm attached to the container and running KONG_PROXY_ERROR_LOG=/dev/stderr KONG_PROXY_ACCESS_LOG=/dev/stdout KONG_LOG_LEVEL=debug KONG_DATABASE=off /docker-entrypoint.sh kong start
2021/02/08 15:44:21 [notice] 297#0: signal 17 (SIGCHLD) received from 309
2021/02/08 15:44:21 [alert] 297#0: worker process 309 exited on signal 9
2021/02/08 15:44:21 [notice] 297#0: start worker process 319
opened a github issue if you want to review logs: Kong/kong#6817
OOM killer, apparently our default 512M image was too small to even start the worker processes, bumped it to 4G and we're good
Hey, anyone here who has written any custom plugins for kong using GoLang?
I need some help. I’m geting the following error :
Error: /usr/local/share/lua/5.1/kong/cmd/start.lua:64: nginx: [error] init_by_lua error: /usr/local/share/lua/5.1/kong/init.lua:489: error loading plugin schemas: on plugin 'go-hello': go-hello plugin is enabled but not installed;
no plugin found
stack traceback:
    [C]: in function 'assert'
    /usr/local/share/lua/5.1/kong/init.lua:489: in function 'init'
    init_by_lua:3: in main chunk
Anup Biswal

@agni-matelabs You need to compile the plugin source like this

go build -buildmode=plugin -o hello-plugin.so hello-plugin.so # compile
And then move or copy the .so file to go_plugins_dir
cp hello-plugin.so /<path to go plugins dir>
go_plugins_dir can be set via the kong configuration file.

Vladimir Murray
Good day, does anyone have any examples of testing of kong go plugins? My initial thought was to spin up kong and have a script do post requests. But are there any repos like kong-pongo?
Patrick Haug
hi, can somebody point me to how to do clean urls? say: / should go index.html and /<name>/<deep> should go name/deep.html ?
When we launch the request for a particular method, Kong sends us a warning indicating the following "an upstream response is buffered to a temporary file ...", we are using version 2.3.2 and we have already modified the KONG_CLIENT_BODY_BUFFER_SIZE variables, KONG_CLIENT_MAX_BODY_SIZE, KONG_NGINX_HTTP_CLIENT_BODY_BUFFER_SIZE, KONG_NGINX_HTTP_CLIENT_MAX_BODY_SIZE even so the warning persists
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?