Skip to content

Harden live sharing and AI usage controls - #18

Merged
PengfanZ merged 1 commit into
mainfrom
codex/security-hardening-round2
Aug 9, 2026
Merged

Harden live sharing and AI usage controls#18
PengfanZ merged 1 commit into
mainfrom
codex/security-hardening-round2

Conversation

@PengfanZ

@PengfanZ PengfanZ commented Aug 9, 2026

Copy link
Copy Markdown
Owner

What changed

  • validate complete Live activity graphs consistently in the browser and database
  • let capability holders end a Live session while preserving local recovery copies
  • add per-client and project-wide AI text/voice budgets
  • trust only the platform-provided client address for AI quota identity
  • restrict production CSP connections to the configured Supabase origin
  • patch the vulnerable transitive nanoid version
  • document the security controls and add a user-facing changelog entry

Why

The previous database snapshot check was shallower than the browser contract, Live capability URLs could not be explicitly revoked, distributed AI traffic had no project-wide ceiling, and release CSP contained development connection sources.

Verification

  • 501 Vitest tests with 100% statement, branch, function, and line coverage
  • 191 pgTAP database tests after a clean local migration reset
  • Supabase schema lint with no errors
  • 12 core/PWA/Live Playwright scenarios
  • 14 AI text/voice Playwright scenarios
  • TypeScript, ESLint, production Pages build, CSP inspection, and diff checks

@PengfanZ
PengfanZ merged commit 2dfb626 into main Aug 9, 2026
4 checks passed
@PengfanZ
PengfanZ deleted the codex/security-hardening-round2 branch August 9, 2026 05:35
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