Skip to content

Configure artifact storage

Runs produce files worth keeping: screenshots, renders, logs, reports, and the evidence bundle every merged or blocked backlog round records. SupaCloud keeps them in one content-addressed artifact store. The storage key is derived from the file’s sha256, so the same bytes are stored once per workspace, and the original file name is display metadata only.

Four producers write into the store:

  • a runner streams a file from its own host over the RunnerService.UploadArtifact gRPC stream (lease-fenced, 1 MiB chunks, resumable — see Set up a runner securely);
  • an agent calls the MCP tool artifact.put; the MCP server inside the task container streams the file to POST /api/agent-mcp/artifacts;
  • a desktop tool stores an untruncated binary it lifted from a workstation;
  • the evidence importer stores the evidence-* envelope files a CI run published for the merged commit.

By default the store is local disk under /var/lib/supacloud/artifacts. Mount /var/lib/supacloud as a persistent volume, or every redeploy deletes the artifacts (and the captures and App uploads that live beside them):

services:
supacloud-server:
volumes:
- supacloud-app-data:/var/lib/supacloud
volumes:
supacloud-app-data:

Uploads are staged under <root>/.staging/ on the same volume before they are committed, whichever backend stores the final object. The hub hashes every staged byte again before it commits; a file that does not match its declared sha256 or size is refused and its staging file is deleted.

Variable Default Meaning
SUPACLOUD_ARTIFACT_ROOT /var/lib/supacloud/artifacts Local store root and the staging area for every backend.
SUPACLOUD_ARTIFACT_BACKEND local_disk Instance default backend: local_disk or s3.
SUPACLOUD_ARTIFACT_DAILY_QUOTA_BYTES 10737418240 (10 GiB) Bytes one workspace may upload in any 24 hours — a rate guard on top of the plan limits.
SUPACLOUD_CAPTURE_SERVE_SECRET none HMAC secret (at least 32 bytes) that signs artifact URLs. See Serving.

To give every workspace one bucket the operator owns, set the instance bucket instead of SUPACLOUD_ARTIFACT_BACKEND: see Configure the instance artifact bucket.

A workspace can override the backend in its artifact_storage setting (owners and admins edit it under Settings › Data & sync › Storage), which takes precedence over the environment and the instance bucket:

{
"backend": "s3",
"resource_id": "<uuid of an s3 resource>",
"caps": { "render": 104857600 },
"retention_days": { "log": 14 }
}

Every key is optional. retention_days may also be a single number of days for every class (the form the Storage tab writes).

The Storage tab in Settings, Data & sync: where new artifacts are stored, the stored bytes and this month's downloads against the plan, the bytes per artifact kind, and the workspace override of the store.The Storage tab in Settings, Data & sync: where new artifacts are stored, the stored bytes and this month's downloads against the plan, the bytes per artifact kind, and the workspace override of the store.

The s3 backend stores the committed object in a bucket of any S3-compatible service (MinIO, Hetzner Object Storage, AWS S3). Create an s3 resource in the workspace with:

Field Meaning
endpoint Base URL of the service, for example https://fsn1.your-objectstorage.com.
region Signing region, for example us-east-1 for MinIO.
bucket An existing bucket.
access_key_id The access key.
secret_access_key Kept in the resource’s secret bag (vault), read per request, never in the environment.

Then point the workspace’s artifact_storage at it ("backend": "s3", "resource_id"). Requests are signed with AWS Signature Version 4 and use path-style addressing ({endpoint}/{bucket}/{key}), which MinIO requires and Hetzner accepts. A download link is a presigned GET that expires after at most one hour. Every artifact remembers the Resource it was written through, so switching the workspace to another Resource keeps the older files readable.

If the resource cannot be resolved, the store falls back to local disk and logs a warning; the upload is not lost.

Every upload declares a kind. The declared size is checked against the kind’s cap before the first byte is accepted, and a stream that sends more than it declared is cut off.

Kind Cap Retention class
screenshot 32 MiB capture
render 256 MiB capture
log 64 MiB log
report 32 MiB evidence
bundle 64 MiB evidence
generated_media 256 MiB generated_media
other 64 MiB capture

A workspace’s caps setting can only lower a cap, never raise it. An agent may make at most 50 artifact.put uploads per task.

Only these media types are accepted: image/png, image/jpeg, image/webp, image/gif, image/svg+xml, video/mp4, video/webm, audio/mpeg, audio/ogg, audio/wav, audio/mp4, audio/aac, audio/flac, application/json, application/zip, application/gzip, application/pdf, text/plain, text/markdown, text/csv, text/html, model/gltf-binary, the PowerPoint and Word formats of an artifact export (application/vnd.openxmlformats-officedocument.presentationml.presentation, application/vnd.openxmlformats-officedocument.wordprocessingml.document), application/vnd.supacloud.capture+json (the visual gate’s capture manifest, see Configure visual-verify gates), application/c2pa (a C2PA manifest the media module lifted from a generated image) and application/octet-stream.

Only the media module writes generated_media: an agent or runner upload of that kind is refused, and every such artifact has a provenance record (see Set up generative media).

Each plan limits the stored volume and the monthly download volume. An upload that would exceed the storage limit is refused with an error naming the limit.

Plan id artifacts.storage_mb artifacts.egress_mb_per_month artifacts.retention_days
free 1000 3000 30 days
pro 25000 75000 90 days
team 250000 750000 180 days
enterprise, legacy unlimited unlimited by contract

Files that a project credential publishes (see Publish artifacts from a local agent) are additionally limited per project by artifacts.project_files.max: 50 distinct files on free, pro, team and legacy, unlimited on enterprise. A plan without the key has the same 50. The key accepts a non-negative whole number or unlimited, set on the plan or as a workspace override.

The egress limit is three times the storage limit, which keeps downloads within the free egress allowance of a typical object store. The instance-wide SUPACLOUD_ARTIFACT_DAILY_QUOTA_BYTES stays a separate rate guard on top of these plan limits: it caps what one workspace uploads in any 24 hours, whatever its plan.

Class Default without a plan retention Kinds
evidence 400 days report, bundle
capture 90 days screenshot, render, other
log 30 days log
generated_media 90 days generated_media

A plan’s retention is the default of every class. The class defaults above apply only on a plan without one (enterprise, legacy). A workspace’s artifact_storage.retention_days.<class> setting can only shorten a plan’s default for that class; a longer retention is a plan upgrade, not a setting. On a plan without a retention the setting is the contract value. An hourly sweep deletes expired artifacts, with two exceptions: a pinned artifact is never deleted, and an evidence artifact of a backlog item with an open pull request is never swept while that pull request is open. The same sweep deletes staging files older than 24 hours, left behind by uploads that were never resumed.

  • GET /api/artifacts/{id} serves the bytes to a signed-in member of the owning workspace.
  • GET /api/artifacts/signed/{token} serves them to whoever holds a signed URL, such as the one artifact.get returns. The token is bound to the workspace and the artifact and expires after at most one hour.

On the s3 backend, artifact.get returns the provider’s presigned link. On the local backend the hub serves the download itself, through a token signed with SUPACLOUD_CAPTURE_SERVE_SECRET, the same secret that signs capture URLs. Without that secret, no hub-served signed URL is issued: the link fails closed rather than being served unsigned.

Only PNG, JPEG, WebP and GIF are shown inline. Every other type, SVG and HTML included, is sent as an attachment with X-Content-Type-Options: nosniff and a sandboxing Content-Security-Policy, so a stored file can never run in the SupaCloud origin. On an S3 backend the object itself is stored with Content-Disposition: attachment and every presigned link signs the same override, so a download link never opens such a file as a page on the bucket’s domain either.

After a confirmed merge or a gate block, SupaCloud records one evidence bundle per backlog item, round and head commit. Its manifest ("schema": "supacloud.evidence/v1") lists the gate results, the CI checks, the artifacts of the item’s tasks and the imported CI evidence files. It is itself stored as a bundle artifact in the evidence class. Read it with GET /api/evidence/{bundle_id}, the project list GET /api/projects/{id}/evidence?item=<uuid>, the Management API, or the MCP tool evidence.get.

A share link with the role Can comment or Can edit lets a visitor without an account comment under a name they choose. Two fixed limits apply to such a guest. They are counted per share link and client address, in the database, so every replica counts against the same budget:

Limit Per link and address Per link, all addresses Window
Comments and replies 20 120 60 seconds
Names refused because they belong to a workspace member 3 30 15 minutes
  • A guest over a limit gets 429 Too Many Requests and nothing is written.
  • A refused name (422, guest_name_taken) tells the visitor that the name belongs to a member. The tight second limit keeps that from being used to read the member list: once it is reached, every guest comment from that address through that link answers 429 before the name is looked at, whether the name is a member’s or not.
  • The per-link limit on refused names protects against a visitor who changes addresses. Its price: 30 refused names from different addresses stop guest comments on that one link for up to 15 minutes. Members and signed-in people are never counted and keep commenting.
  • The client address is the one the server resolves for all its rate limits. Behind a reverse proxy, set SUPACLOUD_TRUSTED_FORWARDING, or every visitor shares the proxy’s address and one budget.
  • If the counters cannot be read or written, guest comments are refused rather than let through.

The limits are not configurable. The password of a password link has its own limit (8 attempts per link and address per minute, 40 per link).

  1. Upload one file: an agent’s artifact.put, or a runner upload.

  2. On the server host, list the store:

    Terminal window
    docker exec supacloud-server ls /var/lib/supacloud/artifacts
  3. Redeploy, then list it again and open GET /api/artifacts/{id}. The files must still be there and the request must return 200.