towerops/test/towerops_web/plugs
Graham McIntire 8d9d385683
fix: prevent AlreadySentError in BruteForceProtection plug
The plug was attempting to register a before_send callback after
blocking a banned IP and sending a 403 response. This caused
Plug.Conn.AlreadySentError in production.

Fixed by checking conn.halted before attempting to register the
404 tracking callback. If the request was already blocked and sent,
we skip the callback registration.

Also updated the test to verify proper behavior without the
workaround for AlreadySentError.
2026-02-12 12:53:32 -06:00
..
api_auth_test.exs Add comprehensive tests for API authentication and authorization 2026-02-05 16:39:01 -06:00
brute_force_protection_test.exs fix: prevent AlreadySentError in BruteForceProtection plug 2026-02-12 12:53:32 -06:00
capture_timezone_test.exs Remove misleading duplicate header test from CaptureTimezone 2026-02-01 11:08:12 -06:00
check_policy_consent_test.exs fix user session controller test 2026-02-03 13:42:24 -06:00
detect_eu_user_test.exs snmp v3 support 2026-02-04 12:02:38 -06:00
mobile_auth_test.exs more tests and fixes 2026-02-07 11:50:18 -06:00
rate_limit_test.exs docs: add gettext internationalization design 2026-02-02 09:33:01 -06:00
remote_ip_logger_test.exs more tests 2026-02-03 13:20:33 -06:00
security_headers_test.exs add security headers 2026-01-29 10:33:24 -06:00
update_session_activity_test.exs fix 5 failing tests 2026-02-11 12:21:06 -06:00
webhook_auth_test.exs Add CI-triggered mass agent update webhook 2026-02-10 13:40:32 -06:00