gocsaf / csaf

Tools to download or provide CSAF (Common Security Advisory Framework) documents.
https://csaf.io
40 stars 23 forks source link

Create unique user-agent #500

Closed tschmidtb51 closed 3 months ago

tschmidtb51 commented 1 year ago

Currently, we use the standard go-http-lib user agent. However, to be able to better track the usage of the tool, we should use our own user-agent string, e.g., "<program> <version>".

bernhardreiter commented 5 months ago

As shown in https://github.com/csaf-poc/csaf_distribution/issues/500 it is possible to set an individual user-agent with --header User-Agent:curl/7.55.1 so this issue is about the default user agent. And the implementation should keep the ability to override the default user-agent.

@tschmidtb51 as you have marked this as important do you want it done as service+dev? (If so, it is okay to add the label.)