clamav
clamav copied to clipboard
Support username/password authentication for PrivateMirror
Describe the bug
PrivateMirror currently only supports making unauthenticated requests. It would be really great to support authentication analogous to the support ClamAV already has for HTTP proxies provided by the existing HTTPProxyUsername and HTTPProxyPassword options.
Perhaps these new configuration options could be called PrivateMirrorUsername and PrivateMirrorPassword?
How to reproduce the problem
echo "PrivateMirror https://clamav-mirror.example.com" >> /etc/clamav/freshclam.conf
freshclam
is how a Private Mirror is used today.
It would be nice to be able to set up authentication for the use of the Private Mirror, like so:
echo "PrivateMirror https://clamav-mirror.example.com" >> /etc/clamav/freshclam.conf
echo "PrivateMirrorUsername clamavuser" >> /etc/clamav/freshclam.conf
echo "PrivateMirrorPassword clamavpassword" >> /etc/clamav/freshclam.conf
freshclam
Attachments
If applicable, add screenshots to help explain your problem.
If the issue is reproducible only when scanning a specific file, attach it to the ticket.