Skip to content

feat(security): restore encrypted sharing and portable recovery - #298

Closed
ThisIs-Developer wants to merge 5 commits into
mainfrom
restore/pr-291-encrypted-sharing
Closed

ThisIs-Developer wants to merge 5 commits into
mainfrom
restore/pr-291-encrypted-sharing

Conversation

@ThisIs-Developer

@ThisIs-Developer ThisIs-Developer commented Nov 20, 2026 •

Copy link
Copy Markdown
Owner

Restores the encrypted-sharing implementation preserved from PR #291, after main and production were restored to d7b51b4. This PR preserves the original commits and authorship without additional code changes.

What changed:

  • Browser-side AES-256-GCM encryption for new snapshots, managed attachments, and Live Share content.
  • Signed live roles and host controls, replay/freshness protections, and portable encrypted recovery.
  • Private rendering/resource restrictions, bundled core browser dependencies, and sharing usage/protocol documentation.
  • Existing legacy reads and expiry behavior are retained without a bulk data migration.

Validation:

  • The head remains the original reviewed commit 6d7c1e1.
  • The original PR contains the historical test results, review discussion, and implementation details. Those results are not a fresh validation of this replacement PR.
  • The rendering and compact-link follow-up is preserved in dependent PR fix(sharing): restore private rendering and compact encrypted links #299 and should be reviewed together before restoring encrypted sharing to production.

Deployment:

  • Production currently runs the requested pre-encryption revision, including its matching relay.
  • Re-deploy the compatible encrypted relay before the matching Pages frontend/functions. Do not assume the encrypted relay from the earlier deployment is still active.
  • Preserve the original PR records; this replacement keeps the implementation available for further review.

- Support bounded 64 MiB portable recovery for supported 10 MiB managed video attachments, retaining fail-closed oversize behavior and backward compatibility.
- Drain verified encrypted Live Share frames before reporting transport close, preserving authenticated host-end events.
- Pin Markmap D3 to 7.9.0 with verified SHA-384 integrity in web and desktop preparation.
- Correct narrow translated outline layout and stabilize asynchronous syntax-theme regression assertion.
- Add recovery, PWA cache-upgrade, platform parity, Live Share close-race, D3 integrity and browser regressions.

Pre-commit: 285 unit tests passed (1 skipped); 8/8 Firefox E2EE tests passed; 690 Chromium E2E tests passed with 2 first-retry passes; repeat checks 30/30 and baseline 18/18 passed; root/desktop npm audit reported 0 known vulnerabilities. Exact candidate tree independently verified. External cryptographic review and production-equivalent Cloudflare staging remain release gates; this commit is not a security certification.
@vercel

vercel Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
markdown-viewer Ready Ready Preview Nov 20, 2026 4:08pm UTC

@ThisIs-Developer

Copy link
Copy Markdown
Owner Author

Status: On Hold ⏸️

The proposed encryption changes for Live Share and Share Snapshot did not work as expected, so the previous stable implementation has been restored.

This work is being paused for now and may be revisited in the future with a more reliable approach.

Closing this PR for the time being.

@ThisIs-Developer
ThisIs-Developer deleted the restore/pr-291-encrypted-sharing branch November 20, 2026 16:38
@ThisIs-Developer ThisIs-Developer added ✨ enhancement New feature, improvement, or usability enhancement. 🔒 security Security vulnerabilities, hardening, CSP, API protection, or related fixes. labels Nov 20, 2026 — with ChatGPT Codex Connector

This branch was successfully deployed

1 active deployment
Preview — 6d7c1e1e Deployed Nov 19, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

✨ enhancement New feature, improvement, or usability enhancement. 🔒 security Security vulnerabilities, hardening, CSP, API protection, or related fixes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant