Skip to content

Private-channel members cannot view its Conversations #2679

Open

Description

@sentry-junior

In a private Slack channel or group DM, other members of the channel cannot view a Conversation in the dashboard unless they started it or sent a message in it, even though they can read the same thread in Slack. The access rules are also spread across many readers and are not written down in one place.

Reported by David Cramer.

Current behavior

  • readConversationAccessFromSql (packages/junior/src/api/conversations/access.ts) returns two flags. All readers use them:
    • isParticipant: the viewer is the root actor (matched by user id or verified email), or has a junior_conversation_participants row on the root.
    • canViewPrivateContent: isParticipant, or the root Destination visibility is public.
  • recordConversationParticipant (packages/junior/src/chat/conversations/sql/participants.ts) adds participant rows only for the root actor (sql/store.ts) and for message authors (sql/history.ts). Pin and archive also write rows. Slack channel membership is never checked.
  • So for a private Conversation, a channel member who did not post sees only redacted metadata: no transcript, Brief, annotations, attachments, child agents, watches, or Slack link.

Current access branches

Read (canViewPrivateContent): detail.ts, event-list.ts, list.ts, attachments.ts, child-agents.ts, agent-tree.ts, watches.ts, pending-messages.ts, fork.ts (source), locations/query.ts, people/profile.query.ts, chat/plugins/conversation-event-reader.ts, chat/slack/annotation-details.ts.

Act (isParticipant): create.ts (send), steer-pending-messages.ts, cancel-pending-messages.ts, stop.ts, pin.ts, archive.ts, fork.ts (target), api/acp/conversations.ts, api/mcp/tool-context.ts, chat/agent-invocations/top-level-message.ts, chat/review-items/plugin.ts.

Viewer Public Private
Root actor or participant read + act read + act
Other signed-in viewer read redacted metadata only
No viewer read redacted metadata only

Child Conversations use the access of their root. Missing or invalid root metadata, and unknown visibility, are treated as private.

Related

  • Docs are out of date: packages/docs/src/content/docs/operate/dashboard.md says only the root actor's verified email can read a private transcript. Materialized participants can read it too.
  • Store visibility on each Conversation #2380 moves visibility onto each Conversation. It does not change who can read private Conversations.

Proposal from discussion (not verified)

Add one more read branch: a viewer whose linked Slack identity in the same workspace is a current member of the private channel or group DM can read, but cannot act. Check membership live, for example with users.conversations for private channels and group DMs, using a short cache. If the check fails, deny access. Only participants can act. 1:1 DMs stay participant-only. Then document the full matrix in one place (access.ts and the data-and-privacy docs).

via @dcramer.

--

View Session [Sentry]

Activity

  1. sentry-junior commented on Nov 25, 2026

    @sentry-junior
    ContributorAuthor

    Remaining gap: a member of a private Slack channel who never posted there still can't read its Conversations in the dashboard. Only Participants can. A person who leaves the channel also keeps their Participant row.

    Likely fix: Slack's member_joined_channel and member_left_channel events (plus the bot's channel_left and group_left) add or remove Participant rows, and a resync function repairs drift by paging conversations.members. Access then reads only the rows, with no Slack call. #4373 tried live Slack checks instead and was closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions