clamav icon indicating copy to clipboard operation
clamav copied to clipboard

Support username/password authentication for PrivateMirror

Open candrews opened this issue 3 years ago • 0 comments

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.

candrews avatar Sep 21 '22 14:09 candrews