Closed bigorn0 closed 5 years ago
Thanks for the report :+1:
docker pull tchiotludo/kafkahq:dev
.base-path: "/kafkahq"
, fix with last commit. For the last point : the basic auth is not mandatory and by default is not enabled (to be honest, enabled by default, with all the roles). You can disabled it completely with on your configuration files:
micronaut:
security:
enabled: false
I don't know anything about keycloak gatekeeper, but as i see it will be difficult to map user from keycloak to kafkahq roles (to limit current right depending on users). I think about a feature with ability to get current user from a custom header and to map user on configuration files, tell me if it will be relevant in your use case
Thanks for the quick feedback! I'll test it and give you feedback quickly 👍 I see your fix is embedded in latest release so I'll go with it.
About Keycloak-gatekeeper I already use a specific header it sets when sending request to backends which might fit the case, e.g x-auth-roles
. It provides the list of roles (a coma separated list) a user gets assigned to in Keycloak so I could perfectly declare roles based on those you already set in kafkahq
for info, just release the 0.9.0 few minutes ago, no need to use the dev branch now :smile:
Thanks for the feedback for Keycloak-gatekeeper. I don't think this way (header that pass the roles), I mostly think an header that pass the user. But it seems to be a good feature, I will add this one on the release !
@tchiotludo I can confirm latest release solves the issue :) Thanks a lot!
Hi,
I'm trying to run your nice tool behind a reverse proxy under
/kafkahq
root base path. Doing so, I'm consistently redirected to the/kafkahq//login/unauthorized
page whatever I try.The configuration I use is basically the application.conf example in the repository:
It looks like it tries to enforce Basic Auth when
base-path
isn't empty because if I remove the base path to bebase-path: ""
then I can access my cluster summary page without going through login at all.Ultimately I'd like to disable this Basic Auth and rely on default roles because I'm protective this in another third party tool (keycloak gatekeeper) I tried to override Micronaut security option to be disabled but no luck.
If there is a way to workaround or if I'm doing it wrongly please let me know :)
Thanks!