Walkthrough
Peer link probing now reports recognized TLS certificate errors as unreachable. Ordinary probe failures remain non-matches. Status checks and credential resolution use environment identity matching. Tests verify that an untrusted HTTPS peer is not stored and that resolution can select a valid peer URL.
Changes: Peer Link Identity
Layer / File(s) Summary Certificate error handling
apps/server/src/peer/PeerLinks.ts,apps/server/src/peer/PeerLinks.test.tsPeerLinksdetects recognized TLS certificate errors and reports them as unreachable. Tests verify that an untrusted peer is not stored, that resolution can select a valid URL after an untrusted candidate, and that certificate codes are found in nested causes.Peer identity checks
apps/server/src/peer/PeerLinks.tsStatus checks and credential resolution use answersAsto match candidate URLs to the requested environment. Resolution retains the existing capability check for matching peers.Priority: External image Normal
Estimated code review effort: 2 (Simple) | ~12 minutes
Change: Bug fix
Possibly related PRs
- pingdotgg/t3code#26551: Changes route selection to verify peer identity before reusing an alternate route.
- pingdotgg/t3code#26475: Rechecks candidate origins and peer identity before
PeerLinks.resolvereturns credentials.
Suggested reviewers:
juliusmarminge
Merge Risk: External image Low · up to 07d1d
Mixed-address links may lose certificate-specific diagnostics, but linking remains safely unsuccessful rather than selecting the wrong peer.
Pre-merge checks: Passed 4
Check name Status Explanation Title check Passed The title is concise, specific, and accurately describes the main change: reporting untrusted peer certificate errors during linking. Description check Passed The description includes the required Problem, Change, Scope and approval, and Verification sections. It explains the failure, implementation, scope rationale, focused tests, observed results, and rem… Linked Issues check Passed Check skipped because no linked issues were found for this pull request. Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request. Full details: Description check
Explanation
The description includes the required Problem, Change, Scope and approval, and Verification sections. It explains the failure, implementation, scope rationale, focused tests, observed results, and remaining behavior. The agent note identifies the model but does not state a harness.
Finishing Touches
🧪 Generate unit tests (beta)
- Create a new PR
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Comment @coderabbitai help to get the list of available commands.