Cisco-Talos / cvdupdate

ClamAV Private Database Mirror Updater Tool
Apache License 2.0
93 stars 35 forks source link

Change the User-Agent to something unique #5

Closed micahsnyder closed 3 years ago

micahsnyder commented 3 years ago

We'll allow this new User-Agent format for CVD updates. Added a randomly generated UUID to the User-Agent for better (anonymous) metrics.

Also added a --debug-mode (-D) option for cvd update command to validate the HTTP headers sent & received are as expected.

This PR is blocked until the new User-Agent is allowed by the CDN.

The agent will look something like: User-Agent: CVDUPDATE/0.2.0 (81c94618-924e-4746-86ba-7654085baf40)

micahsnyder commented 3 years ago

Appears to be working now w/ the new user agent.