• Joined on 2026-04-19
mnovak closed pull request mnovak/Amicitia-Tabellarius#20 2026-11-20 12:06:02 +01:00
[relay] Wake-up: a push endpoint per mailbox, and a constant wake to it when a blob arrives
mnovak commented on pull request mnovak/Amicitia-Tabellarius#20 2026-11-20 12:06:02 +01:00
[relay] Wake-up: a push endpoint per mailbox, and a constant wake to it when a blob arrives

Merged into main with --no-ff as 1d7f08927d7bfab752dd64068cac0f3985a6ad79 (remote hash verified).

mnovak pushed to main at mnovak/Amicitia-Tabellarius 2026-11-20 12:05:58 +01:00
1d7f08927d [relay] Wake-up: merge feature/wake-up — a push endpoint per mailbox, and a constant wake to it when a blob arrives (review in PR #20)
f852b1a6d1 [relay] Wake-up: a push endpoint per mailbox, and a constant wake to it when a blob arrives
Compare 2 commits »
mnovak commented on pull request mnovak/Amicitia-Tabellarius#20 2026-11-20 12:05:50 +01:00
[relay] Wake-up: a push endpoint per mailbox, and a constant wake to it when a blob arrives

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).

mnovak commented on pull request mnovak/Amicitia-Tabellarius#20 2026-11-20 12:05:50 +01:00
[relay] Wake-up: a push endpoint per mailbox, and a constant wake to it when a blob arrives

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.

mnovak commented on pull request mnovak/Amicitia-Tabellarius#20 2026-11-20 12:05:50 +01:00
[relay] Wake-up: a push endpoint per mailbox, and a constant wake to it when a blob arrives

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).

mnovak commented on pull request mnovak/Amicitia-Tabellarius#20 2026-11-20 12:05:50 +01:00
[relay] Wake-up: a push endpoint per mailbox, and a constant wake to it when a blob arrives

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.

mnovak commented on pull request mnovak/Amicitia-Tabellarius#20 2026-11-20 12:05:50 +01:00
[relay] Wake-up: a push endpoint per mailbox, and a constant wake to it when a blob arrives

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).

mnovak commented on pull request mnovak/Amicitia-Tabellarius#20 2026-11-20 12:05:50 +01:00
[relay] Wake-up: a push endpoint per mailbox, and a constant wake to it when a blob arrives

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.

mnovak commented on pull request mnovak/Amicitia-Tabellarius#20 2026-11-20 12:05:50 +01:00
[relay] Wake-up: a push endpoint per mailbox, and a constant wake to it when a blob arrives

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.

mnovak commented on pull request mnovak/Amicitia-Tabellarius#20 2026-11-20 12:05:50 +01:00
[relay] Wake-up: a push endpoint per mailbox, and a constant wake to it when a blob arrives

Adversarial self-review — wake-up

mnovak created pull request mnovak/Amicitia-Tabellarius#20 2026-11-20 12:05:49 +01:00
[relay] Wake-up: a push endpoint per mailbox, and a constant wake to it when a blob arrives
mnovak pushed to feature/wake-up at mnovak/Amicitia-Tabellarius 2026-11-20 12:05:00 +01:00
f852b1a6d1 [relay] Wake-up: a push endpoint per mailbox, and a constant wake to it when a blob arrives
mnovak created branch feature/wake-up in mnovak/Amicitia-Tabellarius 2026-11-20 12:05:00 +01:00
mnovak closed pull request mnovak/Rosea#1 2026-11-19 03:45:43 +01:00
[repo] FabricaRelease: Rosea released and updated through Fabrica
mnovak commented on pull request mnovak/Rosea#1 2026-11-19 03:45:42 +01:00
[repo] FabricaRelease: Rosea released and updated through Fabrica

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…

mnovak pushed to main at mnovak/Rosea 2026-11-19 03:44:53 +01:00
9b8eb7036d [repo] FabricaRelease: Merge Rosea released and updated through Fabrica: pipelines, the Aula page's words and pictures, the APK signed in Custos, domi-rosea:// from the installer, the phone target (PR #1)
21d3cd1119 [repo] FabricaRelease: Review with every gate's counts, the numbers picture centred, handover and a lesson
3a6f2ad6ee [repo] FabricaRelease: Lint the generated release notes before the page is made; fix escapes in the APK signing test
0d37f91763 [repo] FabricaRelease: Rosea as a Fabrica app: the release and e2e pipelines, the Aula page's words and pictures, the version check, the APK signed in Custos, domi-rosea:// from the installer, the phone target
Compare 4 commits »
mnovak pushed to feature/fabrica-release at mnovak/Rosea 2026-11-19 03:44:43 +01:00
21d3cd1119 [repo] FabricaRelease: Review with every gate's counts, the numbers picture centred, handover and a lesson
3a6f2ad6ee [repo] FabricaRelease: Lint the generated release notes before the page is made; fix escapes in the APK signing test
Compare 2 commits »
mnovak merged pull request mnovak/ianitor#12 2026-11-19 02:24:19 +01:00
[docs] ROADMAP: the v0.2.0 release run waits for Mark's Custos card
mnovak pushed to main at mnovak/ianitor 2026-11-19 02:24:18 +01:00
b0e92ff262 [repo] Merge: docs/v0.2.0-release-state (ROADMAP: the v0.2.0 release run waits for Mark's Custos card, PR #12)
a626c2559f [docs] ROADMAP: the v0.2.0 release run waits for Mark's Custos card
Compare 2 commits »