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

Skip to content

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

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

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

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.

(Resolved) conflicts:

  • coderd/agentapi/api.go
  • enterprise/coderd/aibridgeserve.go

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)

Conflicts:
    coderd/agentapi/api.go
    enterprise/coderd/aibridgeserve.go
@geokat geokat added the backport/v2.34 Backport PR targeting release/2.34 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:08
@mtojek
mtojek merged commit a6bab62 into release/2.34 Sep 4, 2026
104 of 110 checks passed
@mtojek
mtojek deleted the backport/28429-to-2.34 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.34 Backport PR targeting release/2.34

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants