Merged into main with --no-ff as 1d7f08927d7bfab752dd64068cac0f3985a6ad79 (remote hash verified).
W2 — security. No redirect is followed: a redirect would reach an address the resolver never judged by the endpoint's host. Test: a push server answering 303 to another path on itself sees nothing there (the first version of this test used 307 on a POST, which ureq would not have followed anyway, so the planted bug was missed; fixed).
W1 — security (SSRF). The relay resolves the endpoint's host itself and keeps only global addresses; ureq connects to exactly the list this resolver returns, so DNS rebinding between check and connect has no gap. IPv4-mapped, IPv4-compatible, NAT64, 6to4 and Teredo forms are refused or judged as the IPv4 inside. With no redirects (W2), the relay cannot be steered at its own network by a mailbox owner.
W3 — availability. At most 16 wakes in flight, 10 s each. Anyone can make a mailbox (no account), point it at a tarpit that never answers, and post to it once a minute; 16 such mailboxes hold every slot, and other people's wakes are dropped. Nothing leaks and nothing is lost (the app fetches everything when opened), but wakes can be starved. Recorded as a gap: a per-address cap, or a shorter timeout for a host that timed out before. An operator under such abuse can turn wakes off (wake = false).
W4 — privacy. The body is a public constant and the headers are fixed: nothing of the mailbox, the blob, its size or its sender. The push server learns that this relay's address woke one of its capability URLs, and when — the cost the person accepts by choosing a distributor. Not Web Push encrypted (RFC 8291): nothing to hide in a constant, but see the analysis's gap W1 for distributors that need VAPID.
W5 — correctness. The wake comes only after store.post succeeded: a stranger, the owner's own fetch token, an over-quota (507) or an oversized post wakes nobody (planted bug "a refused post wakes" caught). The 201 does not wait for the wake (spawned).
W6 — privacy (linking). One endpoint per mailbox, so the relay cannot link a person's mailboxes by a shared endpoint; but it sees each endpoint's host. On ntfy.sh that says little; on a person's own push server it links all their mailboxes, and timing already partly does (CLAUDE.md §4, Metadata by timing). Amicitia must say so where wake-ups are turned on. A blocked contact's inbox stays listed, so turning wake-ups off clears it too.
W7 — found in review: the deploy would have dropped every wake. The sandbox allowed localhost only. Now, with wake on (default), global addresses are allowed and every non-global range is still denied by systemd — a second wall behind W1 — and AF_UNIX lets glibc ask nscd for names. Unrun here: no Nix on this machine.
Adversarial self-review — wake-up
Merged into main as 9b8eb70 with --no-ff (CLAUDE.md �5.3). Gitea does not allow marking it manually merged here, so it is closed by hand. No tag and no release: the first release waits for the…