Skip to content

🔒️(yprovider) readOnly connections awareness propagation - #2544

Open
AntoLC wants to merge 1 commit into
mainfrom
secu/block-awareness-when-reader
Open

🔒️(yprovider) readOnly connections awareness propagation#2544
AntoLC wants to merge 1 commit into
mainfrom
secu/block-awareness-when-reader

Conversation

@AntoLC

@AntoLC AntoLC commented Jul 29, 2026

Copy link
Copy Markdown
Collaborator

Purpose

We noticed that a read-only connection was still able to propagate awareness updates (cursor/selection presence) to other clients, even though connectionConfig.readOnly already blocked document sync updates.

Override MessageReceiver.apply to no-op for any read-only connection instead of delegating to the original implementation, so neither document updates nor awareness updates ever propagate from it.
The connection itself is left open; only the message is dropped.

@AntoLC AntoLC self-assigned this Jul 29, 2026
@AntoLC
AntoLC force-pushed the secu/block-awareness-when-reader branch from e9a9fdf to d13c89a Compare July 29, 2026 12:10
We noticed that a read-only connection was still able
to propagate awareness updates (cursor/selection presence)
to other clients, even though connectionConfig.readOnly
already blocked document sync updates.

Override MessageReceiver.apply to no-op for any read-only
connection instead of delegating to the original
implementation, so document awareness updates never propagate
from it.
The connection itself is left open; only the
awareness is dropped.
@AntoLC
AntoLC force-pushed the secu/block-awareness-when-reader branch from d13c89a to 487411f Compare July 29, 2026 12:45
@AntoLC
AntoLC requested a review from lunika July 29, 2026 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant