Hugh Brown
858575cf6c
test: add comprehensive tests for all security fixes
Add 20 tests covering:
- require_user_actor: rejects agents and null users, passes valid users
- Webhook HMAC: rejects missing/invalid signatures, accepts valid ones,
allows unsigned when no secret configured
- Prompt injection: sanitized skill name/URL, fenced external data in
dispatch messages, system instructions precede data
- Security headers: verify nosniff, DENY, referrer-policy defaults
- Payload size: rejects oversized body and content-length
- Rate limiting: blocks after threshold, independent per-key
- Gateway token: has_token field present, token field absent
- Agent auth logs: no token_prefix in source
Also fix deprecated HTTP_413_REQUEST_ENTITY_TOO_LARGE status code.
All 407 tests pass.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-07 23:35:10 +05:30
..
2026-02-09 15:49:50 +05:30
2026-03-04 16:11:14 +05:30
2026-03-07 23:35:10 +05:30
2026-02-11 00:00:19 +05:30
2026-03-04 16:01:56 +05:30
2026-02-15 02:35:31 +05:30
2026-03-05 01:36:07 +05:30
2026-02-15 16:06:06 +05:30
2026-03-05 01:36:07 +05:30
2026-03-05 01:36:07 +05:30
2026-03-07 23:35:10 +05:30
2026-03-04 16:01:56 +05:30
2026-03-07 23:35:10 +05:30
2026-03-07 23:35:10 +05:30
2026-03-07 23:35:10 +05:30
2026-03-04 16:11:14 +05:30
2026-02-15 16:06:06 +05:30
2026-02-09 20:40:17 +05:30
2026-03-07 23:35:10 +05:30
2026-02-15 16:06:06 +05:30
2026-02-12 18:35:48 +05:30
2026-02-15 16:06:06 +05:30
2026-03-04 16:01:56 +05:30
2026-02-11 20:27:07 +05:30