Security

Your code stays
on your machines.

Comity needs as little of your code as possible. Here's how the hosted service handles your data, who we rely on, and how to report a problem.

Last reviewed

Tyler's Claude Code edits src/lib/user.ts; the file contents and diff stay on the machine, and only metadata (repo, branch, path, symbols) is sent to api.comity.so, encrypted.

At a glance

Every line here was checked against Comity's code on the review date.

  • Your code stays on your machines: the CLI sends metadata, never file contents or diffs
  • Tenant isolation with PostgreSQL row-level security, forced on every org table
  • Per-org AES-256-GCM envelope encryption of plans, messages, status notes and secrets
  • metadata_only mode, switched on or off by org owners in the dashboard
  • Single sign-on (OIDC) with Okta, Microsoft Entra ID, Google Workspace or Auth0, with optional enforcement
  • Fail open or fail closed: your policy decides what agents do if Comity can't be reached
  • Audit log in the dashboard, with CSV export and an events API
  • Tokens stored only as hashes, and never written into your repositories
  • Signed webhooks: HMAC-SHA256 over a timestamp and the body
  • Self-serve export and deletion of your account and your org's data
  • Self-hosting for Enterprise, deployed together with our team
  • A website with no third-party scripts and no tracking cookies

How it's protected

What you control, what we encrypt, and what gets recorded.

Choose how much leaves the machine. By default the CLI also sends the text of changed signatures, for sharper contract warnings. In metadata_only, only their hashes leave, and switching deletes the text already stored.

Data modes →
Settings → Coordination with the Metadata only switch turned on.

Every org gets its own key. Plans, messages, status notes and secrets are encrypted under a data key unique to your org, and every request runs under PostgreSQL row-level security, scoped to your org.

Encryption and isolation →
What Comity encrypts under your org's key, and the identifiers it keeps searchable.

Sign in your way, and see who did what. Business and Enterprise orgs sign in with any OpenID Connect provider and can require it on verified domains. Blocks, overrides and settings changes land in the audit log, with CSV export.

Single sign-on →
An Okta OpenID Connect sign-in next to the org's audit log with a Download CSV button.

The details

Accounts, outages, webhooks, hosting and reviews.

Accounts and credentials

Passwords are hashed with scrypt. Session cookies are HttpOnly, Secure and SameSite=Lax. CLI and API tokens are stored only as hashes.

If Comity can't be reached

Fail open by default, so agents keep working. Or fail closed per repo: edits wait until Comity answers, with an emergency override that's reported to owners.

Signed webhooks

Every outgoing webhook is signed with HMAC-SHA256 over a timestamp and the body, and goes only to HTTPS endpoints. Private network addresses are blocked.

Infrastructure

AWS in the United States. The database isn't reachable from the internet, is backed up daily, and backups are kept for 14 days.

Self-hosting

Enterprise teams can run Comity as one Docker Compose stack in their own infrastructure, deployed together with our team.

Self-hosting docs →

Security reviews

We'll complete your security questionnaire and walk your team through the architecture. No SOC 2 audit yet; ask us where it stands.

hello@comity.so →

Subprocessors

The companies that process data on our behalf to run the hosted service.

SubprocessorPurposeLocation
Amazon Web ServicesCloud hostingUnited States
CloudflareWebsite delivery, DNS and the Turnstile bot checkGlobal network; United States company
ResendAccount emailsUnited States
GitHubSign-in, and the GitHub App if your org connects oneUnited States
StripePaymentsUnited States

Slack, Notion and webhook endpoints receive or share data only when your org connects them, and are chosen by you. We'll update this list before adding a subprocessor that processes customer personal data; email us to be notified of changes.

Responsible disclosure

Found a vulnerability? Tell us first.

Email hello@comity.so with the subject "Security report" and the steps to reproduce it. We'll acknowledge your report within 3 business days and keep you updated until it's fixed.

Report a vulnerability →

While you investigate, please

  • Use only accounts and orgs you own, and don't access, change or delete other users' data.
  • Avoid degrading the service: no denial-of-service, spam or automated scanning at high volume.
  • Give us reasonable time to fix the issue before telling anyone else.

We won't pursue legal action against good-faith research that follows these guidelines. We don't currently run a paid bug bounty.

Try Comity now.

Start free →

npm i -g comity-cli && comity login && comity init