Security & privacy
LineTrail is self-hosted and metadata-first. Your data stays in your own PostgreSQL database, and only metadata and line ranges leave a developer machine. This page is written for security and compliance reviewers.
At a glance
Section titled “At a glance”| Area | Summary |
|---|---|
| Deployment | Self-hosted with Docker Compose, data in your PostgreSQL. Managed cloud is coming soon. |
| Never collected | Source code and diffs, prompts, AI responses and transcripts, commit messages |
| Authentication | OpenID Connect for people; scoped organization service tokens for CLI and CI |
| Roles | Viewer, member, admin, per organization |
| Telemetry | None. No analytics, crash reporting or phone-home in the CLI, API or dashboard |
| Retention | Nothing is deleted automatically by default; opt-in retention per data type |
What is collected
Section titled “What is collected”From a repository (CLI or CI)
- Repository identity: a repository key, the remote URL with credentials removed, and the checkout folder name.
- Per sync run: branch name, head commit, CLI version and the exclusion-rules id. Branch names can contain user names.
- Per commit: commit id, parents, author and committer timestamps, file paths, added and deleted line counts, and line ranges with their origin (AI, observed human or unknown), tool, model and session id.
- Commit author name and email, used only for explicit contributor mapping inside your organization.
--omit-author-identityturns this off.
From pull requests: title (--omit-pr-title leaves it out), state, source and target branches, commit ids and the pull request URL.
Usage events (off by default): sent only with linetrail usage collect --upload. Tool and version, model, session and message ids, timestamps and token counts. An actor email and session-to-commit links are each a separate opt-in.
Sign-in: the email and name your identity provider returns, for display only. They grant nothing.
What is never collected
Section titled “What is never collected”- Source code and diff text. The CLI reads the diff locally and keeps only line numbers and counts. No database table has a column for file content.
- Prompts, responses and transcripts of AI tools, including thinking, tool input and output.
- Commit messages. Cloud-agent recognition reads commit markers in memory and uploads only the matched rule id, tool and any stated model.
- From GitHub, GitLab and Bitbucket: pull-request descriptions, reviewers, comment text, user names and logins, commit messages and patch text.
- Telemetry of any kind from the CLI, API or dashboard.
Where data lives and what leaves the host
Section titled “Where data lives and what leaves the host”- All data is stored in your PostgreSQL, in the Docker Compose stack you run. Ports bind to
127.0.0.1by default. - The CLI connects only to your LineTrail API and to the source-control host you configure.
- The API connects only to your OIDC issuer (redirects disabled). The dashboard connects only to the API.
- If an admin turns on AI insights & chat, the server also calls the model endpoint you configure, with minimised metric records only.
The capture hooks on developer machines are a separate, pinned component installed by linetrail setup with your consent. Setup verifies the download’s SHA-256 checksum and applies the component’s privacy settings.
Authentication and secrets
Section titled “Authentication and secrets”- Every API call is authenticated: a person’s session (OIDC) or an organization service token.
- People sign in with OpenID Connect (Authorization Code with PKCE, confidential client). Without a complete OIDC configuration, browser sign-in is disabled; a partial configuration stops the API from starting.
- Session and service tokens are stored only as SHA-256 hashes. Service tokens are shown once.
- Service tokens carry
ingestand/orreadscopes, an optional repository allowlist and an optional expiry, and can be revoked. A token can never administer anything. - Identity-provider tokens are discarded after sign-in. Authorization codes, client secrets, provider tokens, session tokens and cookies are never logged or placed in URLs.
- Session cookie: HttpOnly and SameSite=Lax;
Securewith the__Host-prefix when the dashboard URL is https. Writes are CSRF- and Origin-checked. Sessions last 8 hours by default. - Stored source-control and AI provider keys (server-side sync and AI) are encrypted to the sync worker’s public key. The API holds no private key and refuses to start if one is in its environment.
Roles and access
Section titled “Roles and access”| Role | Can |
|---|---|
| Viewer | Read analytics. Contributor names and person-level details are hidden. |
| Member | Also see raw commit authors, the members list and identity mappings. |
| Admin | Also manage members, teams, mappings, service tokens and all settings. |
- Signing in grants nothing by itself. An operator grants the first admin; after that, admins manage access in Settings. Groups from your identity provider can map to roles at each sign-in.
- The last admin can’t be removed or demoted. Permission changes apply on the next request.
- Records of other organizations answer not found and never appear in lists or counts.
- Source-control permissions are not mirrored. Who can read a repository in LineTrail follows organization roles and service-token allowlists, not GitHub, GitLab or Bitbucket permissions.
- People mapping is explicit and manual. Admins create contributors and their email aliases. A login is never matched to a Git author automatically, and mapping never changes attribution.
Small groups are hidden
Section titled “Small groups are hidden”For viewers and service tokens, any team, group or count with fewer than 3 mapped contributors is merged into a group labelled as hidden for your role, or shown as fewer than 3. Totals still add up. Members and admins see the full detail.
- This is not formal anonymisation: comparing narrowly filtered views can still single out small groups.
- There are no per-person leaderboards. Analytics groups never rank people.
Retention and deletion
Section titled “Retention and deletion”- Nothing is deleted automatically by default. Opt-in retention, in days, is available for sync runs, usage events and source-control sync runs, and is applied hourly. Commits and pull requests have no age-based retention.
- Author identities: admins can set a retention period, or clear author names and emails, in Settings → Privacy, with a dry run first and an audit entry.
- Admins can delete individual commit, pull-request, contributor or team records in Settings → Privacy. Operators can delete a repository, an organization or a sign-in identity with server commands.
- A later sync records deleted commits and pull requests again, because the source is your repository.
- Sessions and sign-in states are purged automatically.
- An admin-only settings audit log records source-control connection and exclusion changes and privacy actions, as metadata only.
Exclusions
Section titled “Exclusions”Admins can add central exclusion rules per repository or for the whole organization. Excluded paths are never counted. Built-in exclusions cover binaries, vendored code, build output, lock files and generated files.