Skip to content

Security

Last updated:

How we protect your account, your documents and your clients’ information, and what you can do to help.

1. Infrastructure

ContractorDocs runs on established cloud providers. The app is served by Vercel over HTTPS. Your data lives in a managed PostgreSQL database, authentication service and file storage provided by Supabase, which encrypts stored data at rest and keeps backups.

Payments are processed by our payment provider, so card details are entered on its secure checkout and never touch our servers.

2. Encryption

  • In transit: all traffic to the app and our APIs uses TLS (HTTPS). We send HTTP Strict Transport Security so browsers always use HTTPS.
  • At rest: the database and file storage are encrypted at rest by our infrastructure provider.
  • Gmail tokens: access and refresh tokens for connected Gmail accounts are additionally encrypted by our server code before they are stored, and the database tables that hold them can’t be read from the browser at all.

3. Access control and data isolation

  • Every table that holds your data uses row-level security, so a signed-in user can only read and change their own rows.
  • Subscription and usage fields can only be changed by our server after a verified payment event, never from the browser.
  • Server functions check the caller’s session before doing anything on their behalf, and payment webhooks are verified by signature.
  • Passwords are handled by our authentication provider and stored only as secure hashes. You can also sign in with Google.

Client links. Client-portal and approval links contain long random tokens. Anyone with a link can see the documents it shows, so share links only with the right people. Portal links show client-facing documents only, never internal ones such as expense logs or purchase orders, and you can regenerate a link to invalidate the old one.

Uploaded images. Images that appear on documents or in the forum (for example your logo or job photos) are stored under hard-to-guess URLs that can be opened without signing in, so they display in PDFs, emails and the client portal. Avoid uploading images that contain sensitive personal information.

4. Google and Gmail permissions

When you connect Gmail we ask only for permission to send email on your behalf and to know which address you connected (gmail.send, openid, email). We cannot read, search or delete your email. Emails are sent by our server only when you send them in the app. You can disconnect at any time. See the Privacy Policy for our Google API Services User Data Policy and Limited Use commitments.

5. Application security

  • A strict Content Security Policy and other security headers (X-Content-Type-Options, Referrer-Policy, Permissions-Policy, frame protections) limit what can run on our pages.
  • Values placed into document templates and emails are escaped or sanitized to prevent script injection.
  • App code is bundled at build time. The only external code is the optional receipt-scanning (OCR) engine, a pinned open-source version loaded from a public CDN only when you scan a receipt.
  • Secrets such as API keys live in server-side environment variables, never in the browser.

6. AI requests

AI requests go through our server, which checks your session and plan before calling Google’s Gemini API, so our AI key is never exposed. Only the context needed for your request is sent. Read more in the Privacy Policy.

7. What you can do

  • Use a strong, unique password, or sign in with Google and enable 2-step verification on your Google account.
  • Sign out on shared devices.
  • Share portal links only with the intended client, and regenerate a link if it was sent to the wrong person.
  • Export important documents as PDFs and keep your own records.

8. Reporting a vulnerability

If you believe you’ve found a security issue, please email support@contractordocs.app with the subject “Security report” and enough detail to reproduce it. Please give us a reasonable chance to fix the issue before sharing it publicly, and don’t access or change other users’ data while testing. We appreciate responsible disclosure.