Repository navigation
fix(realtime): send console project events to the project's readers - #14988
Conversation
Rule, project and schema events are rerouted to the console namespace and were addressed to the bare organization team role, which every member holds, including members whose roles are scoped to other projects. Address them to the project's read roles instead, as migration events already are, so they reach only members who can read the project over the HTTP API. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Review complete. No blocking issues — approved ✅; 1 nitpick below. 🧹 Nitpicks (1) — 🟢 1 low
This PR replaces the single
Pre-existing sibling branches ( Reviewed commit: 819e9d0 |
🟢 Tier S · Ready to mergeConsole realtime routing now uses project read permissions for rule, project, and schema events, with rule events sharing the migration routing path. Added data-driven coverage for these event types and verifies that project-scoped readers receive them while members scoped to another project do not.
📂 Walkthrough · 2
Reviewed |
Security rulesNo new WARNING or ERROR findings from security rules. 6 existing findings tracked in
|
✨ Benchmark resultsComparing
Per-scenario breakdown & investigation detailsMetrics below reflect the current branch (after). Δ P95 compares against the base.
Top API waits (after)
|
What does this PR do?
Rule, project and schema (attributes, columns, indexes) events are rerouted to the console namespace and were addressed to the bare organization team role. Every organization member holds that role, including members whose roles are scoped to other projects, so those members received these events for every project in the organization.
These events now go to the project's read roles, as migration events already do. They reach the organization owners and developers, and members with a role on that project, which matches who can read the project over the HTTP API.
Function and site deployment events are handled the same way in #14976, so this PR leaves them out.
Test Plan
MessagingTest::testFromPayloadConsoleProjectEventsReachOnlyProjectReaderscovers rule, project, attribute, column and index events. It asserts that the events go to the project's read roles, and that a member scoped to another project does not match them.team:org1.Related PRs and Issues
🤖 Generated with Claude Code