towerops/test/towerops_web/plugs
Graham McIntire ca7bb75472 fix: 11 critical security/correctness bugs from code audit
- C1: Replace innerHTML template literals with DOM textContent in sites_map.ts
- C2: Derive user_id from current_scope instead of client params in policy consent
- C3: Fix broken halt() in GDPR data export (orphaned _ = ... halt())
- C4: Add owner/admin authorization check to MembersController update/delete
- C5: Require HMAC signature on agent release webhook (was optional)
- C6: Fix Repo.all_by/2 (not a real Ecto function) → Repo.all with query
- C7: Move auth exemption to before_send callback in BruteForceProtection
- C8: Block </style>/<script injection in status page custom_css validation
- C9: Create secrets.example.yaml with placeholders; secrets.yaml already gitignored
- C10: Load Stripe key from STRIPE_SECRET_KEY env var instead of hardcoded value
- C13: Remove credentials from PubSub backup broadcast; channel resolves them

C11 (no force_ssl): by design — Cloudflared terminates TLS
C12 (device quota race): false positive — FOR UPDATE serializes correctly
2026-05-12 10:20:52 -05: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: 11 critical security/correctness bugs from code audit 2026-05-12 10:20:52 -05: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 test: add LiveView tests following testing-liveview patterns 2026-05-07 12:55:39 -05:00
filter_noisy_logs_test.exs test: increase coverage from 74.24% to 74.84% 2026-05-07 11:20:29 -05:00
graphql_auth_test.exs add mobile token auth to GraphQL endpoint (#48) 2026-03-16 15:23:07 -05:00
graphql_introspection_test.exs test: fix slow + flaky tests (Mox global, env pollution, pool starvation) 2026-05-08 14:43:30 -05:00
mobile_auth_test.exs Fix tests, credo issues, and Gaiia sync bugs 2026-02-15 11:55:49 -06:00
rate_limit_test.exs chore: rate_limit rewrite + on-call redesign plan + handoff_notifications_mode 2026-04-28 12:17:29 -05:00
remote_ip_logger_test.exs more tests 2026-02-03 13:20:33 -06:00
security_headers_test.exs fix: API token access control, admin form crash, MIB validation, CSP dedup 2026-05-12 09:08:57 -05:00
update_session_activity_test.exs test(agent_channel): cover assignment-disabled, missing-check, wrong-org branches 2026-05-09 13:38:35 -05:00
webhook_auth_test.exs Add CI-triggered mass agent update webhook 2026-02-10 13:40:32 -06:00