Comments (10)
Anyone?
Please guys, help me. I'm stuck in this problem and I have no idea how to solve it.
from helm-charts.
Anybody?
from helm-charts.
I have similar issue here: helm/charts#12272
TL;TR
Keycloak works ok behind, for example, express-gateway. So, seems that the problem is with Kong then? 🤔
/cc @thibaultcha 🙏
from helm-charts.
In a kong community in Gitter I received a tip from @bungle: Configure reverse proxy (kong Ingress in this case) to properly set X-Forwarded-For and X-Forwarded-Proto HTTP headers. See keycloak load balancer docs
I found Response Transformer kong plugin that allows to add headers to the responses.
My question is: once I set the X-Forwarded-For and X-Forwarded-Proto headers in the response what kind of values should I configure in each header assuming that this values could be dynamic? Is there any environment variables that we could use?
Additional informations about configuring plugin in Kong Ingress:
from helm-charts.
Just for the record: @bungle clarified my previous question.
According to @bungle kong sets the forwarded headers.
He shared with us this links:
https://github.com/Kong/kong/blob/master/kong/templates/nginx_kong.lua#L143-L146
https://github.com/Kong/kong/blob/master/kong/runloop/handler.lua#L869-L880
from helm-charts.
Had a similar issue with kong. Get rid of kong, use traefik instead of this thing.
The trick was the proper combination of keycloak ingress and kong configuration.
Below my working kong configuration:
apiVersion: configuration.konghq.com/v1
kind: KongIngress
metadata:
name: keycloak-ingress-conf
upstream:
hash_on: cookie
hash_on_cookie: X-KONG-STICKY
hash_fallback: none
proxy:
protocol: http
path: /
connect_timeout: 10000
retries: 10
read_timeout: 10000
write_timeout: 10000
route:
methods:
- POST
- GET
- PATCH
- HEAD
- PUT
- CONNECT
- OPTIONS
- DELETE
regex_priority: 0
strip_path: false
preserve_host: true
protocols:
- http
- https
Then configure the keycloak ingress with that kong config and you should be fine.
keycloak:
replicas: 3
ingress:
annotations:
kubernetes.io/ingress.class: kong
configuration.konghq.com: "keycloak-ingress-conf"
extraEnv: |
- name: PROXY_ADDRESS_FORWARDING
value: "true"
Maybe you will not need this ' kubernetes.io/ingress.class: kong' annotation. Good luck!
from helm-charts.
Hi guys!
The problem was solved.
The solution can be found here.
@Igor-lkm take a look at the link above. Maybe it can help you.
from helm-charts.
@jhonyscamacho Having the same issue also ^ but I binded the port on 80 with keycloak already and still having the error.
from helm-charts.
Update: Kong/kubernetes-ingress-controller#291 (comment)
from helm-charts.
does any one has any solution . Its not working with all suggested solutions
from helm-charts.
Related Issues (20)
- Mixed content issue HOT 1
- Support for external database? HOT 4
- KeycloakX Update to 24.0.3 HOT 3
- [Keycloak] Network Policy enabling causes no connection between the pods or infini span instances HOT 1
- Is this repo still being maintained? HOT 2
- Support extraVolumeMounts and extraVolumes for deployment in templates HOT 2
- SHA1 support has been removed from JDK 9 onwards. Need to have option to support SHA1 algorithm. HOT 2
- Defaults for container memory limit HOT 1
- PVCs for postgres HOT 1
- Upgrading from 24.0.3 with the keycloakx helm chart to 25.0.0 fails HOT 15
- Running helm package fails HOT 1
- proxy definition is deprecated after updating image to 24.0.3. The proxy-headers should be used instead. HOT 1
- Release of keycloakx version 25 HOT 1
- Updating Image to 25.0.X results in CrashLoop using KeycloakX Chart HOT 7
- Keycloak.X version: 2.4.1 admin console somethingWentWrong HOT 4
- Keycloak 25.0.0 Helm Chart deployment -> CrashLoop HOT 7
- Regrouping issue about the last helm keycloakx chart release
- Metrics Endpoint appears to be broken in Keycloakx 2.4.2 Chart
- Keycloakx 25.0.1 crashloop without any message HOT 1
- KeycloakX 2.4.3 - ServiceMonitor template is broken
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from helm-charts.