crowdsecurity / cs-cloudflare-bouncer

A CrowdSec Bouncer that syncs the decisions made by CrowdSec with CloudFlare's firewall. Manages multi user, multi account, multi zone setup. Supports IP, Country and AS scoped decisions.
MIT License
50 stars 7 forks source link

[go-cs-bouncer] breaking change ahead #82

Closed buixor closed 2 years ago

buixor commented 2 years ago

Hello,

A significant change was made in go-cs-bouncer (commit : https://github.com/crowdsecurity/go-cs-bouncer/commit/5aef3b37e4fe6ba2e3b16432bde3f24b58d4a4d0)

the .Run method of go-cs-bouncer doesn't Fatal upon initialization failure (this failure would namely happen if the LAPI cannot be reached or cannot authenticate to LAPI).

The reason for this change is to allow bouncers/IPS to take advantage of defer statements for cleanup.

You can see reflected change in firewall-bouncer that uses this new version :

sbs2001 commented 2 years ago

Fixed in https://github.com/crowdsecurity/cs-cloudflare-bouncer/commit/374a4093187cec190882a8ffab5dec6b28dd2cbf