Skip to content

Serve live queries to anonymous callers over the SSE hub - #37

Merged
woksin merged 3 commits into
mainfrom
fix/anonymous-sse-hub
Sep 25, 2026
Merged

woksin merged 3 commits into
mainfrom
fix/anonymous-sse-hub

Conversation

@woksin

@woksin woksin commented Sep 25, 2026

Copy link
Copy Markdown
Contributor

Fixed

  • Live queries work for anonymous callers over the SSE hub, the transport the @cratis/arc.react <Arc> provider uses by default, as they do with Arc on .NET. Previously the SSE hub accepted only authenticated callers, so observable queries in anonymous applications stayed empty unless the client switched to WebSockets.

Security

  • SSE hub control requests are accepted only from the caller that opened the connection: the same identity for authenticated callers, and additionally the same peer address for anonymous callers when the host provides one. Control requests must be JSON and pass the allowed-origins check, and each subscription still runs the query's own authorization.

@woksin woksin added the patch Backward-compatible fixes label Sep 25, 2026
@woksin
woksin merged commit a3e8928 into main Sep 25, 2026
3 checks passed
@woksin
woksin deleted the fix/anonymous-sse-hub branch September 25, 2026 06:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

patch Backward-compatible fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant