Skip to content

fix(coderd/agentapi): reject missing RPC messages - #29150

Merged
dylanhuff-at-coder merged 2 commits into
mainfrom
dylan/plat-596-security-nil-proto-sub-messages-panic-in-three-agent-rpc
Sep 15, 2026
Merged

dylanhuff-at-coder merged 2 commits into
mainfrom
dylan/plat-596-security-nil-proto-sub-messages-panic-in-three-agent-rpc

Conversation

@dylanhuff-at-coder

@dylanhuff-at-coder dylanhuff-at-coder commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Reject UpdateLifecycle, UpdateStartup, and BatchUpdateMetadata requests with a missing sub-message using InvalidArgument instead of panicking. The whole metadata batch is validated before any value is trimmed or queued.

Adds tests for each handler, a mixed metadata batch, and one DRPC round-trip confirming the code propagates and the connection stays usable.

Refs PLAT-596

Reviewed and updated by Coder Agents on behalf of @dylanhuff-at-coder.

@linear-code

linear-code Bot commented Sep 9, 2026

Copy link
Copy Markdown

PLAT-596

@dylanhuff-at-coder
dylanhuff-at-coder marked this pull request as ready for review September 10, 2026 17:10
@dylanhuff-at-coder
dylanhuff-at-coder requested review from a team and snagles and removed request for a team and snagles September 10, 2026 18:59

@BobbyHo BobbyHo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@dylanhuff-at-coder
dylanhuff-at-coder merged commit 9c58283 into main Sep 15, 2026
32 of 33 checks passed
@dylanhuff-at-coder
dylanhuff-at-coder deleted the dylan/plat-596-security-nil-proto-sub-messages-panic-in-three-agent-rpc branch September 15, 2026 15:18
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 15, 2026
@dylanhuff-at-coder dylanhuff-at-coder added backport backport/v2.34 Backport PR targeting release/2.34 backport/v2.36 Backport PR targeting release/2.36 backport/v2.35 Backport PR targeting release/2.35 labels Sep 15, 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 backport/v2.35 Backport PR targeting release/2.35 backport/v2.36 Backport PR targeting release/2.36 backport

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants