You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[iam] WS event feeds: org filtering for broadcast/user/TFactory, and a multi-org cockpit key (#312 follow-up) #3679
Follow-up from the #312 cockpit scoped-keys slice (plan/2026-11-07-312-cockpit-scoped-keys.md). Two gaps it leaves open:
/ws/events doesn't filter everything by org. In AIFactory, BroadcastScope/UserScope (websockets/event_bus.py:271-284) and PFactory's broadcast and user paths ignore client.org_ids. TFactory's feed has no org routing at all (websockets/events.pybroadcast_event sends to every client). This applies to every principal, JWT sessions included. An acw_ key gets exactly what its owner's session gets, never more. Only OrgScope respects the key's org.
The cockpit covers one org per factory. Owned acw_ keys are bound to one org at mint (CreateApiKeyRequest.org_id is required). REST (project_authz.py:102,333) and now /ws/events confine a key to that org. CFactory holds one token per factory, so on a multi-org install the scoped cockpit sees one org. Options: a key per org in CFactory, or Phase 4 scoped service keys (docs/compliance/scoped-service-tokens.md) with read-only fleet scope.
Activity
docs(intent): record owner decisions for 2026-11-07-3679-ws-event-org…
docs(intent): approve 2026-11-07-3679-ws-event-org-filtering (#3679)
docs(spec): draft 2026-11-07-3679-ws-event-org-filtering (#3679)
docs(spec): address codex review on 2026-11-07-3679-ws-event-org-filt…
docs(spec): record user decision (option A) for 2026-11-07-3679-ws-ev…
docs(spec): approve 2026-11-07-3679-ws-event-org-filtering (#3679)
docs(plan): draft 2026-11-07-3679-ws-event-org-filtering (#3679)
docs(plan): address codex review on 2026-11-07-3679-ws-event-org-filt…
docs(plan): approve 2026-11-07-3679-ws-event-org-filtering (#3679)
docs(plan): record stopping point for 2026-11-07-3679-ws-event-org-fi…