plan: Task 7 forged-header rule matches the controller ruling
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+1
−1
docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md+1 −1
diff --git a/docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md b/docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md| index 7074cf02..c9c64d6c 100644 |
| --- a/docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md |
| +++ b/docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md |
| @@ -222,7 +222,7 @@ Egress listener: TLS requiring a client certificate from the controller CA; each |
| **Interfaces:** `proxytest.Harness{Proxy *hostedproxy.Server; Origin, Other *httptest.Server; Controller *FakeController; Clock *FakeMono}`, all on `127.0.0.1`. The client side is the real hosted transport from Task 12 once it exists; until then the harness's `Client(id)` builds the same `http.Transport`, and Task 12 replaces it (this test must still pass). |
| -- [ ] **Red:** `TestFrontingMatrix`: allowed SNI with another `Host`; CONNECT to the allowed host then SNI of another; CONNECT to `127.0.0.1:443`, `[::1]:443`, the host on 8443; no SNI; ALPN `h2` only; `x@host` and `host%2Eexample`; an absolute-form URI naming another host; a WebSocket upgrade with another `Host`; a nested CONNECT. Each refused with its reason; the origin sees nothing. Positive control: the allowed runner path succeeds and a WebSocket round trip works. `TestNoCertificate`, `TestCertFromOtherCA`, `TestReplayedCertAfterRevoke`, `TestWrongEpochCert`. `TestOpenSocketClosesAtCertExpiry` (an upgraded WebSocket open across `NotAfter` is closed at it). `TestPartitionedProxy` (the controller is up but the proxy cannot reach it: open sockets close at the feed's expiry, new requests fail with `stale_feed`). `TestRenewalReplayRefused` (a captured renewal replayed through the bootstrap listener is refused). `TestCertReportThroughProxy` (a report signed by the VM key reaches the fake controller intact; a report with forged identity headers, another serial, or a signature by a different key is refused by the controller). |
| +- [ ] **Red:** `TestFrontingMatrix`: allowed SNI with another `Host`; CONNECT to the allowed host then SNI of another; CONNECT to `127.0.0.1:443`, `[::1]:443`, the host on 8443; no SNI; ALPN `h2` only; `x@host` and `host%2Eexample`; an absolute-form URI naming another host; a WebSocket upgrade with another `Host`; a nested CONNECT. Each refused with its reason; the origin sees nothing. Positive control: the allowed runner path succeeds and a WebSocket round trip works. `TestNoCertificate`, `TestCertFromOtherCA`, `TestReplayedCertAfterRevoke`, `TestWrongEpochCert`. `TestOpenSocketClosesAtCertExpiry` (an upgraded WebSocket open across `NotAfter` is closed at it). `TestPartitionedProxy` (the controller is up but the proxy cannot reach it: open sockets close at the feed's expiry, new requests fail with `stale_feed`). `TestRenewalReplayRefused` (a captured renewal replayed through the bootstrap listener is refused). `TestCertReportThroughProxy` (a report signed by the VM key reaches the fake controller intact; forged identity headers never reach the controller, because the proxy builds its own forwarded request, and a report sent to the controller directly with identity headers is refused; a report with another serial, or a signature by a different key, is refused by the controller). |
| - [ ] **Green:** `go test ./internal/hostedproxy -run 'TestFronting|TestNoCertificate|TestCertFromOtherCA|TestReplayedCert|TestWrongEpoch|TestOpenSocket|TestPartitioned|TestRenewalReplay|TestCertReportThroughProxy' -count=1` within the 10 s package budget. |
| - [ ] **Mutations:** accept `h2`; skip the tunnel deadline timer. Each fails a named row. |
| - [ ] **Commit:** `hostedproxy: fronting, expiry and revocation tests over TLS`. |