Skip to content

Fix production audit blockers: identity, RLS, billing, integrations - #8

Draft
eshanized wants to merge 79 commits into
masterfrom
fix/production-audit-eight-gaps
Draft

eshanized wants to merge 79 commits into
masterfrom
fix/production-audit-eight-gaps

Conversation

@eshanized

Copy link
Copy Markdown
Owner

Summary

This draft consolidates the production-readiness remediations identified in the latest Runstead repository review.

Changes currently included

  • Added single-use email verification tokens, verification and resend endpoints, and blocked login/protected operations for unverified accounts.
  • Enforced database-level payment idempotency and added row-locked invoice settlement.
  • Added a shared PostgreSQL rate limiter and switched login, registration, checkout, and verification resend to it.
  • Made the restricted database client the production default, introduced explicit admin access, and applied tenant context to core service operations and several route families.
  • Removed implicit default tenant fallbacks from affected reseller endpoints.
  • Removed local SQLite fallback from reseller settings, analytics, reseller sync, and platform tenant listing.
  • Made integration status reflect an actual connection probe.
  • Changed domain registration to create a clearly labeled pending request, and DNS records to explicitly state they are local drafts only.
  • Tightened cPanel capability declarations and made unsupported backup restore return unavailable rather than fake success.
  • Isolated production UI state from seeded demo records and removed fabricated service/domain metadata.
  • Disabled sandbox payment/hosting provider selection in production.

Validation

This PR is open for validation; do not merge until current CI, Prisma migration checks, RLS tests, and production build succeed. External provider-backed tests still require credentials and a controlled staging environment.

@vercel

vercel Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
runstead Error Error Oct 18, 2026 4:58pm UTC

This branch had an error being deployed

1 failed deployment
Preview — 5459be73 Deployed Oct 18, 2026 by vercel[bot]
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