Skip to content

Security

What Lermy stores, and what stays in your cloud

Lermy never sees your source code, your agents never see storage keys, and you can start on Lermy-hosted storage or keep every file in your own private bucket.

How data flows

Uploads go straight from your agent to your bucket. Lermy hands out short-lived permission, checks the files and keeps the record.

Lermy upload flow. Your CI or machine asks Lermy for an upload grant with its project key, and the agent receives only the 30-minute grant and 10-minute upload URLs. The agent uploads bytes straight to the staging folder of your bucket. Lermy verifies and seals each file into the sealed folder, and streams files to viewers after checking access.Your CI or machineTrusted runner keeps theproject integration keyCoding agent gets only a30-minute upload grantLermyIssues 10-minute upload URLsVerifies and seals each fileKeeps run details in PostgreSQLChecks access on every viewYour bucketstaging/ receives uploadssealed/ keeps the evidenceBoth under the project'sown folderKey requests a grantGrant and URLsVerify and sealStream to viewersThe agent uploads bytes straight to staging/ in your bucket
  1. Your CI or machine. The trusted runner keeps the project integration key and asks Lermy for an upload grant. The coding agent gets only that grant, which expires after 30 minutes and covers one pull request and commit.
  2. Lermy. Lermy issues staging upload URLs that expire after 10 minutes, verifies and seals each file, stores run details in PostgreSQL, and checks access on every media request.
  3. Bucket storage. The agent uploads bytes straight to the staging folder of your Lermy-hosted prefix or your own bucket. Sealing writes the verified copy to the sealed folder under the project's own prefix.

What Lermy stores, and what stays in your bucket

Where each kind of data is kept
WhereWhat
Lermy's database
  • Account, organization and membership records
  • Project and repository names, plus optional app origins
  • Pull request numbers and titles, and commit SHAs
  • Run details: state, summary, review focus, flow and step names, and captions
  • Change highlights and Browser check results
  • Client and stakeholder updates: draft copy, recipient labels, frozen revisions, and uploaded brand logos (WebP)
  • Review and recipient feedback: pinned comments, display names, review decisions, reactions, acknowledgements, and HMAC-hashed recipient cookie identifiers
  • Integration keys and upload grants, stored only as SHA-256 hashes
  • Update share link tokens (hashed for lookup and encrypted with AES-256-GCM so owners can copy active links) and bring-your-own storage credentials (encrypted with AES-256-GCM)
  • Billing identifiers. Card details stay with Stripe
Bucket storage (Lermy-hosted or your own)
  • Every screenshot and video, staged and sealed
  • Short-lived probe objects from the connection check, deleted when the check ends
Never
  • Your source code
  • Repository access or a GitHub App
  • GitHub tokens
  • Storage keys handed to agents

How bytes pass through Lermy

  • When someone views evidence, Lermy checks their access, then streams the bytes from Lermy-hosted storage or your bucket. It never redirects a viewer to a signed bucket URL.
  • To seal a run, Lermy's worker reads each staged file into a temporary folder, checks its size, SHA-256 checksum, file type and video codec, writes the sealed copy to storage, and deletes the temporary folder.
  • Lermy keeps resized WebP previews of each screenshot on its own server disk so pages load quickly: a display copy up to 1600 px wide and thumbnails of 640 × 400 and 240 × 150 px, keyed by artifact and checksum. They are not removed on a timer. They are deleted when the run is permanently removed, 7 days after it is deleted or expires, and access is checked before any preview is served.

Least-privilege storage access

Give Lermy a key for one private bucket and nothing else. Lermy writes only under its own prefixes and never lists your other buckets or changes bucket settings.

AWS S3

Attach this IAM policy to the user or role whose key you give Lermy. Replace YOUR-BUCKET-NAME with your bucket.

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "LermyEvidenceObjects",
      "Effect": "Allow",
      "Action": [
        "s3:GetObject",
        "s3:PutObject",
        "s3:DeleteObject",
        "s3:DeleteObjectVersion"
      ],
      "Resource": [
        "arn:aws:s3:::YOUR-BUCKET-NAME/organisations/*",
        "arn:aws:s3:::YOUR-BUCKET-NAME/lermy-probes/*"
      ]
    },
    {
      "Sid": "LermyEvidenceListing",
      "Effect": "Allow",
      "Action": ["s3:ListBucket", "s3:ListBucketVersions"],
      "Resource": "arn:aws:s3:::YOUR-BUCKET-NAME",
      "Condition": {
        "StringLike": { "s3:prefix": ["organisations/*", "lermy-probes/*"] }
      }
    }
  ]
}
  • s3:ListBucket stays in the policy because without it S3 answers a missing object with 403 instead of 404, which hides real upload errors.
  • A bucket encrypted with SSE-KMS also needs kms:GenerateDataKey and kms:Decrypt on that key.
  • Object Lock retention on the bucket blocks Lermy from permanently deleting expired or deleted evidence.

Cloudflare R2

  1. In the Cloudflare dashboard, open R2 object storage and select Manage next to API Tokens.
  2. Create an account API token with the Object Read & Write permission.
  3. Under the token's bucket scope, apply it to specific buckets only and choose your evidence bucket.
  4. Optionally, limit the token to your own client IP ranges.
  5. In Lermy, use the S3 endpoint https://<account-id>.r2.cloudflarestorage.com and the region auto.

Backblaze B2

  1. Create an application key restricted to your evidence bucket, with no file name prefix. Lermy writes under organisations/ and its connection check writes under lermy-probes/.
  2. Give it the listBuckets, listFiles, readFiles, writeFiles and deleteFiles capabilities.
  3. In the web console instead: App Keys, then Add a New Application Key, allow access to this bucket only, with Read and Write access.

With the B2 command-line tool

b2 key create --bucket YOUR-BUCKET-NAME lermy-evidence listBuckets,listFiles,readFiles,writeFiles,deleteFiles

More on endpoints and regions in Storage setup

Revoke access fast

Every credential Lermy issues can be withdrawn on its own, from the workspace or the CLI.

  1. Project integration key

    In the workspace, open the project's Integration tab and select Revoke key. The key stops working at once, and so does every upload grant from the runs it created, because each grant request checks that its run's key is still active.

    lermy keys list
    lermy keys revoke <key-id>
  2. Upload grants and staging URLs

    Upload grants expire after 30 minutes and staging upload URLs after 10. Neither can change evidence that is already sealed.

  3. CLI sessions and devices

    In Settings, open Your security, then Devices and sessions, and revoke a device or every other session.

    lermy auth revoke-session <session-id>
    lermy auth revoke-other-sessions
    lermy auth logout
  4. Storage credentials

    Rotate a bucket key in Settings, Storage, with Verify and rotate. As a kill switch, delete the key at your provider: Lermy loses access to your bucket at once, and original files stay unreachable until you save a new key. Previews Lermy already cached keep showing to people who can open the run.

    lermy storage rotate <connection-id> --access-key-id ... --secret-access-key-stdin
  5. Public run links

    An owner can switch a run back to private, and media requests for it are denied from the next request. Files someone already downloaded cannot be recalled.

  6. Client and stakeholder update links

    An owner can revoke any shared update link from the update's Share panel. Subsequent page, media, logo, and feedback requests for that link immediately return 404. Sharing an update never makes the underlying private PR runs public.

  7. Whole project

    Deleting a project revokes all of its keys and upload grants. Restoring it within 7 days brings the evidence back, but you create new keys before uploading again.

Isolation and encryption

  • PostgreSQL row-level security is enabled and forced on tenant tables.
  • The database roles the app and worker sign in with have no superuser rights and cannot bypass row-level security.
  • Each transaction sets its own tenant scope, so one request cannot read another organization's rows.
  • Integration keys and upload grants are stored only as SHA-256 hashes; update link tokens are looked up by SHA-256 hash and encrypted at rest with AES-256-GCM.
  • Bucket credentials are encrypted with AES-256-GCM, using a key held outside the database.
  • The connection check refuses a bucket that allows anonymous reads.
  • Media responses are private and never stored in shared caches.
  • You can sign in with a passkey.
  • Every page is served over HTTPS with HSTS.
  • Row-level security is defense in depth, not the only control: every route also checks membership and role.

CLI install integrity

The install scripts are short and readable. Inspect them before you run them, or download and verify a release yourself.

What the installer does

  1. Detects your operating system and CPU.
  2. Downloads the archive and SHA256SUMS from lermy.com/downloads/cli.
  3. Verifies the archive's SHA-256 checksum and stops on a mismatch.
  4. Installs to ~/.local/bin, or %LOCALAPPDATA%\lermy\bin on Windows, without sudo.
  5. On macOS and Linux, prints a PATH hint instead of editing your shell profile. On Windows, adds the folder to your user PATH.
  6. Checks a local lermy-evidence SKILL.md and updates it when it is out of date.

Environment variables

LERMY_CLI_VERSION
Install a specific version instead of the latest.
LERMY_INSTALL_DIR
Install somewhere other than the default folder.
LERMY_FORCE_INSTALL
Set to 1 to reinstall even when you are up to date.
LERMY_SKILL_PATH
Point to the SKILL.md the installer checks.
LERMY_INSTALL_BASE_URL
Download from a mirror instead of lermy.com.

Checksums come from the same origin as the archive, over HTTPS. They catch a corrupted or tampered download in transit, but they are not a signature, and Lermy releases are not signed today.

Report a vulnerability

Email hello@lermy.com with what you found and how to reproduce it. Our contact details are also in security.txt.