nuke/lib/policy
Xe Iaso f6481b81a2
fix(web): embed challenge ID in pass-challenge invocations (#944)
* refactor: make challenge pages return the challenge component

This means that challenge pages will return only the little bit that
actually matters, not the entire component.

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

* fix(web): move Anubis version info to be implicitly in the footer

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

* fix(web): embed challenge ID into generated pages

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

* fix(lib): make tests pass

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

* test(lib/policy/config): amend tests

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

* test(lib): fix tests again

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

---------

Signed-off-by: Xe Iaso <me@xeiaso.net>
Signed-off-by: Xe Iaso <xe.iaso@techaro.lol>
2025-08-04 18:49:19 +00:00
..
checker perf: Replace internal SHA256 hashing with xxhash for 4-6x performance improvement (#676) 2025-06-16 22:53:53 -04:00
config fix(web): embed challenge ID in pass-challenge invocations (#944) 2025-08-04 18:49:19 +00:00
expressions feat(expressions): add segments function to break path into segments (#916) 2025-07-25 16:21:08 -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(lib/policy/expressions): add system load average to bot expression inputs (#766) 2025-07-06 20:13:50 +00:00
checker.go chore: Remove unused/dead code (#703) 2025-06-25 09:31:33 -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 refactor(web): redo proof of work web worker logic (#941) 2025-08-02 11:27:26 -04:00
policy_test.go docs: remove JSON examples from policy file docs (#945) 2025-08-03 18:09:26 +00:00
thresholds.go feat(config): custom weight thresholds via CEL (#688) 2025-06-18 16:58:31 -04:00