Skip to content

Repair native E2EE handshake and prevent plaintext or private-state leaks - #19

Merged
King4s merged 1 commit into
mainfrom
fix/e2ee-live-readiness
Nov 4, 2026
Merged

King4s merged 1 commit into
mainfrom
fix/e2ee-live-readiness

Conversation

@King4s

@King4s King4s commented Nov 4, 2026

Copy link
Copy Markdown
Owner

Live E2EE verification exposed a destructive Welcome-consumption query, raw private-state uploads, plaintext fallback, and incompatible native IPC/key-package encodings. This fixes the two-client desktop path while keeping the OpenMLS version and saved-state format unchanged.

  • Return and consume the original Welcome exactly once under row lock, including concurrent requests; preserve permission checks.
  • Reject nonempty private MLS state uploads before writes and stop client uploads. Historical database blobs remain untouched.
  • Fail closed for encrypted-channel sends without native keys and for unsupported edits, scheduling, commands, threads, and forums. Keep failed drafts.
  • Use the API's member IDs and base64url wire format; preserve Snowflake strings and match the real native IPC argument names.
  • Exercise the actual production Tauri wrappers through a headless IPC test, including a full handshake, encrypted message/reply, file roundtrip, and IDs above JavaScript's exact-number range.

Validation: 427 workspace tests passed, strict Clippy passed, Linux Tauri check passed, the real PostgreSQL concurrency/state-preservation regression passed, native IPC regression passed, frontend security tests/type checks/lint/build passed. CI now runs the PostgreSQL, native IPC, and frontend security regressions. Independent client/server review completed.

This does not claim browser MLS support, persistent desktop recovery, or complete multi-peer epoch/commit synchronization. Those boundaries are documented in docs/e2ee-validation.md. Production two-client validation follows deployment with disposable accounts.

Deliver Welcome once without losing it, keep private MLS state local, correct native IPC and wire encodings, and protect unsupported encrypted send paths. Add real PostgreSQL and Tauri IPC regression gates.

Assisted-by: OpenAI Codex
@King4s
King4s merged commit 6d12daf into main Nov 4, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant