DiscussionSLA

Traefik-safeline plugin error

Published 3 months ago

# SafeLine WAF
# ❓ question

Published 3 months ago

profile_photo

r4d1f

Updated 3 months ago

0

Hello everybody! I have Safeline selfhosted on my server according to the official docker compose documentation. I have traefik version 2.7 installed in a kubernetes cluster.
I have enabled the traefik-safeline plugin version 1.4.0 and created the middleware with the following settings

spec:
plugin:
traefik-safeline:
addr: 10.117.4.71:8000

As a result, when accessing the URL for the specified Ingress with Middleware in the traefik logs, I get the following error

safeline2025/03/17 13:03:18 config: &{Addr:10.117.4.71:8000 PoolSize:100}
time="2025-03-17T13:03:28Z" level=error msg="plugins-storage/sources/gop-2557298601/src/github.com/chaitin/traefik-safeline/vendor/github.com/chaitin/t1k-go/server.go:94:3: panic" plugin=plugin-traefik-safeline module=github.com/chaitin/traefik-safeline
time="2025-03-17T13:03:28Z" level=error msg="plugins-storage/sources/gop-2557298601/src/github.com/chaitin/traefik-safeline/vendor/github.com/chaitin/t1k-go/server.go:116:42: panic" plugin=plugin-traefik-safeline module=github.com/chaitin/traefik-safeline
time="2025-03-17T13:03:28Z" level=error msg="plugins-storage/sources/gop-2557298601/src/github.com/chaitin/traefik-safeline/safeline.go:54:5: panic" plugin=plugin-traefik-safeline module=github.com/chaitin/traefik-safeline
safeline2025/03/17 13:03:28 panic: reflect.Set: value of type chan *unsafe2.dummy is not assignable to type chan *struct { Xsocket net.Conn; Xserver *struct { XsocketFactory func() (net.Conn, error); XpoolCh chan *unsafe2.dummy; XpoolSize int; Xcount int; XcloseCh chan struct {}; Xlogger *stdlib.logLogger; Xmu sync.Mutex }; Xfailing bool }

Can anyone help me?

profile_photo

SafeLine-xb

Updated 3 months ago

0

Please submit it to https://github.com/chaitin/traefik-safeline/issues, we will follow up in the near future