Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Nov 21 23:40

    bungle on cluster-events-robustness

    fix(cluster-events) robustness (compare)

  • Nov 21 23:15

    bungle on cluster-events-robustness

    fix(cluster-events) robustness (compare)

  • Nov 21 22:47
    guanlan unlabeled #4750
  • Nov 21 22:46
    guanlan labeled #4750
  • Nov 21 22:42
    guanlan closed #5237
  • Nov 21 21:25

    bungle on cluster-events-robustness

    fix(cluster-events) robustness (compare)

  • Nov 21 21:17
    guanlan commented #4750
  • Nov 21 20:53
    hutchic commented #5244
  • Nov 21 20:02

    bungle on cluster-events-robustness

    fix(cluster-events) robustness (compare)

  • Nov 21 19:50

    hishamhm on jenkins-daily-builds

    (compare)

  • Nov 21 19:50

    hishamhm on master

    chore(ci) build nightly release… tests(helpers) be more resilien… (compare)

  • Nov 21 19:50
    hishamhm closed #5244
  • Nov 21 19:49
    hishamhm commented #5244
  • Nov 21 19:49
    hishamhm synchronize #5244
  • Nov 21 19:49

    hishamhm on jenkins-daily-builds

    chore(ci) build nightly release… tests(helpers) be more resilien… (compare)

  • Nov 21 19:48
    hishamhm synchronize #5244
  • Nov 21 19:48

    hishamhm on jenkins-daily-builds

    chore(ci) build nightly release… tests(helpers) be more resilien… (compare)

  • Nov 21 19:37

    bungle on cluster-events-robustness

    fix(cluster-events) robustness (compare)

  • Nov 21 19:36

    hishamhm on plugins-endpoints

    (compare)

  • Nov 21 19:36

    hishamhm on next

    refactor(admin-api) plugin endp… (compare)

Erwin Yusrizal
@erwinyusrizal
@thg303 thank you for your reply. Is the http://kong.example.com/ the URL that I will use in my AJAX request?
Ali Ghanavatian
@thg303
@erwinyusrizal yes
Erwin Yusrizal
@erwinyusrizal
@thg303 I tried to access it, it returns 301
curl -i -X GET http://kong.example.com/v1/users -H "Host: myhost.com"

HTTP/1.1 301 Moved Permanently
Server: nginx/1.16.1
Date: Thu, 07 Nov 2019 12:21:57 GMT
Content-Type: text/html
Content-Length: 169
Connection: keep-alive
Location: https://myhost.com/v1/users

<html>
<head><title>301 Moved Permanently</title></head>
<body>
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx/1.16.1</center>
</body>
</html>
Ali Ghanavatian
@thg303
@erwinyusrizal you know kong.example.com is a placeholder right? you have to replace it with your own domain/subdomain.
Ali Ghanavatian
@thg303
if you have it on a local network or an intranet, then make sure your route is configured properly especially check the "strip path" option. https://docs.konghq.com/1.4.x/admin-api/#add-route
Erwin Yusrizal
@erwinyusrizal
@thg303 yes, I use it for this chat purpose only
I got the problem, I was expecting Kong run behind NGINX
Ali Ghanavatian
@thg303
good job +1
Erwin Yusrizal
@erwinyusrizal
@thg303 do you know how to make Kong run behind NGINX?
Erwin Yusrizal
@erwinyusrizal
I need to reverse_proxy my domain for example: kong.example.com to kong default api http://127.0.0.0:8000
I tried using this config
upstream kong {
        server 127.0.0.1:8000;
}

server {
    listen 80;
    server_name kong.example.com;

    error_log /var/log/nginx/kong.error.log;
    access_log /var/log/nginx/kong.access.log;

    location / {
        proxy_pass http://kong;
        proxy_set_header Host $host;
        proxy_set_header X-Forwarded-Proto https;
    }
}
when I run curl -i -X GET http://kong.example.com/ it returns
HTTP/1.1 404 Not Found
Server: nginx/1.16.1
Date: Thu, 07 Nov 2019 16:45:24 GMT
Content-Type: application/json; charset=utf-8
Content-Length: 48
Connection: keep-alive
Access-Control-Allow-Origin: *
Access-Control-Expose-Headers: Origin,Authorization
X-Kong-Response-Latency: 1

{"message":"no Route matched with those values"}
Erwin Yusrizal
@erwinyusrizal
but when I use header curl -i -X GET http://kong.example.com/ -H "Host: example.com" it returns 502 Bad Gateway
I check the nginx error log: connect() failed (111: Connection refused) while connecting to upstream
thank you
Erwin Yusrizal
@erwinyusrizal
I got it, I need to use custom_nginx.template
Erwin Yusrizal
@erwinyusrizal
thank you @thg303 now it works as I expected
Ali Ghanavatian
@thg303
@erwinyusrizal no problem, sorry I was cooking
IcePsycho
@IcePsycho
Hello guys, i'm new to kong
so i did create a service but don't know how to create route
Capture.JPG
that's the service
Ali Ghanavatian
@thg303
@IcePsycho https://docs.konghq.com/1.4.x/admin-api/#add-route you have to specify service id when you create a new route, then that route would map to the service
IcePsycho
@IcePsycho
thx!
Ali Ghanavatian
@thg303
you're welcome :)
Erwin Yusrizal
@erwinyusrizal
Hi, is Kong service url support unix domain socket ?
Ali Ghanavatian
@thg303
@erwinyusrizal No, it only supports http or https protocols. https://docs.konghq.com/0.14.x/admin-api/#service-object
IcePsycho
@IcePsycho
hi again guys
Ali Ghanavatian
@thg303
wb
IcePsycho
@IcePsycho
does kong support soap to rest and vice versa transformations?
Oliver Poignant
@olipo186
Hello guys! Question abort end of life/support:
For how long to you support/patch your product? Let's say a major vulnerability is discovered that affects all released versions - which of them will you patch?
jeremyjpj0916
@jeremyjpj0916
Community member here so don't take my thoughts as pure fact but from what I have seen Kong takes the low level NGINX/OpenResty CVE's seriously and patches them shortly after release. I would talk to their enterprise folks to see what kinda SLA there if any too. As for how far back they go, well each CVE gets tied to an nginx/openresty version generally so whichever Kong version associates to those I imagine gets a quick rebuild and push too.
haoweiguang
@haoweiguang
error loading plugin schemas: on plugin 'header-based-rate-limiting': failed converting legacy schema for header-based-rate-limiting: [off] schema violation
"failed converting legacy schema"what is mean?
jeremyjpj0916
@jeremyjpj0916
Means the plugin is outdated for the 1.x series plugin schema and Kong's ability to parse the legacy schema pre 1.x and still use it fails for that specific header rate limiting plugin. Must be some odd value in the old plugin.
haoweiguang
@haoweiguang
thank you very much
@jeremyjpj0916
jeremyjpj0916
@jeremyjpj0916
np!
jeremyjpj0916
@jeremyjpj0916
Does Kong’s admin API provide a means of telling if the db its leveraging is functioning from Kong’s POV?
I see the status api reachable true/false but the notes mention its not helpful for db health....
So if Kong can’t establish a local quorum with its C* cluster (which hit us this weekend in prod) is there any way to be informed of that through Kong’s admin api? Does reachable become false when it can’t establish a quorum and read/write from db?
jeremyjpj0916
@jeremyjpj0916
Yeah I just tested in sandbox, reachable = true even if the db is not usable from Kong's perspective (2/3 nodes down running in quorum mode).
punleu chomnan
@CHOMNANP

Hi, I have few services with build with socket io. I am using different namespace for the socket server. My object is to have

Server:
socker server 1: server.com/admin
socker server 2: server.com/user

Does anyone has experience configure this with kong?

Edward Adjei
@eddadjei
I install kong on ubuntu 18 and configured it to point to a cassandra connection but am getting "kong start
Error: [Cassandra error] all hosts tried for query failed."
any help?
jeremyjpj0916
@jeremyjpj0916
Our TPO brought up an interesting idea today. For Kong routing, will Kong granularity match on route resources that include headers (say pertaining to environment and version) as well as paths like /my/api/service and we can then write some custom logic to grab those headers to help dictate editing our service resource upstream url based on the passed headers. Does Kong allow matching on both headers and paths or is it you either match by header OR match by path but something like route1 = path /my/api/service w header match version: v1 would have problems with route2 = path /my/api/service2 header match: version v1 because they share the same header match?
Just going by the way the docs are broken out like: https://docs.konghq.com/1.4.x/proxy/#request-path , and https://docs.konghq.com/1.4.x/proxy/#request-headers-except-host , and https://docs.konghq.com/1.4.x/proxy/#request-header make it seems like headers and paths can't work in unison to provide the highest granularity at the moment.
jeremyjpj0916
@jeremyjpj0916
But then right here makes me think it actually will compare on as much as possible to determine which route to use: https://docs.konghq.com/1.4.x/proxy/#matching-priorities , guess best way will be to test it eh :) , gonna go do that now.
jeremyjpj0916
@jeremyjpj0916
Confirmed to be working as expected, cool to know the use case is there if we wanted it.
ashish2007csGit
@ashish2007csGit
Hi Team in kong 1.3 lversion , in lambda plugin getting connection closed error while calling to lambda
this is very critical issue to my application