KERIA: cap the registration escrow and pending notifications against spam from the open boot door #1879

Open
opened 2026-09-25 12:37:31 +00:00 by ben · 0 comments
Owner

Problem

The gateway's boot door is open (#1869, GOTCHAS #345) and the KERIA CESR door is public, so anyone can mint AIDs for free and send signed /matou/registration/apply (or /ipex/apply, /multisig/rot) exns to a steward's agent. With the registration patches (GOTCHAS #346), each distinct message:

  • leaves a persistent /exn<route>/pending notification in the steward's agent that the steward has to clear, and
  • sits in the partial-signed escrow for up to REGISTRATION_ESCROW_SECONDS (30 days), costing DB space and a retry at most every 5 s. Before the patches it cost 20 s.

Nothing caps escrowed or pending messages per sender or per steward.

Options

  • A per-sender cap and a total cap on escrowed registration messages in idss_patches.py, refusing new pending notifications past the cap.
  • Rate limits at the front door (Caddy) on the CESR door's exn POSTs and on /boot.
  • Collapsing repeat /pending notifications from one sender.

Ruled: DEFERRED

Ben, 2026-09-25: ship the registration patches now; limit spam later.

Revisit when any of these happens:

  • a community sees unsolicited registrations or pending-notification spam;
  • a community's KERIA escrow DB grows noticeably from exn escrow;
  • IDSS opens founding to communities beyond the Mātou-run demos.
## Problem The gateway's boot door is open (#1869, GOTCHAS #345) and the KERIA CESR door is public, so anyone can mint AIDs for free and send signed `/matou/registration/apply` (or `/ipex/apply`, `/multisig/rot`) exns to a steward's agent. With the registration patches (GOTCHAS #346), each distinct message: - leaves a persistent `/exn<route>/pending` notification in the steward's agent that the steward has to clear, and - sits in the partial-signed escrow for up to `REGISTRATION_ESCROW_SECONDS` (30 days), costing DB space and a retry at most every 5 s. Before the patches it cost 20 s. Nothing caps escrowed or pending messages per sender or per steward. ## Options - A per-sender cap and a total cap on escrowed registration messages in `idss_patches.py`, refusing new pending notifications past the cap. - Rate limits at the front door (Caddy) on the CESR door's exn POSTs and on `/boot`. - Collapsing repeat `/pending` notifications from one sender. ## Ruled: DEFERRED Ben, 2026-09-25: ship the registration patches now; limit spam later. Revisit when any of these happens: - a community sees unsolicited registrations or pending-notification spam; - a community's KERIA escrow DB grows noticeably from exn escrow; - IDSS opens founding to communities beyond the Mātou-run demos.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/idss#1879
No description provided.