fix(broadcast): port corrected org-root CTE from org_scope.go — non-root broadcaster under-delivers (availability, from #1954 review) #1959

Closed
opened 2026-05-27 16:48:23 +00:00 by hongming · 1 comment
Owner

Found during #1954 (#1953) review. workspace_broadcast.go (~line 86) still uses the OLD org-root CTE shape that carries id AS root_id from the recursive seed — the same bug #1954 fixed in org_scope.go. Here it is an AVAILABILITY bug, not a cross-tenant leak: a NON-root broadcaster resolves its org-root to itself, so broadcast under-delivers (misses the rest of its org subtree). Fix: port the corrected orgRootSubtreeCTE / orgRootID from org_scope.go (#1954) into workspace_broadcast.go. Not a security issue (broadcast recipients are still org-scoped, just under-scoped). Filed per CTO follow-up directive.

Found during #1954 (#1953) review. workspace_broadcast.go (~line 86) still uses the OLD org-root CTE shape that carries `id AS root_id` from the recursive seed — the same bug #1954 fixed in org_scope.go. Here it is an AVAILABILITY bug, not a cross-tenant leak: a NON-root broadcaster resolves its org-root to itself, so broadcast under-delivers (misses the rest of its org subtree). Fix: port the corrected orgRootSubtreeCTE / orgRootID from org_scope.go (#1954) into workspace_broadcast.go. Not a security issue (broadcast recipients are still org-scoped, just under-scoped). Filed per CTO follow-up directive.
Member

Fixed in PR #1962.

Fixed in PR #1962.
Sign in to join this conversation.
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: molecule-ai/molecule-core#1959