Skip to content

rpc: verify node ID in handshake #34158

@petermattis

Description

@petermattis

Outside of gossip, when a cockroach node opens an RPC connection it knows the ID of the node it expects to be talking to. Due to the ephemerality and reuse of hostnames under Kubernetes, the recipient might be a different node. For sanity, and reduction of log spam, we should extend the handshake request PingRequest to take an optional node ID. If present the request should fail if the remote node ID differs from the requested ID.

See #34120 (comment).

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions