nuke/cmd/anubis
Alexander Yastrebov ad432897ca
cmd/anubis: use golang-jwt to check expiry date (#56)
* cmd/anubis: use golang-jwt to check expiry date

Also:
* check parse error
* require strict base64 decoding
* ignore always nil sha256sum error to simplify codeflow

Signed-off-by: Alexander Yastrebov <yastrebov.alex@gmail.com>

* cmd/anubis: handle unlikely case when token claims aren't the right go type

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Xe Iaso <me@xeiaso.net>

---------

Signed-off-by: Alexander Yastrebov <yastrebov.alex@gmail.com>
Signed-off-by: Xe Iaso <me@xeiaso.net>
Co-authored-by: Xe Iaso <me@xeiaso.net>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-03-21 15:47:22 -04:00
..
internal Allow filtering by remote addresses (#52) 2025-03-21 15:39:34 -04:00
js cmd/anubis: configurable difficulty per-bot rule (#53) 2025-03-21 13:48:00 -04:00
static cmd/anubis: configurable difficulty per-bot rule (#53) 2025-03-21 13:48:00 -04:00
.gitignore initial import from /x/ monorepo 2025-03-17 19:33:07 -04:00
botPolicies.json Allow filtering by remote addresses (#52) 2025-03-21 15:39:34 -04:00
CHANGELOG.md initial import from /x/ monorepo 2025-03-17 19:33:07 -04:00
decaymap.go initial import from /x/ monorepo 2025-03-17 19:33:07 -04:00
decaymap_test.go initial import from /x/ monorepo 2025-03-17 19:33:07 -04:00
index.templ cmd/anubis: explain why users are seeing Anubis (#55) 2025-03-21 14:21:59 -04:00
index_templ.go cmd/anubis: explain why users are seeing Anubis (#55) 2025-03-21 14:21:59 -04:00
main.go cmd/anubis: use golang-jwt to check expiry date (#56) 2025-03-21 15:47:22 -04:00
policy.go cmd/anubis: do not return error from sha256 (#57) 2025-03-21 15:46:43 -04:00
policy_test.go cmd/anubis: configurable difficulty per-bot rule (#53) 2025-03-21 13:48:00 -04:00