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

Skip to content

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

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

fix: prevent coderd crashes from unsupported Tailnet RPCs (#28429)#28963
mtojek merged 1 commit into
release/2.35from
backport/28429-to-2.35

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 added the backport/v2.35 Backport PR targeting release/2.35 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
@mtojek
mtojek merged commit 7933b04 into release/2.35 Sep 4, 2026
56 checks passed
@mtojek
mtojek deleted the backport/28429-to-2.35 branch September 4, 2026 06:08
@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.35 Backport PR targeting release/2.35

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants