Relay: axum + SQLite storing exactly PROTOCOL.md §5 #5

Closed
opened 2026-11-02 00:29:38 +01:00 by mnovak · 1 comment
Owner

crates/relay. A new column is a protocol change — never a migration slipped into a feature.

  • Schema = mailboxes, blobs, invites, push (opt-in) — nothing else
  • Tokens stored as hashes; post without a valid token refused; after rotation the old token refused
  • Blob deleted on acknowledged delivery and after the TTL (clock injected)
  • No logging of IPs, user agents or request bodies — logging goes through an allow-list filter; counts only
  • Canary test: a canary string sent in a message never appears in the database or logs
  • /version returns the build hash

Depends on: #1, #4

`crates/relay`. A new column is a protocol change — never a migration slipped into a feature. - [ ] Schema = `mailboxes`, `blobs`, `invites`, `push` (opt-in) — nothing else - [ ] Tokens stored as hashes; post without a valid token refused; after rotation the old token refused - [ ] Blob deleted on acknowledged delivery and after the TTL (clock injected) - [ ] **No logging of IPs, user agents or request bodies** — logging goes through an allow-list filter; counts only - [ ] Canary test: a canary string sent in a message never appears in the database or logs - [ ] `/version` returns the build hash Depends on: #1, #4
mnovak added this to the Phase 2 — Relay, MLS & verification milestone 2026-11-02 00:29:38 +01:00
mnovak added the area/relayfeatureprivacy labels 2026-11-02 00:29:38 +01:00
Author
Owner

Done in F20, merged as 710e1f87fb: the relay: axum + SQLite storing exactly PROTOCOL.md section 5, checked by a schema test and a byte search of the database file. Review: .agents/reviews/feature-relay.md.

Done in F20, merged as 710e1f87fba0c56d05e049cac87f138d3496a88e: the relay: axum + SQLite storing exactly PROTOCOL.md section 5, checked by a schema test and a byte search of the database file. Review: `.agents/reviews/feature-relay.md`.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mnovak/Amicitia-Tabellarius#5