Skip to content

πŸ¦‹ New version release - #319

Merged
brentrager merged 1 commit into
mainfrom
changeset-release/main
Jul 20, 2026
Merged

πŸ¦‹ New version release#319
brentrager merged 1 commit into
mainfrom
changeset-release/main

Conversation

@brentrager

Copy link
Copy Markdown
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@smooai/smooth-operator@1.36.7

Patch Changes

  • 799124c: SECURITY (Rust server): scope conversations by owner only when an owner exists (Option B, th-909995)

    may_read_conversation mapped every principal without an email β€” an anonymous connection to an
    auth-enabled server, or a token carrying sub/org/role but no email β€” to UserScope::Denied
    and refused it everything. The session such a connection creates is ownerless by construction, so
    it was locked out of its own session: empty list_conversations, resume refused, get_session /
    get_conversation_messages / send_message all SESSION_NOT_FOUND. The identical rule in the
    .NET twin hung CI on a WebSocket ACL test and was reverted in Revert: .NET write-path scoping (#308) β€” hangs CI, denies anonymous/emailless principalsΒ #309.

    Option B: a conversation that HAS an owner (a user participant with a non-blank email) is still
    owner-checked, case-insensitively; one with NO owner is readable, as it was before scoping shipped.
    Denied matches no non-empty owner, so the reported P0 stays closed: authenticated A cannot read,
    resume, or send_message into authenticated B's owned session, and a refusal appends nothing to
    B's log. Err(_) => false (a storage error is a denial), the UserScope enum, and the
    scoped_session chokepoint at all 7 call sites are unchanged, as is the unauthenticated
    LocalServer / smooth-daemon embedding (UserScope::Unscoped).

    Option A (email ?? sub) was rejected: Go's anonymous principal uses the literal sub "anonymous"
    for every visitor, so keying on sub would pool all anonymous visitors and leak their chats to
    each other.

    list_conversations now applies that same predicate per conversation instead of the
    list_conversations_by_org_and_user storage pushdown, which cannot express "mine or ownerless" β€”
    so the list can never disagree with what get_session will hand over. Still filtered before the
    limit, so pages are never silently short.

@smooai/smooth-operator-web-chat-example@0.0.43

Patch Changes

  • Updated dependencies [799124c]
    • @smooai/smooth-operator@1.36.7

@brentrager
brentrager merged commit 081bcca into main Jul 20, 2026
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