nuke/lib
Xe Iaso fbbab5a035
feat(lib): annotate cookies with what rule was passed (#576)
* feat(lib): annotate cookies with what rule was passed

Anubis JWTs now contain a policyRule claim with the cryptographic hash
of the rule that it passed. This is intended to help with a future move
away from proof of work being the default.

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

* test(lib): fix cookie storage logic

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

---------

Signed-off-by: Xe Iaso <me@xeiaso.net>
2025-05-30 14:42:02 -04:00
..
policy feat(expressions): add randInt function to allow making rules nondeterministic (#578) 2025-05-28 16:36:27 -04:00
testdata feat(lib): annotate cookies with what rule was passed (#576) 2025-05-30 14:42:02 -04:00
anubis.go feat(lib): annotate cookies with what rule was passed (#576) 2025-05-30 14:42:02 -04:00
anubis_test.go feat(lib): annotate cookies with what rule was passed (#576) 2025-05-30 14:42:02 -04:00
config.go fix(lib): use a new cookie per domain when COOKIE_DOMAIN is set (#490) 2025-05-12 09:23:42 -04:00
http.go feat(lib): annotate cookies with what rule was passed (#576) 2025-05-30 14:42:02 -04:00
http_test.go fix(lib): properly clear out test cookie (#522) 2025-05-18 22:41:26 +00:00