towerops/test/towerops_web/channels
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
..
agent_channel_builders_test.exs test: more coverage across LiveViews (gaiia mapping, schedule, integrations) 2026-05-08 09:58:10 -05:00
agent_channel_check_proto_test.exs Rewrite protobuf encoding/decoding in pure Gleam with integrated validation (#104) 2026-03-21 16:08:40 -05:00
agent_channel_cloud_poller_test.exs test: cloud poller AgentChannel + SNMP sensor v3/no-snmp + firmware month parser 2026-05-09 09:20:27 -05:00
agent_channel_extra_coverage_test.exs update 2026-05-09 15:24:00 -05:00
agent_channel_processing_test.exs fix: 11 critical security/correctness bugs from code audit 2026-05-12 10:20:52 -05:00
agent_channel_test.exs fix: 11 critical security/correctness bugs from code audit 2026-05-12 10:20:52 -05:00
mobile_channel_test.exs add mobile app websocket channel and improve QR linking UX 2026-03-13 17:28:36 -05:00
mobile_socket_test.exs add mobile app websocket channel and improve QR linking UX 2026-03-13 17:28:36 -05:00