Security and data handling
Security for records you would not send by email.
A compliance passport can contain insurance, licensing, worker and payment evidence. This page describes the controls implemented in the production architecture, the data paths that matter, and the limits of the current deployment.
Controls
Controls that trace back to the codebase.
This is a working description of the production architecture, not a marketing certification. Each control has a corresponding migration, server module or test.
Row-level security and role isolation
PostgreSQL RLS is enabled on all 61 application tables created by the migrations. Write policies are restricted to owner and member roles; viewer roles are read-only. Cross-organization access is gated by an explicit accepted mandate or a linked project/relationship. An automated allow/deny RLS suite checks tenant isolation, viewer write denial and cross-tenant reads.
Private document storage
Compliance files, worker credentials and financial attachments live in the private documents bucket under an org_id/ prefix. Customer documents have no public URL. Files are served only after session or share-token authorization checks, through short-lived signed URLs or the app's file routes, with CSP sandbox and attachment headers for non-PDF/image content.
Secrets and cookie security
The Supabase service-role key is imported only by server modules and never exposed with NEXT_PUBLIC. Copyable passport tokens are sealed with AES-256-GCM using a server-only token-encryption secret. RelyTia's own session, password-recovery and dashboard-language cookies are HttpOnly, Secure in production and SameSite=Lax. Supabase Auth session cookies are host-only, Secure in production and SameSite=Lax; they are scoped to the browser client only for MFA and recovery flows. The active workspace is resolved server-side from membership; there is no client-editable workspace cookie.
Global data minimization
Sensitive categories — tax_registration, financial and payment_waiver across all supported jurisdictions — are automatically excluded from public passports and public document routes. Contact details stay hidden unless the record owner explicitly enables them per share link.
RelyTia Copilot AI isolation
Copilot requests run server-side against the authenticated organization and are available on the subcontractor Pro plan. Sensitive categories are excluded from retrieval, the model has no filesystem or environment-secret tools, and document text is wrapped in <untrusted_document_context> tags and treated as untrusted data. RelyTia does not train AI models on customer data.
Labels by design
Self-reported is the initial upload. Attestation is a link-only third-party acknowledgment with no mailbox or document proof. Broker-confirmed requires a one-time email code or an uploaded issuer approval document. Confirmation is recorded separately and never overrides a needs_attention flag or turns a document into a RelyTia certification.
Data flows
Where document data goes, and where it does not.
A short map of the paths that matter for a platform holding insurance, licensing, worker and payment evidence.
- 1Upload
- Browser → Next.js route handler (session, owner|member role, plan quota, MIME, 10 MB cap and magic-byte validation) → private org_id/ storage. The configured AI provider receives document text or a page image only when extraction runs; it never receives account credentials.
- 2Passport view
- Anonymous request → rate limit → security-definer RPC enforcing an active subscription and sensitive-category exclusions → safe public fields only. No per-view analytics are recorded.
- 3Broker confirmation
- A hashed 32-byte token is scoped to specific documents, expires after 30 days and is revocable. Verification is rate limited and requires a one-time email code or an uploaded issuer approval document for the Broker-confirmed label; link possession alone records Attestation.
- 4Two-way finance and bank slips
- Subcontractor quotations, invoices and GC bank-slip confirmations are stored in the private bucket. RLS limits each record to the submitting subcontractor and the linked GC through an accepted mandate, assigned project or active relationship.
- 5Payments
- PayPro Global acts as Merchant of Record. Card details never touch RelyTia servers. Webhooks verify the signature, order hash, sender IP, checkout-intent scope, SKU and amount, and reject stale or duplicate events before changing a subscription.
Labels
How each record state is produced.
A label records who provided or confirmed the evidence, never a RelyTia review or a certification of coverage.
Self-reported
The initial upload. The subcontractor provided the file and its fields. RelyTia has not independently reviewed or certified it.
Attestation
A link-only third-party acknowledgment. The recipient used the scoped link, but did not prove mailbox control or upload issuer approval.
Broker-confirmed
Recorded only after a one-time email code to the broker mailbox or an uploaded issuer approval document. Confirmation never overrides a needs_attention flag and is not a RelyTia certification.
Operations
Retention, subprocessors and production scope.
What happens to the data, who processes it, and which controls apply in the production deployment.
Retention and deletion
- Organization deletion is soft for 30 days, then purged with stored files, subject to legal holds.
- Billing records are retained as required by tax and accounting law.
- Audit rows are retained as the organization's append-only audit history.
- Passport links can be revoked immediately; access stops on the next load.
- Financial and lien documents remain private working records, not public passport evidence.
Subprocessors
- Supabase: database, authentication and private document storage.
- Netlify: application hosting and serverless functions.
- PayPro Global: Merchant of Record for billing, taxes and disputes.
- Resend: transactional email.
- AI Inference Provider: only when a real extraction/chat provider is configured.
- Plausible: optional cookie-free analytics, only when configured.
The same list appears in the Privacy Policy and DPA. Material subprocessor changes receive prior notice.
Production scope
These controls apply to the Supabase-backed production deployment. RLS is effective only after the migrations are applied to that project; the repository includes the allow/deny suite used to verify it. This page will not claim a control is active in an environment where it is not provisioned.
SOC 2 roadmap
Roadmap, not certifiedRelyTia is not SOC 2 certified. The roadmap covers formal access reviews, a vendor risk register, change management, annual penetration testing and a Type I readiness assessment before any Type II audit. We will say “certified” only when a report exists.
Vulnerability disclosure
Report a vulnerability or passport issue to support@relytia.com. Include reproduction steps and the affected URL. Do not access other customers' data to demonstrate an issue.
Email support@relytia.comDirect answers
The answers security reviewers ask for.
If you need a control, subprocessor or retention detail that is not here, ask. We will answer with what is implemented.
What is the difference between Self-reported and Broker-confirmed documents?
Self-reported means the subcontractor uploaded the document and RelyTia displays the fields as provided. Broker-confirmed is a separate label recorded only after the issuing broker or surety verifies the certificate through a one-time code or an uploaded issuer approval. Neither label is a RelyTia certification, coverage opinion or guarantee.
How does RelyTia isolate general contractor and subcontractor data?
PostgreSQL row-level security is enabled on all 61 application tables before application code reads them. Policies are role-aware, cross-organization access requires an accepted mandate or a linked project, and viewer roles are read-only. An automated allow/deny suite in the repository verifies tenant isolation and viewer write denial.
Is row-level security enabled everywhere?
Yes. All 61 application tables created by the migrations have RLS enabled before application code reads them. Policies are role-aware, and the repository includes an allow/deny suite for tenant isolation and viewer write denial.
Can a viewer change documents or billing?
No. Owner and member roles can write within their organization. Viewer roles are read-only, including documents, passport links, workers, projects, draws and mandates. Owners additionally control membership and billing.
Do you track who views a passport?
RelyTia does not record per-view analytics or a view history. A passport request returns safe public fields only; it does not write a view event.
Does Copilot train on customer documents?
No. RelyTia does not train AI models on customer data. Copilot context is limited to the authenticated workspace that owns the documents, and sensitive categories such as tax registration, financial and payment-waiver records are excluded from retrieval.
Is RelyTia SOC 2 certified?
No. RelyTia is on a SOC 2 roadmap and is not certified. We will say certified only when an audit report exists.
Questions
Need the controls in writing?
Ask about a specific control, subprocessor or deployment limit. We answer with what is implemented, not what is aspirational.