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.
- 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.
- 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.
- 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 | What |
|---|---|
| Lermy's database |
|
| Bucket storage (Lermy-hosted or your own) |
|
| Never |
|
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:ListBucketstays 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:GenerateDataKeyandkms:Decrypton that key. - Object Lock retention on the bucket blocks Lermy from permanently deleting expired or deleted evidence.
Cloudflare R2
- In the Cloudflare dashboard, open R2 object storage and select Manage next to API Tokens.
- Create an account API token with the Object Read & Write permission.
- Under the token's bucket scope, apply it to specific buckets only and choose your evidence bucket.
- Optionally, limit the token to your own client IP ranges.
- In Lermy, use the S3 endpoint https://<account-id>.r2.cloudflarestorage.com and the region auto.
Backblaze B2
- 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/.
- Give it the listBuckets, listFiles, readFiles, writeFiles and deleteFiles capabilities.
- 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,deleteFilesMore 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.
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>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.
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 logoutStorage 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-stdinPublic 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.
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.
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
- Detects your operating system and CPU.
- Downloads the archive and SHA256SUMS from lermy.com/downloads/cli.
- Verifies the archive's SHA-256 checksum and stops on a mismatch.
- Installs to ~/.local/bin, or %LOCALAPPDATA%\lermy\bin on Windows, without sudo.
- On macOS and Linux, prints a PATH hint instead of editing your shell profile. On Windows, adds the folder to your user PATH.
- 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.