-
Notifications
You must be signed in to change notification settings - Fork 350
buggy behaviour on ssl handshake fail with cloudflare #69
Comments
adding --skip-upstream-tls-verify=true doesn't change anything neither |
@gambol99 tell me if I can help to solve this. |
admittedly it was never tested again a different domain for upstream .. I believe is could be related to golang/go#7618 ... I raised a PR #70 |
@rvion .. did this fix the issue your having? |
I'll try later today asap |
@gambol99 no, it's not solved Let I recap my problem with my new findings: setuphere is my dns entries as they appear on cloudflare in reality, when the cloud is yellow, it means that cloudflare act as a https-reverse proxy with security layers, cdn features, ddos mitigation, etc. (here, we see that xxx is the ip of cloudflare) on 128.199.43.105 (upstream-nocf, upstream-cf), I have a web-app but not because the ssl certificates comes from cloudflare proxy. those work:
but this fails
when I access https://keycloakproxy-cf.rvion.fr:8443/
and the page refresh itself twice per seconds. I know that I didn't configure ssl terminaison on keycloak-proxy, but cloudflare should act as and https reverse proxy, and keycloak-proxy should see the redirection as if it was sent over http, am I wrong? doc for "flexible ssl" feature of cloudflare is here:
cloudflare has an artcile about this very redirection cycle problem: https://support.cloudflare.com/hc/en-us/articles/203487280--How-do-I-fix-the-infinite-redirect-loop-error-after-enabling-Flexible-SSL-with-WordPress- when this problem occurs, nothing is printed on keycloak-proxy log cloudflare website says:
https://support.cloudflare.com/hc/en-us/articles/200278659 says:
|
maybe the fact I use ports 8443 conflicts with the "flexible ssl" feature (https://support.cloudflare.com/hc/en-us/articles/200169156-Which-ports-will-CloudFlare-work-with-) @gambol99 Maybe all this thread is just an XyProblem... all I wanted was to re-use flexible ssl offered by cloudflare, and mix it with keycloak-proxy so I can secure my websites very easilly |
@rvion .. Admittedly, I never used cloudflare ... do you see traffic hit the proxy on the redirect or just curl -kv https://keycloakproxy-cf.rvion.fr:8443?, tcpdump? ... does CF perform any health checks on the upstream? perhaps a 307 would label the origin as down |
I didn't see traffic hit the proxy on the redirect. |
in my setup, ssl for both
![image](https://cloud.githubusercontent.com/assets/2150990/15097389/d4ac1378-1519-11e6-8c58-b210cb900f31.png)
stuff.rvion.fr
andkeycloak-proxy.rvion
are provided by cloudflarewhen I run keycloak-proxy with
and when I contact
https://keycloak-proxy.rvion.fr:8443/
,cloudflare error page "ssl handshake fail" appears and refresh every ~0.5 seconds
keycloak-proxy log says:
nothing
The text was updated successfully, but these errors were encountered: