Skip to content

Prevent sending TDP messages in chunks during desktop sessions in Connect#57022

Merged
gzdunek merged 2 commits intomasterfrom
gzdunek/prevent-chunking-tdp-messages
Jul 24, 2025
Merged

Prevent sending TDP messages in chunks during desktop sessions in Connect#57022
gzdunek merged 2 commits intomasterfrom
gzdunek/prevent-chunking-tdp-messages

Conversation

@gzdunek
Copy link
Copy Markdown
Contributor

@gzdunek gzdunek commented Jul 22, 2025

Closes #56921

Disables chunking TDP messages between tsh daemon and Electron, as described in #56921 (comment).
Clipboard data sent through this connection is limited to a maximum size of 1 MB, which is a restriction in the TDP message decoder.

maxClipboardDataLength = 1024 * 1024 // 1MB

changelog: Fixed a crash in Teleport Connect that could occur when copying large clipboard content during desktop sessions

Comment thread api/utils/grpc/stream/stream.go
Comment thread api/utils/grpc/stream/stream.go Outdated
Comment thread api/utils/grpc/stream/stream_test.go
@public-teleport-github-review-bot public-teleport-github-review-bot bot removed the request for review from rosstimothy July 24, 2025 00:16
@gzdunek gzdunek added this pull request to the merge queue Jul 24, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jul 24, 2025
@gzdunek gzdunek added this pull request to the merge queue Jul 24, 2025
Merged via the queue into master with commit 76d090d Jul 24, 2025
41 checks passed
@gzdunek gzdunek deleted the gzdunek/prevent-chunking-tdp-messages branch July 24, 2025 08:44
@backport-bot-workflows
Copy link
Copy Markdown
Contributor

@gzdunek See the table below for backport results.

Branch Result
branch/v17 Create PR
branch/v18 Create PR

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.

Teleport Connect Windows Desktop crashes with large clipboard contents.

3 participants