From e0f53dfcda262d936a97e05a72de3b4e1f867964 Mon Sep 17 00:00:00 2001 From: Nils Stinnesbeck Date: Thu, 19 Nov 2026 12:26:06 +0100 Subject: [PATCH] docs: vouching and signed blocklists deferred, with the reasons and when to reconsider Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_01AeFqV96dVeBX94inzcgZKw --- SPECS.md | 21 ++++++++++++++++----- docs/PROTOCOL.md | 17 ++++++++++++----- 2 files changed, 28 insertions(+), 10 deletions(-) diff --git a/SPECS.md b/SPECS.md index 43bdd3a..67dd8d9 100644 --- a/SPECS.md +++ b/SPECS.md @@ -136,10 +136,20 @@ starting a design-heavy item; see "Working with the owner". - **Fallback bootstrap list inside the binary**, for networks that block DNS TXT lookups. Needs a stable address for the bootstrap node; its peer ID changes when the no-phrase identity is recreated (every ≤366 days). -- **Vouching for reporters.** Today trust is a flag. Design: existing - operators sign "this key is a real operator"; a report counts if you trust - the voucher. Then **signed blocklists** subscribed to by curator key and - fetched over libp2p (decided: not URL files). +- **Vouching for reporters and signed blocklists: decided not to build yet + (2026-11-19, owner).** Today trust is a flag (`--trust-reporter`). Design if + it is ever needed: existing operators sign "this key is a real operator"; a + key counts only if keys *you* trust vouch for it (depth 1, at least two + distinct vouchers, vouches expire and are capped), so a spammer's ring of + nodes vouching for each other is an island and counts for nothing. Blocklists + would be subscribed to by curator key and fetched over libp2p (not URL + files). Why not now: with one operator it adds nothing over the flag; a + signed blocklist is what a signed report already is; the web of trust among + strangers cannot be tested without real independent operators; and spam is + already limited by proof-of-work, quotas, the peer guard and the IP gate. + **Reconsider** when there are enough independent operators that adding + trusted keys by hand is a real chore. A cheaper step first: manage the + trusted-reporter list from the web UI or a file. - **Owner's signed reply to a report**, and a **reputation** for reporters whose reports are routinely overruled. - **Forward secrecy for messages.** Today a leaked device key reads envelopes @@ -175,7 +185,8 @@ starting a design-heavy item; see "Working with the owner". `internal/api/ratelimit.go`): attackers with many real addresses, valid but unwanted records under the limits, and bans are per node and not shared (deliberate: a shared ban could be used against honest nodes). Signed - blocklists (see vouching above) are the next layer. + blocklists (see vouching above) would be the next layer, once there are + enough operators to need them. - **Rate limits depend on the deployment**: the per-IP connection limit needs real source addresses (`externalTrafficPolicy: Local`; the nodeport overlay uses `Cluster` and hides them), and the API limit needs `TRUSTED_PROXY` to diff --git a/docs/PROTOCOL.md b/docs/PROTOCOL.md index 12b2027..9818fe9 100644 --- a/docs/PROTOCOL.md +++ b/docs/PROTOCOL.md @@ -569,7 +569,8 @@ the peers it has met in `peers.json` next to its keys. ## Spam Proof-of-work per listing and per revocation, abuse reports (below), and -subscribable blocklists (not built yet). The format leaves room for vouching +subscribable blocklists (not built, and not planned until there are enough +independent operators to need them). The format leaves room for vouching signatures later. **Mining** (`internal/pow`, `pow.Mine`): the nonce is the smallest number that @@ -666,8 +667,14 @@ and sends a tip. When the operator is signed in, a second form signs a report (or withdraws it). `#/mine/reports` is the operator's queue of tips, grouped by listing: report as the reason a visitor gave, or dismiss. -**Not built yet:** vouching (who becomes trusted is the operator's choice for -now), signed blocklists you subscribe to by curator key, an owner's signed +**Not built:** vouching and signed blocklists. Who becomes trusted is the +operator's choice (`--trust-reporter`). With one operator vouching adds nothing +over the flag, a signed blocklist is what a signed report already is, and a web +of trust among strangers cannot be tested without real independent operators. +If it is built later, trust must start from keys the operator picked: a key +counts only when keys the operator trusts vouch for it (depth 1, at least two +distinct vouchers, vouches expire), so a ring of a spammer's own nodes +vouching for each other counts for nothing. Also not built: an owner's signed reply to a report, and reputation for reporters whose reports are overruled. ## Simulation (`cmd/allmende-sim`) @@ -846,8 +853,8 @@ bound and the agreement and cost figures as the useful part. ## Open -Vouching -and blocklists for reports, reciprocity rules, anti- +Vouching and blocklists for reports (deferred, see "Abuse reports"), +reciprocity rules, anti- discrimination (AGG) content rules, peer scoring and rate limits, a fallback bootstrap list inside the binary for networks that block DNS, image hosting,