You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey y'all, long story short i recently broke the partition table to my Debian 12 machine and had to accomplish 4 months of work in 5ish hours, which sucked, but i digress.
After re-setting up Keycloak and Traefik OIDC Auth plugin i got it all working once again however, i'm running into HTTP related errors on occasion along the lines of:
2025-07-12 05:35:55 [DEBUG] [traefik-oidc-auth] AuthorizationEndPoint: https://kc.my.domain/realms/restricted-realm/protocol/openid-connect/auth
2025-07-12 05:35:55 [INFO] [traefik-oidc-auth] Getting OIDC discovery document...
2025-07-12 05:35:55 [ERROR] [traefik-oidc-auth] http-get discovery endpoints - Err: Get "https://kc.my.domain/realms/restricted-realm/.well-known/openid-configuration": dial tcp 192.168.1.199:443: connect: connection refused
2025-07-12 05:35:55 [ERROR] [traefik-oidc-auth] Error while retrieving discovery document: HTTP GET error
2025-07-12 05:35:55 [ERROR] [traefik-oidc-auth] Error getting oidc discovery: HTTP GET error
2025-07-12 05:35:55 [INFO] [traefik-oidc-auth] Getting OIDC discovery document...
2025-07-12 05:35:55 [ERROR] [traefik-oidc-auth] http-get discovery endpoints - Err: Get "https://kc.my.domain/realms/restricted-realm/.well-known/openid-configuration": dial tcp 192.168.1.199:443: connect: connection refused
2025-07-12 05:35:55 [ERROR] [traefik-oidc-auth] Error while retrieving discovery document: HTTP GET error
2025-07-12 05:35:55 [ERROR] [traefik-oidc-auth] Error getting oidc discovery: HTTP GET error
2025-07-12 05:36:07 [DEBUG] [traefik-oidc-auth] A session is present for the request and will be used.
port 443:443 is not open on 192.168.1.199 and i can't figure out why the plugin is making this call? I've gone through my traefik.yml, docker-compose.yml and openid.yml which contains the middleware. I'm kinda stumped here and would appreciate if someone could provide some insight into this error.
my traefik.yml
api:
dashboard: true
debug: true
entryPoints:
http:
address: ":80"
http:
redirections:
entryPoint:
to: https
scheme: https
https:
address: ":443"
serversTransport:
insecureSkipVerify: true
providers:
docker:
endpoint: "unix:///var/run/docker.sock"
exposedByDefault: true
# swarm:
# endpoint: "tcp://127.0.0.1:2377"
redis:
endpoints:
# assumes a redis link with this service name running on the same
# docker host as traefik
- "redis:6379"
file:
directory: /custom
#asus: /asus.yml
#homebridge: /homebridge.yml
certificatesResolvers:
cloudflare:
acme:
email: my@email.com
storage: acme.json
caServer: https://acme-v02.api.letsencrypt.org/directory # prod (default)
# caServer: https://acme-staging-v02.api.letsencrypt.org/directory # staging
dnsChallenge:
provider: cloudflare
disablePropagationCheck: true # uncomment this if you have issues pulling certificates through cloudflare, By setting this flag to true disables the need to wait for the propagation of the TXT record to all authoritative name servers.
delayBeforeCheck: 10s # uncomment along with disablePropagationCheck if needed to ensure the TXT record is ready before verification is attempted
resolvers:
- "1.1.1.1:53"
- "1.0.0.1:53"
experimental:
plugins:
themepark:
moduleName: "github.com/packruler/traefik-themepark"
version: "v1.2.2"
fail2ban:
moduleName: "github.com/tomMoulard/fail2ban"
version: "v0.8.3"
realip:
moduleName: github.com/Desuuuu/traefik-real-ip-plugin
version: v1.1.0
crowdsec-bouncer:
moduleName: "github.com/maxlerebourg/crowdsec-bouncer-traefik-plugin"
version: "v1.4.2"
geoblock:
moduleName: "github.com/PascalMinder/geoblock"
version: "v0.3.3"
traefik-oidc-auth:
moduleName: "github.com/sevensolutions/traefik-oidc-auth"
version: "v0.13.0"
log:
level: INFO
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey y'all, long story short i recently broke the partition table to my Debian 12 machine and had to accomplish 4 months of work in 5ish hours, which sucked, but i digress.
After re-setting up Keycloak and Traefik OIDC Auth plugin i got it all working once again however, i'm running into HTTP related errors on occasion along the lines of:
port 443:443 is not open on 192.168.1.199 and i can't figure out why the plugin is making this call? I've gone through my
traefik.yml
,docker-compose.yml
andopenid.yml
which contains the middleware. I'm kinda stumped here and would appreciate if someone could provide some insight into this error.my traefik.yml
snippet of my docker-compose.yml
I would like to note here that i host my Traefik instance on a separate machine hence the
traefik-kop
instance and--kop.service-name.bind.ip=
label, this should have no effect on the Traefik OIDC plugin an Keycloak, it's simply passing container information over to the other machine which hosts Traefik.Docker-compose.yml containing my Traefik container
openid.yml containing the Traefik OIDC Auth middleware
Beta Was this translation helpful? Give feedback.
All reactions