crowdsecurity / cs-cloud-firewall-bouncer

Crowdsec Cloud Firewall Bouncer
MIT License
15 stars 3 forks source link

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

Open buixor opened 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 :