cetic / helm-fadi

Helm Chart for FADI
https://github.com/cetic/fadi
Apache License 2.0
13 stars 4 forks source link

[cetic/fadi] issue title #38

Closed AyadiAmen closed 3 years ago

AyadiAmen commented 3 years ago

Describe the bug

The bug is about keyloack: https://github.com/cetic/helm-fadi/tree/feature/keycloak .

I deployed keycloak and link it with grafana ( following: https://www.techrunnr.com/how-to-setup-oauth-for-grafana-using-keycloak/ , https://www.lars-fischer.me/posts/2021/grafana-sso-integration-with-keycloak/ and https://janikvonrotz.ch/2020/08/27/grafana-oauth-with-keycloak-and-how-to-validate-a-jwt-token/ ) i always get the error Invalid parameter: redirect_uri

when i check keycloak's logs i find:

05:46:02,301 WARN [org.keycloak.events] (default task-12) type=LOGIN_ERROR, realmId=devops, clientId=Grafana, userId=null, ipAddress=172.17.0.1, error=invalid_redirect_uri, redirect_uri=http://localhost:3000/login/generic_oauth

what seems to be the problem is that in the logs redirect_uri=http://localhost:3000 which is the default value for redirect_uri, whereas the redirect_uri is an option in keycloak where i pass a valid redirect_uri which is grafana's ip and port with a wildcard but no matter what i do in the keycloak side the redirect_uri is always localhost:3000 while it should be grafana's ip adress and port.

Version of Helm and Kubernetes:

helm: version.BuildInfo{Version:"v3.5.2", GitCommit:"167aac70832d3a384f65f9745335e9fb40169dc2", GitTreeState:"dirty", GoVersion:"go1.15.7"}

kubernetes: Client Version: version.Info{Major:"1", Minor:"20", GitVersion:"v1.20.4", GitCommit:"e87da0bd6e03ec3fea7933c4b5263d151aafd07c", GitTreeState:"clean", BuildDate:"2021-02-21T20:23:45Z", GoVersion:"go1.15.8", Compiler:"gc", Platform:"darwin/amd64"} Server Version: version.Info{Major:"1", Minor:"20", GitVersion:"v1.20.2", GitCommit:"faecb196815e248d3ecfb03c680a4507229c2a56", GitTreeState:"clean", BuildDate:"2021-01-13T13:20:00Z", GoVersion:"go1.15.5", Compiler:"gc", Platform:"linux/amd64"}

What happened:

What you expected to happen:

How to reproduce it (as minimally and precisely as possible):

Clone the branch feature/keycloak: https://github.com/cetic/helm-fadi/tree/feature/keycloak.

Anything else we need to know:

banzo commented 3 years ago

@AyadiAmen please explain how you fixed the issue, then close it.

banzo commented 3 years ago

it is a dupe

AyadiAmen commented 3 years ago

@banzo i mistakenly created the issue twice ( https://github.com/cetic/helm-fadi/issues/39 ) so i closed one and left the other.

AyadiAmen commented 3 years ago

solved with https://github.com/cetic/helm-fadi/commit/aff8f55a98c1b125a6933abc8a5801a70628d628