docs: README at-rest claims match the SQLCipher store (stale since #43) #55
Loading…
Reference in a new issue
No description provided.
Delete branch "wt/t_f2fc5190"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The README still described the pre-#43 design: only chat bodies encrypted,
self.identity_skand the roster plaintext on disk, andsqlcipherlisted as a v1 non-goal. #43 shipped whole-file SQLCipher, so all three claims were false.What changed (docs only, no code):
README.mdbanner (line 6) — "Chat bodies are encrypted at rest; identity keys in sqlite are still plaintext" → the whole store is encrypted at rest with SQLCipher, with the row-bound AEAD layer kept on top.README.md"Seized laptop" — now describes what ships: the wholeonionwire.dbis SQLCipher (rusqlitefeaturebundled-sqlcipher-vendored-openssl), 32-byte key = Argon2id(passphrase, 16-byte salt instore_salt, mode 0600) passed as a raw key (PRAGMA key = "x'…'") as the first statement after open; file header, schema,self.identity_sk, friend pubkeys, locators, profiles and payments are all ciphertext on disk. Fail-closed unlock, encrypted store withstore_saltmissing refuses to open, and the v0.2.1 plaintext→SQLCipher in-place upgrade is named. The per-message ChaCha20-Poly1305 + row-bound AAD layer is documented as on top of whole-file encryption (it stops row ciphertext swaps; whole-file encryption does not).README.md"Not in v1" (line 319) — droppedsqlcipher; it shipped in #43.docs/SECURITY_AUDIT.md— the "Still true" bullet repeated the same "identity secret key and roster are plaintext" claim. Replaced with the residual risk that actually remains (no defense against a live compromise or a known passphrase), pointing at the threat model.Caveats deliberately kept honest:
/wipeis still not a forensic erase (SSD wear-levelling), at-rest encryption does not protect against a live compromise or an attacker who has the passphrase, anddocs/THREAT_MODEL.mdremains the reference.Evidence
Docs-only, so nothing to clippy; the wording was checked against
docs/THREAT_MODEL.md,docs/SECURITY_AUDIT.mdandsrc/store.rs, and the load-bearing claims are asserted by existing tests, run on this branch:grep -rn -i "plaintext|sqlcipher" README.md docs/now only matches places where it is genuinely true (messages.plaintextcolumn name, application-layer plaintext classification in PROTOCOL.md, the v0.2.1 upgrade notes in THREAT_MODEL.md, Arti state-dir wording).Merge order / collisions
Branched from
origin/main(c39259b) — not stacked on the unmerged docs PRs.README.mdis a hotspot: PR #53 also edits README line 6 and line 319, so whichever of #53/#55 lands second needs a trivial rebase (my line-6 edit only touches the final sentence; my line-319 edit only removes, sqlcipher).Known stale spot left alone deliberately:
crates/onionwire-sdk/README.md:22("Identity keys in sqlite are plaintext — that is honest, not an oversight.") is the same rot, but that file is inside PR #51's diff, so fixing it here would stack on an unmerged branch. It needs a follow-up card.Card: t_f2fc5190
ffe6978fa0tod256d3bb8e