Open michael-ball opened 3 weeks ago
Thanks for reporting this.
@crazygolem, do you have bandwidth to check this? If not, please let me know. Thanks in advance!
I will have a look.
@michael-ball as a workaround to not get spammed, you can set a dummy value for the ReverseProxyWhitelist
option, such as @
to not get spammed (after this first check that generates the spam, the ReverseProxyWhitelist
option is ignored when listening on unix sockets).
I find it a bit weird that listening on a unix socket automatically enables reverse proxy authentication, @deluan what do you think about explicitly enabling it also for unix sockets via the ReverseProxyWhitelist
option? As the request's IP address is set to @
by the underlying lib for socket requests, we can just require to set @
in the option to enable it when listening to a unix socket.
I confirm that:
Version
v0.52.5
Current Behavior
I have set the "Address" config option to be a unix socket located at "/var/run/navidrome/navidrome.sock". Since enabling this I am getting constant messages in the navidrome log that look like this:
time="2024-05-24T22:11:06Z" level=error msg="ReverseProxyWhitelist enabled but no proxy IP found in request context. Please report this error."
I haven't set the "ReverseProxyWhitelist" option in my config so it should be set to whatever the default is.
Expected Behavior
Logs are not spammed with this message.
Steps To Reproduce
Environment
How Navidrome is installed?
Binary (from downloads page)
Configuration
Relevant log output
Anything else?
No response
Code of Conduct