Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix: prevent coderd crashes from unsupported Tailnet RPCs (#28429) - #28961

Merged
geokat merged 1 commit into
release/2.36from
backport/28429-to-2.36
Sep 4, 2026
Merged

fix: prevent coderd crashes from unsupported Tailnet RPCs (#28429)#28961
geokat merged 1 commit into
release/2.36from
backport/28429-to-2.36

Conversation

@geokat

@geokat geokat commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Backport of #28429

Original PR: #28429 — fix: prevent coderd crashes from unsupported Tailnet RPCs
Merge commit: 156c8b6
PR created manually because the backport CI job is timing out.

Workspace agents could call RefreshResumeToken and WorkspaceUpdates,
even though agent connections do not configure the providers those RPCs
require. The resulting nil dereference panicked a DRPC handler and
crashed coderd.

Limit the agent Tailnet surface to its supported RPCs, return
`Unimplemented` when optional providers are absent, and recover panics
in Coder-owned DRPC servers so they return an internal error instead of
crashing the process.

Refs: https://linear.app/codercom/issue/PLAT-464
(cherry picked from commit 156c8b6)
@geokat
geokat force-pushed the backport/28429-to-2.36 branch from 19e1559 to 1ab03ee Compare September 3, 2026 22:10
@geokat geokat added the backport/v2.36 Backport PR targeting release/2.36 label Sep 3, 2026
@geokat
geokat marked this pull request as ready for review September 4, 2026 05:10
@mtojek
mtojek self-requested a review September 4, 2026 06:07
@geokat
geokat merged commit 28c4c83 into release/2.36 Sep 4, 2026
39 checks passed
@geokat
geokat deleted the backport/28429-to-2.36 branch September 4, 2026 15:46
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 4, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

backport/v2.36 Backport PR targeting release/2.36

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants