mostafahussein / crowdsec-bouncer-apisix-plugin

This plugin integrates CrowdSec's decision-making capabilities with Apache APISIX, allowing you to block IPs that have been flagged by CrowdSec. The plugin periodically fetches decisions from CrowdSec and applies them to incoming requests.
Apache License 2.0
6 stars 0 forks source link

decisions fetching from Crowdsec is always with param startup=true #2

Open he2ss opened 1 month ago

he2ss commented 1 month ago

Hi again o/

In this line we can see the decisions fetching with the param startup=true which means to always retrieve all the active decisions. To improve the decisions fetching, as you're using a stream fetching mechanism, you can use the first request with the param startup=true (on the plugin start) to get all active decisions, then avoid using this param to get only the new decisions.