nuke/lib/policy/config/testdata/good
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
..
allow_everyone.json Refactor and split out things into cmd and lib (#77) 2025-03-22 18:44:49 -04:00
allow_everyone.yaml lib: move config to yaml (#307) 2025-04-21 00:09:27 +00:00
block_cf_workers.json Add headers bot rule (#300) 2025-04-20 22:18:21 +00:00
block_cf_workers.yaml lib: move config to yaml (#307) 2025-04-21 00:09:27 +00:00
challenge_cloudflare.yaml feat: implement a client for Thoth, the IP reputation database for Anubis (#637) 2025-06-16 11:57:32 -04:00
challengemozilla.json Refactor and split out things into cmd and lib (#77) 2025-03-22 18:44:49 -04:00
challengemozilla.yaml lib: move config to yaml (#307) 2025-04-21 00:09:27 +00:00
entropy.yaml feat(expressions): add randInt function to allow making rules nondeterministic (#578) 2025-05-28 16:36:27 -04:00
everything_blocked.json Refactor and split out things into cmd and lib (#77) 2025-03-22 18:44:49 -04:00
everything_blocked.yaml lib: move config to yaml (#307) 2025-04-21 00:09:27 +00:00
geoip_us.yaml feat: implement a client for Thoth, the IP reputation database for Anubis (#637) 2025-06-16 11:57:32 -04:00
git_client.json feat(checker): add CEL for matching complicated expressions (#421) 2025-05-03 14:26:54 -04:00
git_client.yaml feat(checker): add CEL for matching complicated expressions (#421) 2025-05-03 14:26:54 -04:00
import_filesystem.json feat: enable loading config fragments (#321) 2025-04-23 07:01:28 -04:00
import_filesystem.yaml feat: enable loading config fragments (#321) 2025-04-23 07:01:28 -04:00
import_keep_internet_working.json feat: enable loading config fragments (#321) 2025-04-23 07:01:28 -04:00
import_keep_internet_working.yaml feat: enable loading config fragments (#321) 2025-04-23 07:01:28 -04:00
no-thresholds.yaml feat(config): custom weight thresholds via CEL (#688) 2025-06-18 16:58:31 -04:00
old_xesite.json test(config): add Xesite's old policy file to known good test cases (#382) 2025-04-27 13:32:50 +00:00
simple-weight.yaml feat(lib): implement request weight (#621) 2025-06-09 15:25:04 -04:00
status-codes-paranoid.json feat(config): add ability to customize HTTP status codes Anubis returns (#393) 2025-04-29 15:13:44 -04:00
status-codes-paranoid.yaml feat(config): add ability to customize HTTP status codes Anubis returns (#393) 2025-04-29 15:13:44 -04:00
status-codes-rfc.json feat(config): add ability to customize HTTP status codes Anubis returns (#393) 2025-04-29 15:13:44 -04:00
status-codes-rfc.yaml feat(config): add ability to customize HTTP status codes Anubis returns (#393) 2025-04-29 15:13:44 -04:00
thresholds.yaml feat(config): custom weight thresholds via CEL (#688) 2025-06-18 16:58:31 -04:00
weight-no-weight.yaml feat(lib): implement request weight (#621) 2025-06-09 15:25:04 -04:00