With the new incredible feature added in v1.5.0, TLS and MTLS work really well 👍 🥳 !
But it seems it introduced / showed an old bug roaming around which is that, the certificate files are read under (my assumption) another user as the one set to be running the docker which causes an error trying to read them.
For example, running weaver when using the user root which has the rights to open all files on the system, this error shows up :
dns-dnsweaver | {"time":"2026-05-29T18:26:53.20041979+02:00","level":"ERROR","msg":"TLS configuration failed to build, falling back to stdlib defaults","error":"loading TLS client keypair (cert=\"/etc/certs/cert.crt\" key=\"/etc/certs/key.pem\"): open /etc/certs/key.pem: permission denied"}
Using ls -l to show permissions on files :
-rw-r--r-- 1 root root 1273 May 29 18:15 cert.crt
-rw-rw---- 1 root root 288 May 29 18:15 key.pem
And now when applying read/write access to the key file :
-rw-rw-rw- 1 root root 288 May 29 18:15 key.pem
With the new access applied weaver works perfectly !
So I guess it really has something to do with incorrect permissions checked / not the right user used when trying to open the certificates ?
With the new incredible feature added in
v1.5.0, TLS and MTLS work really well 👍 🥳 !But it seems it introduced / showed an old bug roaming around which is that, the certificate files are read under (my assumption) another user as the one set to be running the docker which causes an error trying to read them.
For example, running weaver when using the user
rootwhich has the rights to open all files on the system, this error shows up :dns-dnsweaver | {"time":"2026-05-29T18:26:53.20041979+02:00","level":"ERROR","msg":"TLS configuration failed to build, falling back to stdlib defaults","error":"loading TLS client keypair (cert=\"/etc/certs/cert.crt\" key=\"/etc/certs/key.pem\"): open /etc/certs/key.pem: permission denied"}Using ls -l to show permissions on files :
And now when applying read/write access to the key file :
With the new access applied weaver works perfectly !
So I guess it really has something to do with incorrect permissions checked / not the right user used when trying to open the certificates ?