revomatico / kong-oidc

OIDC plugin for Kong
Apache License 2.0
110 stars 75 forks source link

Update docker image #21

Closed EndarValuk closed 2 years ago

EndarValuk commented 2 years ago

According to https://github.com/Kong/kong/commit/0291c3c590d0e328e0633aa091b322f97add0e3d constant CREDENTIAL_USERNAME was removed.

That causes error while using revomatico/docker-kong-oidc:latest docker image

2022/09/29 11:48:25 [error] 1370#0: *593 [kong] init.lua:290 [oidc] /usr/local/share/lua/5.1/kong/plugins/oidc/utils.lua:122: header must be a string, client: 172.18.0.1, server: kong, request: "POST /data HTTP/1.1", host: "127.0.0.1:5100"

Repo was updated https://github.com/revomatico/kong-oidc/commit/431df6b6f344500a55c496ccb518a9f9c8fed6aa But published version is 1.3.0-2, not 1.3.0-3

zerodefect commented 2 years ago

@revomatico, can you share the Dockerfile that is used to build the container? Thanks.

zerodefect commented 2 years ago

For anybody else with the same question, there is a repo located here: https://github.com/revomatico/docker-kong-oidc

zerodefect commented 2 years ago

@cristichiru are you able to help with updating the docker image in the Docker Hub?

cr1cr1 commented 2 years ago

I do not understand, update with... what exactly? As far as I see docker-kong-oidc tag 3.0.0-6:

https://github.com/revomatico/docker-kong-oidc/blob/71cd6d9dae19e89cec777151fc76f47fce09664a/Dockerfile#L9

uses the latest version with the fixes contributed by https://github.com/revomatico/kong-oidc/commits?author=diep-it-dn that were merged and released as tag 1.3.0-3

cr1cr1 commented 2 years ago

Ah, the docker hub image is not up to date!

Fixed: https://hub.docker.com/r/revomatico/docker-kong-oidc/tags?page=1&ordering=last_updated

As a general rule, please do not use latest tag except for testing. For production use an actual version, to have control over changes happening in time.

zerodefect commented 2 years ago

Understood. Thanks for investigating, Cristian.