Is it possible to expose the match_discriminator for blocklists? #570
Replies: 2 comments
-
@monfresh Neat question! I don't see an easy way to expose the Allow2Ban discriminator at the moment. I'd welcome a PR adding more instrumentation or events to Allow2Ban/Fail2Ban to enable your use case. |
Beta Was this translation helpful? Give feedback.
-
The fact it's not possible to expose the discriminator for blocklists without resorting to thread-local hacks suggests the data structure used for blocklists is lacking. I've come across RackAttackAdmin library and it monkey-patches RackAttack and modified how blocklists work. I'm not sure if the modifications are enough for this feature, but it's worth checking out: https://github.com/TylerRick/rack_attack_admin#fail2banallow2ban |
Beta Was this translation helpful? Give feedback.
-
Hi. For notifications, I'm logging the following text:
For throttles, it works great. For example:
However, for blocklists, it doesn't specify the
user_id
:Here is my blocklist:
Is there a way to expose the Allow2Ban key as the match_discriminator?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions