d4rkstar / kong-konga-keycloak

short tutorial to install kong, keycloak and konga in docker and test API authentication
278 stars 129 forks source link

Tutorial does not work if using kong:3.0.0-alpine #18

Open zerodefect opened 1 year ago

zerodefect commented 1 year ago

The tutorial uses kong:2.8.1-alpine. To keep up with the times, I tried updating to kong:3.0.0-alpine.

Unfortunately, I note that when I try connect Konga to Kong (as per the tutorial), the connection fails. This worked fine using the 2.8.1 kong image, but not 3.0.0.

d4rkstar commented 1 year ago

Hi @zerodefect, there are many substantial changes between kong 2.8.x and 3.x: https://docs.konghq.com/gateway/changelog/#breaking-changes-and-deprecations

Unfortunately, Konga appears to be an unmaintained project (https://github.com/pantsel/konga/issues/760) and for sure it is not compatible with 3.x: I am thinking of adapting the tutorial but I also have to change the name: )

Finally it seems that - at this time I write - there are no alternatives: I have not found active opensource administration projects compatible with kong 3.x.

Any idea or suggestion?

zerodefect commented 1 year ago

Hi @d4rkstar, thanks for your quick response.

Pretty sad to see such a great project grind to a halt. No, I don't know of an alternative solution. Hopefully, someone with the technical know-how can take it over.

After your message, I noticed that kong-oidc is experiencing the same problem - https://github.com/nokia/kong-oidc/issues/213

One can progress without konga, but not without kong-oidc. There is an alternative option here which looks to have support for Kong 3.x.

I'm not familiar with the LuaRocks package manager. Any suggestions on how to adjust your Dockerfile to build with a different rockspec file? Am I correct in assuming that your Dockerfile uses the nokia implementation?

rommelandrea commented 1 year ago

Hi @d4rkstar, i found ligreman/king as an alternative to Konga.

I tested it and it works correctly. In pull request ligreman/king#20 there is support for docker and it works too. Unfortunately my test on King was very fast and I have never tried Konga so I don't know the differences but for the tests I have done it seems to do a good job.

d4rkstar commented 1 year ago

Hello @rommelandrea, sorry for this delayed answer. Never tried King :smile: But a PR is welcome !

It seems that Kong 3.x ships it's own Kong Manager for free. And another interesting project is Primate

@zerodefect: in the past i tried revomatico/kong-oidc but ended up with kong-plugin-jwt-keycloak and builded a dual stage Dockerfile like This: hope this helps!

rommelandrea commented 1 year ago

Hi @d4rkstar, don't worry!

About the PR: of course, now I'm working on the upgrade of Keycloak to version 20, then I can work to adapt to version 3 of Kong.

I've seen this docker container revomatico/docker-kong-oidc that includes Kong 3 and the OIDC plugin forked from the Nokia repo.