maxlerebourg / crowdsec-bouncer-traefik-plugin

Traefik plugin for Crowdsec - WAF and IP protection
Apache License 2.0
228 stars 11 forks source link

[FEATURE] Update the user agent to say 'traefik-plugin' #190

Open buixor opened 3 days ago

buixor commented 3 days ago

Currently, the traefik plugin seems to be using Go-http-client as a user-agent. As a result, when listing bouncers, it can be confusing:

085e3ecb9503:/# cscli bouncer list
────────────────────────────────────────────────────────────────────────────────────────────
 Name      IP Address   Valid   Last API pull          Type             Version   Auth Type 
────────────────────────────────────────────────────────────────────────────────────────────
 SOMETHG   172.18.0.5   ✔️       2024-09-27T10:08:28Z   Go-http-client   1.1       api-key   
────────────────────────────────────────────────────────────────────────────────────────────

I would suggest for the traefik plugin to use a more distinctive user-agent so we always know it's traefik :slightly_smiling_face:

mathieuHa commented 3 days ago

Hi, Very good Idea, we'll work on it asap for the next release