Skip to content

fix(sharing): compact encrypted V2 links and private recipient diagram rendering - #296

Closed
ThisIs-Developer wants to merge 7 commits into
mainfrom
fix/compact-private-sharing-20261120
Closed

ThisIs-Developer wants to merge 7 commits into
mainfrom
fix/compact-private-sharing-20261120

Conversation

@ThisIs-Developer

Copy link
Copy Markdown
Owner

Summary

This PR fixes encrypted Share Snapshot and Live Share recipient rendering, introduces compact V2 links, and preserves client-side encryption.

  • Compact /v2/#s= and /v2/#l= invitations (URL length regression budget: <140 characters).
  • Restore recipient-side rendering of Mermaid, LaTeX, PlantUML, D2, Graphviz, Vega-Lite, WaveDrom, Markmap, ABC, GeoJSON, TopoJSON and STL using same-origin bundled resources.
  • Prevent private SVG/CSS external-resource leaks; disable third-party map tiles for encrypted documents.
  • Fix a security regression detected by the full test suite: the private MathJax SVG font must never fetch from jsDelivr. Use the bundled Modern font instead.
  • Preserve PWA/offline behavior, desktop asset parity, Docker packaging and third-party license notices.
  • Upgrade the private Mermaid/KaTeX dependency chain; add comprehensive cross-browser and four-shard Chromium CI coverage.

Verified before the single final commit

All seven validation jobs passed in the precommit GitHub Actions run: verified SHA-256 source archive, unit/security/cross-browser checks, four full Chromium shards, and an actual Docker build with HTTP smoke tests. The overall bootstrap run shows failure only because its delivery step could not push a workflow file using the restricted Actions token; the final tree was subsequently assembled using the GitHub connector without changing the validated source.

  • Unit: 286 passed, 1 skipped.
  • Full Chromium E2E: all four shards passed.
  • Cross-browser encrypted sharing/renderer/PWA checks: passed (Linux WebKit offline reload remains skipped).
  • Dependency audit: 0 known vulnerabilities at validation time.
  • Docker: actual image build and V2/renderer HTTP smoke tests passed.
  • V2 encrypted recipient network check: no unauthorized third-party renderer/font requests.

The PR branch contains exactly one commit and 73 changed files, verified against main.

Remaining gates before merge

  • Require the new PR's GitHub Actions checks to complete successfully on the pushed SHA.
  • Validate Cloudflare Pages Functions/Durable Objects in a production-equivalent staging deployment (especially share expiry, encryption boundaries and storage failures).
  • Validate offline reload on a real Safari device; Playwright Linux WebKit could not establish this.
  • Validate native desktop packaging/runtime separately.

No claim of guaranteed zero latency, zero bugs, or absolute prevention of all data leakage is made. Do not merge or publish until the remaining release gates are accepted.

- 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.
feat(security): add encrypted sharing and portable recovery
…m rendering

- Serve recipient Mermaid, LaTeX, D2, PlantUML, Graphviz and other renderers locally
- Use compact encrypted V2 snapshot and live sharing links
- Block remote MathJax font requests in private shares
- Keep desktop, Docker and offline assets aligned
- Add cross-browser privacy regression coverage and sharded Chromium CI

Validated before publication: 286 unit passes, all four full Chromium shards, cross-browser encrypted sharing, npm audit and actual Docker smoke test.
@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 12:28pm UTC

@ThisIs-Developer
ThisIs-Developer deleted the fix/compact-private-sharing-20261120 branch November 20, 2026 16:38
@ThisIs-Developer ThisIs-Developer added 🐛 bug Something is broken or not working as expected. 📑 duplicate The same issue or request already exists elsewhere. 🔒 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 — a6d72c16 Deployed Nov 20, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐛 bug Something is broken or not working as expected. 📑 duplicate The same issue or request already exists elsewhere. 🔒 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