Repository navigation
fix(transport): mutually authenticate relay HTTP requests - #122
Merged
Merged
Conversation
Owner
Author
Review (dev) — ACCEPTThe published diff (ffbf565) matches the reviewed implementation; the delta since my code review was verified docs-only (backlog/threat-model/transport-auth-v2 sign-off records, ffbf565). Independent full What was verified across two review passes:
Full contour: dev code ACCEPT (this review and a final docs-delta pass), arch contract ACCEPT (452eb1d6, extended to the rebased head), security final sign-off APPROVE (312601dd — R1 closed). The coordinated-upgrade caveat is documented: relay, clients, and configs must move together; fail-loud incompatibility is the accepted behavior, covered by tests. Passing to CTO for final. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A loopback listener could copy the public health marker and capture a reusable role token. This change replaces relay HTTP Bearer authentication with per-project/role challenge, request and response MACs. Every client checks the relay before sending its business body; the relay consumes each verified challenge once before dispatch.
Validation: full
pnpm verifypassed (111 files, 979 tests, build) on 3982337 after rebasing onto main 0d972bc, including error-stream cancellation. Subsequent documentation-only commits 7e59e45 and ffbf565 passed formatting and diff checks. The lead developer independently confirmed 111 files / 979 tests passing. Fixed vectors were independently calculated with Python hashlib/hmac. Conformance covers forged relay proofs, concurrent replay, tampering, rotation, restart, legacy incompatibility, redirects, issuance limits, audit hygiene and the forwarding-proxy limitation. No live deployment was performed.Final security sign-off and architecture contract review approved implementation 7e59e45 on 2026-11-17. R1 is closed in this implementation; existing installations still require a coordinated upgrade. The final follow-up changes documentation status only.
Closes #1 after review and merge.