Your bucket, your key
Recordings are written to a bucket you own, encrypted with a KMS key in your AWS account that you let Specto use. Specto plays them back while the grant lasts; remove it and Specto can no longer read them.
How it works
Each recording batch becomes one object at rec/<project>/<session>/b<n>.spx, encrypted with AES-256-GCM under its own random data key. That data key is wrapped by a short-lived key your KMS generates (GenerateDataKey), and opening it again needs your KMS (Decrypt). Every KMS call carries the encryption context specto_org = <your organization id>, so your CloudTrail shows each use and your key policy can require it.
Specto caches a KMS key for at most 5 minutes, so revoking the grant stops new recordings and replays within 5 minutes.
1. The bucket
Any S3-compatible store works: AWS S3, Cloudflare R2, MinIO, Ceph, Wasabi. Give Specto only these actions, only under these prefixes:
{
"Version": "2012-10-17",
"Statement": [{
"Effect": "Allow",
"Action": ["s3:PutObject", "s3:GetObject", "s3:DeleteObject"],
"Resource": ["arn:aws:s3:::YOUR-BUCKET/rec/*", "arn:aws:s3:::YOUR-BUCKET/specto-probe/*"]
}]
}Specto signs in with an access key you create for it, or (on AWS) by assuming a role you create. With a role, its trust policy must require the external id shown in Settings — it is unique to your organization and stops anyone else from asking Specto to use your role.
{ "Effect": "Allow",
"Principal": { "AWS": "arn:aws:iam::SPECTO-ACCOUNT:root" },
"Action": "sts:AssumeRole",
"Condition": { "StringEquals": { "sts:ExternalId": "spx-… (from Settings)" } } }2. The key
A symmetric KMS key in your account. Allow the identity Specto uses to generate data keys and decrypt them, for your organization only:
{ "Effect": "Allow",
"Principal": { "AWS": "arn:aws:iam::YOUR-ACCOUNT:role/specto-recordings" },
"Action": ["kms:GenerateDataKey", "kms:Decrypt"],
"Resource": "*",
"Condition": { "StringEquals": { "kms:EncryptionContext:specto_org": "YOUR-ORG-ID (from Settings)" } } }3. Settings
In Specto, Organization → Recording storage → Your bucket, your key: the bucket, its region (and endpoint, outside AWS), the credentials or role, and the key’s ARN. Test connection writes a probe object, reads it, decrypts it and deletes it, and says which step failed. Save, and new recordings go to your bucket.
Revoking
Remove the key grant (or disable the key, or the bucket permission) at any time. From then on:
| What happens | |
|---|---|
| New recordings | Not stored — and not stored anywhere else instead. Specto never falls back to its own storage. |
| Replays | Show “Recording unavailable” and why; the session’s errors, clicks and requests still show. |
| Bugs, alerts, the coding-agent tools | Keep working: they are built from signals, which stay with Specto. |
| Settings | Recording storage turns red, says what refused and since when. |
Restore the grant and recording resumes with the next batch.
Data residency
Your bucket and key are where you put them. On a regional Specto workspace (for example the EU), Settings warns when the bucket or key is outside that region.

