7 Commits

Author SHA1 Message Date
mnovak 3a0944ebff [relay] Files: a file route for same-size encrypted chunks with its own quotas; the client seals chunks in STREAM and sends a file payload inside MLS
ci / check (pull_request) Has been cancelled
The relay stores files (id, upload and fetch token hashes, chunk count, uploaded hour) and chunks
(file id, index, ciphertext): every chunk is 256 000 bytes, so it learns the size rounded up to
250 KiB and nothing finer, and it keeps no fetch count. Only the uploader's token puts or deletes,
only the fetch token gets, a chunk never changes; per-file and relay-wide quotas answer 507; files
go after 30 days, incomplete ones after 24 hours. The client pads a file to whole chunks and seals
each with ChaCha20-Poly1305 in the aead crate's STREAM, under a key made for that file; the key,
name, type, size and thumbnail travel only in the new `file` payload, which shares `seq` with text.
Also: every route now answers a bare 413 (axum's own carried a text). PROTOCOL.md §1, §4, §5, §7, §8.
2026-11-22 19:29:37 +01:00
mnovak f852b1a6d1 [relay] Wake-up: a push endpoint per mailbox, and a constant wake to it when a blob arrives
ci / check (pull_request) Has been cancelled
2026-11-20 12:04:55 +01:00
mnovak 1ccae752d7 [relay] Join page: GET /join hands an invite link opened in a browser to the app
ci / check (pull_request) Has been cancelled
A static page for https://<relay>/join#<invite id>.<secret>, the link messengers make tappable.
The fragment never reaches the relay. One button opens amicitia://invite?relay=<origin>#…; its
only script and style are named by SHA-256 in a Content-Security-Policy of default-src 'none';
no-store, no-referrer, no cookie, framing refused. PROTOCOL.md §8 lists the route.
2026-11-18 17:03:32 +01:00
mnovak 21bee2d633 [client] F22a: snapshot and restore, and staged calls that send nothing before the app has saved 2026-11-16 00:59:25 +01:00
mnovak 4a4e82e0e9 [client] F21: MLS 1:1 over OpenMLS, a mailbox per contact, invites with a derived welcome mailbox 2026-11-14 13:23:25 +01:00
mnovak 51158216ca [protocol] F20: ids, tokens and bodies with one wire spelling each; parsers hammered by property tests 2026-11-11 21:11:30 +01:00
mnovak e91356e1bc [workspace] F00: empty crates, licences, Nix flake, hook, CI 2026-11-02 00:51:46 +01:00