LaneshotDocs

Search the docs

Find a page or a section

Open Laneshot

Your organization

Security

How Laneshot protects captures, credentials, and your network, and what to configure when you host it.

Captures can hold sensitive data: screens, console output, and network traffic. This page describes what Laneshot does to protect it, and what you're responsible for when you host it.

Data stays on your infrastructure

A self-hosted Laneshot stores everything in your PostgreSQL database and your storage, local or S3. Laneshot sends data to third parties only when you set it up:

Destination When
GitHub and issue trackers Someone files a card, or Laneshot checks an issue's state.
Backend tools such as Sentry or Datadog Someone opens a trace's backend data.
Your speech-to-text API A video with audio is uploaded and TRANSCRIPTION_API_URL is set. Point it at a self-hosted Whisper server to keep audio in your network.
Webhook and MCP servers An automation runs.
AI assistants such as Claude Someone shares a public link with them.

Redaction at capture time

The browser extension removes credentials before data leaves the page, and the server applies the same rules again when it receives events, in case a client skipped a rule or predates it.

Data What's redacted
Request and response headers Authorization, Proxy-Authorization, Cookie, Set-Cookie, X-API-Key, X-Auth-Token, X-CSRF-Token, X-XSRF-Token
URL query parameters Parameters whose name looks like a secret
JSON and form bodies Fields whose name looks like a secret, at any depth
Backend span and log attributes Attributes whose name looks like a secret

A name "looks like a secret" when it contains, in any case, pass (as in password or passphrase), secret, token, apikey (also api_key or api-key), authorization, creditcard or credit_card, cardnumber or card_number, cvv, cvc, or ssn. Values are replaced with [redacted].

Instant replay masks every input field at the source, so typed values never enter the buffer. Elements marked data-laneshot-block or data-private are left out of replays entirely, and the text of elements marked data-laneshot-mask is masked:

<section data-private>Patient record</section>
<span data-laneshot-mask>maya@acme.com</span>

Encryption

At rest

Credentials that Laneshot must use later are encrypted with AES-256-GCM, with a key derived from ENCRYPTION_KEY and a random IV per value:

  • GitHub tokens
  • Issue tracker connections
  • Backend connections
  • Automation actions, which can hold signing secrets and authorization headers

The GCM tag makes tampering detectable: a modified value fails to decrypt instead of producing garbage.

Captures, recordings, and the database itself aren't encrypted by Laneshot. Use your platform's disk or bucket encryption, such as encrypted volumes, S3 server-side encryption, or encrypted PostgreSQL storage.

In transit

Serve Laneshot over HTTPS. The extension, the CLI, and MCP clients send API tokens on every request, so they must not travel in clear text. See Deploy with Docker.

Tokens

Laneshot never stores a bearer token in a form that can be used. Tokens are 32 random bytes, and only their SHA-256 hash is kept. Each kind has a recognizable prefix, which makes leaked tokens easy to spot with secret scanners:

Prefix Purpose Revoked from
lsh_ API tokens for the extension, CLI, and MCP Account settings
lsh_ingest_ OpenTelemetry ingest keys Project Settings, Backend
share_ Public links to a trace The trace's Link options
rec_ Recording links for people without an account Project Settings, Recording links
hook_ Incoming webhook addresses of automations Deleting the automation

API tokens act as their owner, and stop working when the owner is deactivated.

The extension accepts an API token only from the Laneshot address the person chose to connect to, and only in a page's top frame, so another site can't plant a token.

Access control

Every page, API route, server action, and MCP tool checks the caller's role in the project. See Members and roles. Denied reads answer as if the trace didn't exist, so IDs can't be probed.

Recordings and event logs are never served from public bucket URLs. They stream through Laneshot, which checks access on each request.

A public link lets anyone who has it watch a capture without an account.

  • Only the capture's author and the organization's owners and admins can create or remove one.
  • Links are unguessable tokens, and removing a link invalidates it immediately.
  • Backend data is left out unless the link includes it. See Sharing and privacy.
  • Public pages and their context.md reports ask search engines not to index them.

Recording links expire after the period you choose, between 1 and 365 days, and stop working when the person who created them is deactivated.

Replays are sandboxed

An instant replay rebuilds the recorded page's DOM. A malicious page, or a crafted upload, could contain scripts. Replays are rendered in a sandboxed iframe that allows no scripts, so recorded code never runs in Laneshot, and interaction with the replayed page is disabled.

Comments and card descriptions are rendered as Markdown with raw HTML ignored, so they can't inject scripts either.

Outbound requests to addresses people enter

Addresses that people type in can't reach private networks: automation webhooks and MCP servers, self-hosted issue trackers (Jira Data Center, GitLab, Azure DevOps Server), custom backend telemetry endpoints, and import downloads. This prevents server-side request forgery against internal services and cloud metadata endpoints.

  • Laneshot resolves each address before calling it, and refuses localhost, cloud metadata host names, and private, loopback, link-local, carrier-grade NAT, and multicast ranges, including the IPv6 forms that lead to them (IPv4-mapped, NAT64, and 6to4).
  • It checks the address again when the connection opens, so a DNS server that changes its answer in between (DNS rebinding) is refused too.
  • Every redirect is checked the same way, and credentials aren't forwarded when a redirect leads to another host.

Set ALLOW_PRIVATE_NETWORK_REQUESTS=true only if your trackers or telemetry run on a private network and everyone who can configure them is trusted with internal access. See Automations.

Signatures

Direction Header Algorithm
GitHub to Laneshot X-Hub-Signature-256 HMAC-SHA256 with GITHUB_WEBHOOK_SECRET, compared in constant time. Unsigned deliveries are refused.
Laneshot to your webhooks X-Laneshot-Signature HMAC-SHA256 of the body with the action's signing secret. Verify it.

Your checklist

  • Serve Laneshot over HTTPS only, with APP_URL set to the HTTPS address.
  • Set a strong POSTGRES_PASSWORD, and keep the database off the public network.
  • Back up /data/secrets.json, or your ENCRYPTION_KEY, with the database.
  • Set a retention period with TRACE_RETENTION_DAYS or per project.
  • Restrict Google sign-in with GOOGLE_ALLOWED_DOMAIN, and deactivate people when they leave.
  • Leave ALLOW_PRIVATE_NETWORK_REQUESTS off unless you need it.
  • Keep Laneshot up to date. Migrations run on boot.

Report a vulnerability

Report vulnerabilities privately through Security, Report a vulnerability on the GitHub repository. Don't open a public issue. Include the steps to reproduce and the impact you expect. The maintainers aim to reply within a few working days.

We're especially interested in:

  • Access to another person's traces, projects, or tokens
  • Sensitive data that escapes redaction
  • Weaknesses in the extension's connect flow or content scripts
  • The public recording-link and share-link endpoints