Skip to content

fix(relay): grant process.send to user hubs via user_security_scope#88

Merged
wolfy-j merged 1 commit into
masterfrom
fix/relay-user-hub-messaging
Jul 18, 2026
Merged

fix(relay): grant process.send to user hubs via user_security_scope#88
wolfy-j merged 1 commit into
masterfrom
fix/relay-user-hub-messaging

Conversation

@wolfy-j

@wolfy-j wolfy-j commented Jul 18, 2026

Copy link
Copy Markdown
Contributor

The user hub delivers welcome and relay payloads with process.send under the user actor, but user_security_scope only fed user_hub_registry (registry register/unregister) — so every hub-to-client delivery was silently denied unless the application hand-rolled a messaging policy (the hub code drops the send result, so nothing surfaces). Found via the relay welcome test in #87, which was temporarily green only because the harness carried a local grant.

Adds wippy.relay.security:user_hub_messaging (actions: process.send, resources '*' — the check runs against the raw destination pid, which has no matchable pattern) and binds user_security_scope into its groups alongside the registry policy. The harness drops its local copy, so the relay suite now proves the module's own grant.

The user hub delivers welcome and relay payloads with process.send under
the user actor, but user_security_scope only fed user_hub_registry
(registry register/unregister), so every delivery was silently denied
unless the application hand-rolled a messaging policy. Bind the scope
into a user_hub_messaging policy shipped by the module; the resource is
'*' because process.send is checked against the raw destination pid.
The test harness drops its local copy of the grant — the suite now
proves the module's own policy.
@wolfy-j
wolfy-j merged commit 2066954 into master Jul 18, 2026
18 checks passed
@wolfy-j
wolfy-j deleted the fix/relay-user-hub-messaging branch July 18, 2026 01:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant