nuke/lib/policy
Xe Iaso 226cf36bf7
feat(config): custom weight thresholds via CEL (#688)
* feat(config): add Thresholds to the top level config file

Signed-off-by: Xe Iaso <me@xeiaso.net>

* chore(config): make String() on ExpressionOrList join the component expressions

Signed-off-by: Xe Iaso <me@xeiaso.net>

* test(config): ensure unparseable json fails

Signed-off-by: Xe Iaso <me@xeiaso.net>

* fix(config): if no thresholds are set, use the default thresholds

Signed-off-by: Xe Iaso <me@xeiaso.net>

* feat(policy): half implement thresholds

Signed-off-by: Xe Iaso <me@xeiaso.net>

* chore(policy): continue wiring things up

Signed-off-by: Xe Iaso <me@xeiaso.net>

* feat(lib): wire up thresholds

Signed-off-by: Xe Iaso <me@xeiaso.net>

* test(lib): handle behavior from legacy configurations

Signed-off-by: Xe Iaso <me@xeiaso.net>

* docs: document thresholds

Signed-off-by: Xe Iaso <me@xeiaso.net>

* docs: update CHANGELOG, refer to threshold configuration

Signed-off-by: Xe Iaso <me@xeiaso.net>

* fix(lib): fix build

Signed-off-by: Xe Iaso <me@xeiaso.net>

* chore(lib): fix U1000

Signed-off-by: Xe Iaso <me@xeiaso.net>

---------

Signed-off-by: Xe Iaso <me@xeiaso.net>
Signed-off-by: Jason Cameron <git@jasoncameron.dev>
Co-authored-by: Jason Cameron <git@jasoncameron.dev>
2025-06-18 16:58:31 -04:00
..
checker perf: Replace internal SHA256 hashing with xxhash for 4-6x performance improvement (#676) 2025-06-16 22:53:53 -04:00
config feat(config): custom weight thresholds via CEL (#688) 2025-06-18 16:58:31 -04:00
expressions feat(config): custom weight thresholds via CEL (#688) 2025-06-18 16:58:31 -04:00
testdata feat: enable loading config fragments (#321) 2025-04-23 07:01:28 -04:00
bot.go perf: Replace internal SHA256 hashing with xxhash for 4-6x performance improvement (#676) 2025-06-16 22:53:53 -04:00
celchecker.go feat(config): custom weight thresholds via CEL (#688) 2025-06-18 16:58:31 -04:00
checker.go perf: replace cidranger with bart for significant performance improvements (#675) 2025-06-17 11:57:55 -04:00
checker_test.go style: apply structpack & goimport (#469) 2025-05-09 12:54:15 -04:00
checkresult.go feat(lib): implement request weight (#621) 2025-06-09 15:25:04 -04:00
policy.go feat(config): custom weight thresholds via CEL (#688) 2025-06-18 16:58:31 -04:00
policy_test.go feat: implement a client for Thoth, the IP reputation database for Anubis (#637) 2025-06-16 11:57:32 -04:00
thresholds.go feat(config): custom weight thresholds via CEL (#688) 2025-06-18 16:58:31 -04:00