5

I'm using a Gatekeeper (quay.io/keycloak/keycloak-gatekeeper:10.0.0) for SSO with keycloak (docker.io/jboss/keycloak:11.0.2) on Kibana (docker.elastic.co/kibana/kibana-oss:7.10.1)

My gatekeeper config:

discovery-url: http://{{ index .Values.gatekeeper.config "keycloak-url" }}/auth/realms/{{ .Values.gatekeeper.config.realm }}
skip-openid-provider-tls-verify: true
client-id: {{ index .Values.gatekeeper.config "client-id" }}
client-secret: {{ index .Values.gatekeeper.config "client-secret" }}
listen: :3000
enable-refresh-tokens: true
enable-default-deny: true
enable-session-cookies: true
tls-cert:
tls-private-key:
redirection-url: http://{{ index .Values.gatekeeper.config "redirection-url" }}:{{ .Values.service.nodePort }}
secure-cookie: false
encryption-key: {{ index .Values.gatekeeper.config "encryption-key" }}
upstream-url: http://127.0.0.1:5601/
forbidden-page: /html/access-forbidden.html
upstream-keepalives: true
resources:
- uri: /*

I'm able to get to the keycloak login page but after successful login (and after Kibana loader has finished loading) i get an error page:

enter image description here

from kibana logs i see:

{"type":"log","@timestamp":"2020-12-19T15:50:58Z","tags":["debug","connection","econnreset"],"pid":8,"message":"ECONNRESET: Socket was closed by the client (probably the browser) before

it could be read completely"} {"type":"log","@timestamp":"2020-12-19T15:51:00Z","tags":["debug","connection","econnreset"],"pid":8,"message":"ECONNRESET: Socket was closed by the client (probably the browser) before it could be read completely"} {"type":"log","@timestamp":"2020-12-19T15:51:01Z","tags":["debug","connection","econnreset"],"pid":8,"message":"ECONNRESET: Socket was closed by the client (probably the browser) before it could be read completely"}

Did anyone eve encountered this before? How can i fix this?

Thanks

2
  • Try yo increase some timeouts in the proxy config
    – Jan Garaj
    Dec 20, 2020 at 5:33
  • Thanks, that was it Dec 22, 2020 at 14:32

2 Answers 2

7

For me, I disabled the adBlocker or similar and that's right.

0
2

In our case, Kibana is behind a Nginx LB and we've had that issue because the on DDOS protection, burst size was too small. I've increased that value from 10 to 120.

limit_req zone=limit_req_kibana.website burst=120 nodelay;

1
  • Interesting! I had the same issue and your advice solved my issue :) Thanks for sharing Jul 30, 2022 at 13:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.