Commit Graph
16 Commits
Author SHA1 Message Date
Matthew Meszaros f5dadf5f9b feat: load the mailbox through the organization-scoped repository before reading its seed scope when starting or resuming warmup, and add cross-workspace tests for CRM, segments, templates, teams, webhooks, automations, export archives, agent sessions, public object prefixes, node and edge token separation and realtime channel joins 2026-10-26 06:25:04 +01:00
Matthew Meszaros d57973a6d4 feat: answer every realtime HTTP path other than the health probe with an empty 404, and add tests for admin route MFA refusal, Origin never granting API access, and public object directory paths 2026-10-26 06:16:59 +01:00
Matthew Meszaros cc1dc2f64c feat: answer refused realtime handshakes with a JSON code and reason, name a reused ws ticket or signed-out session, use the not_a_member slug on org joins, warn at boot when REALTIME_ALLOW_QUERY_CREDENTIALS is on, stop the admin socket reconnecting on admin_mfa_required, not_an_admin and jwt_required with a clear message, and have the seeder, updater, webhook and notification URL checks, instance health, fleet join and log mail transport say which setting applies and what to do 2026-10-23 19:53:03 +02:00
Matthew Meszaros 0c40e53e02 feat: bind each realtime ws ticket to the session that minted it and accept it once while that session is live, require a second-factor session to join admin:platform, confine API key and OAuth sockets to their own workspace with member permissions narrowed to their read scopes, and refuse those credentials in the socket URL unless REALTIME_ALLOW_QUERY_CREDENTIALS=true 2026-10-23 15:48:00 +02:00
Devin AI 414e9f600e feat: reuse canonical realtime event types across org permission and intent gates 2026-10-14 03:35:28 +00:00
Devin AI 28ebed87a5 feat: remove duplicate Phoenix subscriptions from realtime admin and bulk channels 2026-10-14 03:35:28 +00:00
Devin AI 767bf27233 feat: retain non-routing workspace authorization for private user events and recover drained push digests after lookup deadlines expire 2026-10-10 11:40:26 +00:00
Devin AI 5324025729 feat: authorize persisted notification categories before realtime delivery of legacy workspace notices 2026-10-10 11:20:48 +00:00
Matthew Meszaros 65b58a702b feat: enforce current organization resource grants on realtime presence and channel delivery while preserving personal and legacy account events 2026-10-10 10:54:59 +00:00
Devin AI b65cda5680 feat: make Avro block limit and Cowboy header rejection regressions fail on unrelated errors or stalled sockets 2026-10-10 04:10:49 +00:00
Matthew Meszaros 7cddfc869b feat: patch security dependencies and bound Kafka Avro decoding while rejecting realtime response header injection 2026-10-10 03:54:07 +00:00
Matthew Meszaros bb4156cc6a feat: add resource-scoped member access that restricts a member to selected campaign folders, campaigns and mailboxes read-only, enforced in the API route gate, SQL filters, permission trigger, realtime channels and dashboard 2026-10-09 13:34:05 +02:00
Matthew Meszaros 8cb5893e37 feat: keep accepting API keys and OAuth tokens in the realtime socket URL as a deprecated fallback for existing clients, preferring the x-warmbly-token header and keeping the value out of logs 2026-10-04 05:20:20 -07:00
Matthew Meszaros 3a2d80b8bf feat: accept realtime API keys and OAuth tokens only in the x-warmbly-token handshake header with the ws ticket alone in the query string, filter token and key params from Phoenix connect logs, refuse realtime keys, OAuth tokens and pool link tokens held by a login-banned user or a suspended app with an uncached key check, and send the key as a header from warmbly events tail 2026-10-04 02:56:18 -07:00
Matthew Meszaros 1b45c630bb feat: end a removed member's sessions and OAuth app grants through a removal hook detached from the request, refuse OAuth tokens whose holder is no longer a member, clear and detach a session selection that outlived its membership, gate subscription checkout, portal and cancel on manage_billing in the API and the dashboard, re-read org channel permissions live on member, role and ownership changes and withhold gated events while they cannot be read, drop the unrouted GitHub releases webhook handler, and correct v1 and release trigger paths in the docs 2026-09-26 22:07:54 -07:00
Matthew Meszaros 42ddb78e60 feat: make the realtime service survive a client that spams channel joins, and stop both clients from being that client: ws_join is now spent per phx_join in a shared RealtimeWeb.ChannelGuard that every channel runs BEFORE its Auth lookup (it was only ever spent on the socket handshake, so an established socket could issue unlimited joins and each one cost a Postgres query), handshakes move to their own ws_connect bucket so a reconnect storm cannot eat the budget a client needs to rejoin with, the retry_after_ms hint now points at the next window instead of shrinking as overage grew, every channel's join rejection carries the numeric code the API reference already promised (plus 4005 for a malformed topic), BulkChannel only pushes an event to the user who owns the operation instead of to anyone who guesses the id, and the web and admin clients treat a rate_limited join as transient (wait out the hint, keep the socket) while backing off per-channel rejoins on a decaying schedule rather than reconnecting on the 120ms floor forever; adds an ExUnit suite for realtime and a vitest suite for admin, both wired into CI 2026-08-26 21:14:34 -07:00