Skip to content

Push-feed sockets opened with a provider token and no session are never revalidated #38245

Open

Description

@Vamsi-klu

SocketAddressFilter accepts a handshake carrying an externally issued token without a session claim (validateCookielessHandshake, ADR:2026-10-26-push-feed-handshakes-always-authenticate). WebSocketManager revalidates only sockets that have a SessionId (disconnectInactiveSessions skips the rest at :273), and revocation closes sockets by session id (disconnectForSession). Under the default public client, such a socket therefore stays open after its token expires and after its user is soft-deleted (UserRepository:1820 revokes 0 sessions). With the #36608 fix, a provider switch does close it.
Proposal: record the token's exp in HandshakeIdentity and have the sweep close sockets past it; on user deletion, call disconnectAllForUser.
Related: the SSE streams streamPipelineLogs, streamPipelineProgress and streamServiceProgress (IngestionPipelineResource:1980, :2036, :2072) are authenticated only when they open.

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

    Type

    No type

    Projects

    • Status
      No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions