docs(sdk): the SDK README's at-rest row matches the SQLCipher store (stale since #43) #57

Closed
sirius wants to merge 1 commit from wt/t_d125e661 into main
Owner

Fixes the last stale at-rest claim from t_f2fc5190: crates/onionwire-sdk/README.md:22 still said "Identity keys in sqlite are plaintext — that is honest, not an oversight." False since #43.

The row now says the whole onionwire.db is SQLCipher (Argon2id key over the 16-byte store_salt, raw PRAGMA key form, fail-closed unlock), so identity keys / roster / locators are ciphertext on disk, with the per-row ChaCha20-Poly1305 + row-bound AAD layer kept on top. Wording grounded in docs/THREAT_MODEL.md "Your store is encrypted" and src/store.rs (SALT_FILE, write_salt 0600, pragma_key). Honest caveat kept: at-rest encryption does not protect against a live compromise or an attacker who knows the passphrase.

Docs-only, one line, no code change, branched from origin/main (c39259b).

Overlap

PR #51 rewrites the same At rest row (plus the Fail closed row). It is still open, so this branched from origin/main as the card required — a one-line conflict with #51 is expected on this row; whichever lands second should take this (or #51's) wording, they say the same thing.

Verification

$ grep -rn -i "plaintext" crates/onionwire-sdk/README.md    # no match, exit 1
$ git diff --stat
 crates/onionwire-sdk/README.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

No cargo test run: markdown-only diff, zero Rust files touched (CI's cargo job is path-filtered off for docs).

Fixes the last stale at-rest claim from t_f2fc5190: `crates/onionwire-sdk/README.md:22` still said *"Identity keys in sqlite are plaintext — that is honest, not an oversight."* False since #43. The row now says the whole `onionwire.db` is SQLCipher (Argon2id key over the 16-byte `store_salt`, raw `PRAGMA key` form, fail-closed unlock), so identity keys / roster / locators are ciphertext on disk, with the per-row ChaCha20-Poly1305 + row-bound AAD layer kept on top. Wording grounded in `docs/THREAT_MODEL.md` "Your store is encrypted" and `src/store.rs` (`SALT_FILE`, `write_salt` 0600, `pragma_key`). Honest caveat kept: at-rest encryption does not protect against a live compromise or an attacker who knows the passphrase. Docs-only, one line, no code change, branched from `origin/main` (c39259b). ## Overlap PR #51 rewrites the same `At rest` row (plus the `Fail closed` row). It is still open, so this branched from `origin/main` as the card required — a one-line conflict with #51 is expected on this row; whichever lands second should take this (or #51's) wording, they say the same thing. ## Verification ``` $ grep -rn -i "plaintext" crates/onionwire-sdk/README.md # no match, exit 1 $ git diff --stat crates/onionwire-sdk/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ``` No `cargo test` run: markdown-only diff, zero Rust files touched (CI's cargo job is path-filtered off for docs).
docs(sdk): the SDK README's at-rest row matches the SQLCipher store (stale since #43)
All checks were successful
ci / test (pull_request) Successful in 4m11s
3da7c04e8e
The row still claimed identity keys are plaintext in sqlite. Since #43 the whole
onionwire.db is SQLCipher (Argon2id key over the 16-byte store_salt, raw PRAGMA
key form, fail-closed unlock), so identity keys, the roster and the locators are
ciphertext on disk; the per-row ChaCha20-Poly1305 + row-bound AAD layer stays on
top. Wording grounded in docs/THREAT_MODEL.md 'Your store is encrypted' and
src/store.rs (SALT_FILE, write_salt 0600, pragma_key). Honest caveat kept.

Docs-only; no code change.
sirius closed this pull request 2026-09-12 22:00:55 +00:00
Author
Owner

Closing: docs-only SDK README at-rest row, already covered by #51 (168727a rewrites the same row with the SQLCipher facts). Branch tip is pre-#49 (self.inner), so a head-checkout SDK build hits error[E0609]: no field inner on type &Wire even though the commit itself only touches the README. Merge result into current main would be fine; not worth keeping the PR open.

Closing: docs-only SDK README at-rest row, already covered by #51 (`168727a` rewrites the same row with the SQLCipher facts). Branch tip is pre-#49 (`self.inner`), so a head-checkout SDK build hits `error[E0609]: no field inner on type &Wire` even though the commit itself only touches the README. Merge result into current main would be fine; not worth keeping the PR open.
All checks were successful
ci / test (pull_request) Successful in 4m11s

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
sirius/onionwire!57
No description provided.