Skip to content

Commit 346fde6

Browse files
docs(boundary): copy-ready allowAddresses start line for the agent-platform payout-gate integration — arms guard 3 in the documented one-liner (direct-peer keying, 403 before the rate limiter, /health gated, IPv4-mapped IPv6 collapse), wire-verified on a live endpoint before being documented
🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
1 parent caf5e2f commit 346fde6

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

‎docs/delivery-dispute-boundary.md‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,22 @@ reference consumer runs as a live nine-scenario wire demo (mutual acceptance, a
197197
later dispute that freezes the payout, a closure claim rejected as unproven,
198198
and release only once the closed record is established by `closedAtUtc`):
199199

200+
**Copy-ready hardening** — to arm the third guard from the start, hand the
201+
allowlist to the same start one-liner:
202+
203+
```bash
204+
# the loopback bind is already its own guard; arm the list when the bind must
205+
# deliberately widen (public/private interface) or to pin a proxy's address:
206+
node --input-type=module -e "import { startDeliveryEndpoint } from './packages/delivery/http.js'; const server = await startDeliveryEndpoint({ port: 8787, allowAddresses: ['127.0.0.1', '::1'] }); console.log('DDE endpoint (allowlisted) on :8787 —', server.address());"
207+
```
208+
209+
The list keys on the **direct peer** socket address: everyone not on it gets
210+
`403` before the rate limiter — `/health` gated too (an unlisted address
211+
learns nothing, not even liveness), and a rejected peer never consumes
212+
rate-limit budget. IPv4-mapped IPv6 collapses to plain IPv4, so a dual-stack
213+
loopback matches either spelling. Behind a reverse proxy, pin the proxy's
214+
source address — never read forwarded headers (see the proxy posture below).
215+
200216
```js
201217
// your platform, before releasing any payout:
202218
import { loadFixtureFromDir } from "@coreguard/delivery/sdk"; // or build the fixture object yourself

0 commit comments

Comments
 (0)