Skip to content

Commit 9111576

Browse files
committed
docs(coderd/x/gitsync): document workspace ownership skip on targeted path
1 parent 1b03384 commit 9111576

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

coderd/x/gitsync/worker.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,10 @@ func (w *Worker) MarkStale(ctx context.Context, p MarkStaleParams) {
297297

298298
// When a specific chat is identified, target it directly
299299
// instead of broadcasting to every chat on the workspace.
300+
// Note: this path does not verify that the chat belongs to
301+
// WorkspaceID. This is safe because ChatID originates from
302+
// chatd via the agent (trusted data flow), but differs from
303+
// the broadcast path which filters by workspace.
300304
if p.ChatID != "" {
301305
parsed, err := uuid.Parse(p.ChatID)
302306
if err != nil {

0 commit comments

Comments
 (0)