Skip to content

Artifacts

Hearth keeps a screen recording of every headed browser session, and a recording and a device log of every device session, in an S3-compatible bucket. Only the gateway writes to it: browser pods and device agents upload through the gateway.

What is stored

Session Artifacts
Playwright, CDP, Selenium (headed) video.mp4: H.264, 1280 x 800, 10 frames per second, recorded from the pod's virtual screen with the mouse pointer
Playwright or Selenium, headless Nothing
Appium, Android video.mp4 (the device's own screenrecord), device.log (logcat -d)
Appium, iOS simulator video.mp4 (simctl io recordVideo, H.264), device.log (log show for the session's time span)

The browser recording is a fragmented MP4, so it stays playable even when a pod is killed before ffmpeg finishes. Very short sessions (under about 1.5 seconds) are padded so the file holds a frame.

Not built yet

Server-side Playwright traces, HAR files (with credential masking), console and driver logs and screenshots are planned. Today, ask Playwright for them in your test (context.tracing.start() / stop({ path }), recordHar, page.screenshot()); they are written on the client side.

Where it is stored

Objects are keyed by team, day and session:

<bucket>/<team>/<yyyy-mm-dd>/<session id>/video.mp4
<bucket>/apps/<sha256>                          # uploaded apps, shared by content

The browser pod uploads its files when the session ends; a device's agent uploads them while it resets the device, so they appear a little after the session ends. Each artifact may be up to 8 GiB. The session record lists the artifact names and the prefix:

curl -s -H "Authorization: Bearer $HEARTH_KEY" "$HEARTH_URL/api/sessions/<id>"
{"id": "...", "state": "done", "artifacts": ["video.mp4"], "artifactPrefix": "checkout/2026-11-30/...", "...": "..."}

Download through the gateway, which checks the team and streams the object:

curl -s -H "Authorization: Bearer $HEARTH_KEY" -o video.mp4 \
  "$HEARTH_URL/api/sessions/<id>/artifacts/video.mp4"

Videos and images are served inline, everything else as a download, always with X-Content-Type-Options: nosniff. The web UI plays the recording on the session page. Clients, pods and agents never get direct bucket access; the gateway holds the only storage credentials.

Not built yet

Signed, short-lived artifact URLs are planned. Today artifacts are streamed by the gateway.

Retention

  • Session records (state, timings, error, artifact names) live in Redis for 7 days, then disappear from the API and UI.
  • Objects in the bucket are never deleted by Hearth. Set a lifecycle rule on the bucket to expire them, for example after 30 days. Keep apps/ longer than session folders, or upload apps again when you need them. After a session record expires, its objects are still in the bucket but no longer reachable through the gateway.

The bundled store

A fresh install runs SeaweedFS (Apache-2.0) as a single pod serving the S3 API, with a PersistentVolumeClaim of 20 GiB, and a Job that creates the bucket. Credentials are generated once into the Secret <release>-s3 and reused on upgrades.

storage:
  bundled:
    enabled: true
    size: 20Gi
    storageClass: ""      # your cluster's default

It is meant to make a fresh install work. It is one replica with no backup and no lifecycle rules; for a farm you depend on, use your own bucket.

Your own S3, GCS, R2 or MinIO

Turn the bundled store off and point Hearth at a bucket that already exists:

storage:
  bundled:
    enabled: false
  s3:
    bucket: my-hearth-artifacts
    endpoint: ""                  # empty = AWS S3
    region: eu-west-1
    credentialsSecret: hearth-s3-credentials   # or "" for workload identity

The credentials Secret holds AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY. Create it in the release namespace before installing or upgrading; the chart reads it at render time and copies the values into the Secret the gateway and browser pods load.

kubectl -n hearth create secret generic hearth-s3-credentials \
  --from-literal=AWS_ACCESS_KEY_ID=... --from-literal=AWS_SECRET_ACCESS_KEY=...

Hearth talks the S3 API with path-style requests when endpoint is set, and plain HTTP is allowed for http:// endpoints:

Store endpoint region Credentials
AWS S3 "" the bucket's region An access key pair
Google Cloud Storage https://storage.googleapis.com auto HMAC keys of a service account
Cloudflare R2 https://<account id>.r2.cloudflarestorage.com auto An R2 API token's access key and secret
MinIO or another S3-compatible server its URL, e.g. http://minio.minio.svc:9000 us-east-1 An access key pair

These are the settings each store documents for S3 API access. Hearth's end-to-end tests cover only the bundled store; tell us in an issue how your store behaves.

Leaving credentialsSecret empty makes Hearth look for credentials the usual AWS way (environment, web identity, instance metadata). The chart does not yet let you set a service account for the gateway, so workload identity needs extra work and is untested. Use a key pair for now.

Only the gateway talks to the store, so a store at a private address (MinIO in the cluster, a VPC endpoint) needs no NetworkPolicy change.

Without any bucket (storage.bundled.enabled: false and storage.s3.bucket: ""), sessions still run but nothing is kept, and app upload answers 503 no_storage.