Instance status RPCs read across orgs #315

Closed
opened 2026-10-27 13:35:49 +00:00 by sam · 0 comments
Owner

StateStore RPCs ListPresence, ListChannelStatus, ListApplyStatus and GetConfigSnapshot (internal/infrastructure/staterpc/server.go), backed by internal/infrastructure/postgres/queries/status.sql: no principal check, so any org principal reads instance-wide service presence, channel and apply state, and the published config. The dashboard routes for these are instanceOnly (/api/health detailed, /api/channels, /api/control-plane/apply-status, /api/config), so the RPC contract is looser than the route. Done when each RPC requires an instance principal or returns nothing org-foreign.

Acceptance criteria

Each listed RPC rejects non-instance callers or returns only data permitted to the caller organization.

Close reason

Fixed on feat/org-epic (PR #1634)


Imported from beads archie-core-kgxw.27 · GitHub #1588 · type bug · priority P1 · created 2026-10-10 · closed 2026-10-11

StateStore RPCs ListPresence, ListChannelStatus, ListApplyStatus and GetConfigSnapshot (internal/infrastructure/staterpc/server.go), backed by internal/infrastructure/postgres/queries/status.sql: no principal check, so any org principal reads instance-wide service presence, channel and apply state, and the published config. The dashboard routes for these are instanceOnly (/api/health detailed, /api/channels, /api/control-plane/apply-status, /api/config), so the RPC contract is looser than the route. Done when each RPC requires an instance principal or returns nothing org-foreign. ### Acceptance criteria Each listed RPC rejects non-instance callers or returns only data permitted to the caller organization. ### Close reason Fixed on feat/org-epic (PR #1634) --- _Imported from beads `archie-core-kgxw.27` · GitHub #1588 · type bug · priority P1 · created 2026-10-10 · closed 2026-10-11_
sam added the highbug labels 2026-10-27 13:35:49 +00:00
sam self-assigned this 2026-10-27 13:35:49 +00:00
sam closed this issue 2026-10-27 13:35:49 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sam/archie#315