Skip to content

Security: EclipseReign/EclipseVoice

Security

docs/SECURITY.md

Security baseline

Trust boundaries

  • Supabase Auth owns passwords and user sessions. The application receives only the user's session JWT and never uses a service-role key in a public client.
  • Postgres Row Level Security is mandatory for every Data API table.
  • The edge token service verifies the Supabase session and checks channel membership through RLS before issuing a short-lived LiveKit token.
  • The Tauri shell loads the production HTTPS UI but grants it no remote Tauri capabilities. Native permissions must be explicitly reviewed before adding any plugin.

Release safety

  • UI and service fixes are delivered from the production HTTPS origin.
  • Native updater packages must be signed with a Tauri updater key. Never ship an updater that accepts unsigned artifacts or insecure HTTP endpoints.
  • Windows Authenticode signing is separate from Tauri updater signing and is required before presenting the installer as a trusted commercial release.
  • Private signing keys, LiveKit secrets, Supabase secret/service-role keys and payment secrets must stay outside Git and be stored in a dedicated secret manager.

Abuse and cost controls

  • Voice tokens: authenticated users only, valid voice-channel membership, ten token requests per minute per observed user/IP at the edge.
  • Database limits: ten owned spaces, fifty channels per space, one hundred pending outgoing friend requests, five hundred relationships, and twenty messages per ten seconds per user.
  • Configure provider-side budget alerts and hard limits in LiveKit, Supabase and the payment processor before enabling paid traffic.

Operational checklist

  1. Apply every SQL migration before deploying code that relies on it.
  2. Review Supabase Security Advisor and Auth audit logs after each auth change.
  3. Keep exact production Auth redirect URLs; never use broad wildcards.
  4. Rotate any secret that appears in chat, logs, source, screenshots or support tickets.
  5. Run TypeScript checks, Rust builds, dependency audit and a production browser smoke test before release.
  6. Maintain tested backups and rehearse account/key recovery.
  7. Publish a security contact and incident-response procedure before sales.

Dependency status

Run npm audit --omit=dev --audit-level=high before every release. Security overrides in the root package must be kept in sync with the production Sites source package and removed once upstream dependency ranges include the patched versions directly.

There aren't any published security advisories