Skip to content

Supabase auth hook, privacy safeguards and replay recovery (disabled) - #59

Merged
Robertpaschal merged 5 commits into
mainfrom
codex/supabase-auth-integration
Oct 26, 2026
Merged

Robertpaschal merged 5 commits into
mainfrom
codex/supabase-auth-integration

Conversation

@Robertpaschal

@Robertpaschal Robertpaschal commented Oct 25, 2026 •

Copy link
Copy Markdown
Owner

Adds an opt-in Supabase Send Email Hook and an auth-only Rootmail send path. Codes and token-bearing bodies use a separate encrypted, expiring, non-persistent vault; retained messages preserve delivery metadata without content, conversation copies or engagement tracking. Both API and worker require an explicit workspace/client allowlist, off by default.

The adapter verifies raw-body signatures, preserves replay deadlines in a private PostgreSQL ledger, bounds the whole request to 4.5 seconds and acknowledges observed provider acceptance. The controlled Sprout host uses code-only delivery and an owner-inbox allowlist, separate limited database credentials, fixed errors and bounded containers on the existing host. Ordinary sending is preserved. Migrations 0083/0084 add nullable columns, a privacy constraint and a partial expiry index, compatible with older code while auth remains disabled.

Validation: full local tests (7 tasks, 258 API tests, 40 adapter tests), typecheck, six builds and design audit pass. Exact-head CI at ee2a8c1 passes, including pruned ARM images and the new hook entrypoint. Worker SES configuration-read permission was approved, applied and verified. QA sender/recipient and temporary server key are prepared.

Live auth delivery, native Sprout sign-in, real expiry/resend behavior and an independent customer setup walkthrough remain unverified. This release is gated for a controlled pilot, not unrestricted sending. SES sandbox limits remain. Client keys are not endpoint-limited send-only keys; no exactly-once claim. See docs/sprout-pilot-validation-2026-10-25.md and docs/supabase-hook-setup.md for rollout and rollback.

@Robertpaschal Robertpaschal changed the title Supabase auth-email adapter foundation (not live) Supabase auth planner and guarded auth-email path (disabled) Oct 25, 2026
@Robertpaschal Robertpaschal changed the title Supabase auth planner and guarded auth-email path (disabled) Supabase auth hook, privacy safeguards and replay recovery (disabled) Oct 25, 2026
@Robertpaschal
Robertpaschal marked this pull request as ready for review October 26, 2026 07:52
@Robertpaschal
Robertpaschal merged commit effd2bd into main Oct 26, 2026
4 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