Draupnir icon indicating copy to clipboard operation
Draupnir copied to clipboard

Ability to prevent writing of/rewrite rules by pattern

Open TheArcaneBrony opened this issue 1 year ago • 5 comments

Story: I want to avoid writing rules to banlists that match a given pattern. It happens from time to time that a moderator writes a rule for a bridged user without wildcarding the domain, so i'd like to prevent or rewrite rules matching .eg @telegram_12345:myserver.xyz to @telegram_12345:*

TheArcaneBrony avatar Sep 08 '24 16:09 TheArcaneBrony

Maybe it would make more sense to have an issue for banning bridged users?

Gnuxie avatar Sep 09 '24 14:09 Gnuxie

I'm not sure how you'd reliably detect those?

TheArcaneBrony avatar Oct 13 '24 06:10 TheArcaneBrony

The same way that you're doing here?

Gnuxie avatar Oct 13 '24 11:10 Gnuxie

I had a basic configurable glob/regex thing in mind

TheArcaneBrony avatar Oct 13 '24 11:10 TheArcaneBrony

The point is that the glob/regex is the way to ban them, it's not the ban of a bridged user itself. If you want to record that then we need something else.

So like idk how telegram works but we could have something like this:

me.marewolf.draupnir.rule.telegram_user { "entity": "<their-telegram-id>" }

Then the glob rule can be derived from that

Gnuxie avatar Oct 13 '24 13:10 Gnuxie