Spectodocs

Your edge

A small gateway you run in your own network receives what the SDK sends, keeps recordings encrypted in your bucket under a key Specto never holds, and forwards only signals. Specto can’t read a recording; your team’s browsers fetch replays straight from the edge.

How it works

StepWhere
The SDK posts batches to the edge (your snippet names the edge’s host).visitor → your edge
The edge applies the project’s privacy settings, seals the page, console and request details into one object and writes it to your bucket.your edge → your bucket
It forwards the signals — errors, clicks, navigation, request status — and a pointer to the object.your edge → Specto
Specto finds and groups bugs, applies your plan and quotas, exactly as for any project.Specto
A team member opens a replay: Specto gives their browser a 5-minute token for that one session; the browser fetches the objects from the edge, which checks the token and decrypts.your team’s browser → your edge

The edge decides nothing: it moves and locks bytes. It has no database; it verifies everything Specto sends it (its configuration, viewer tokens) offline, against Specto’s public key.

1. Create the edge in Specto

In Organization → Recording storage → Your edge, enter the address your team will reach the edge on (it can be internal, like https://recordings.acme.internal — only your team’s browsers use it) and Create an edge. Copy the settings it shows: the credential is shown once.

2. Run it

docker run -d --name specto-edge -p 8080:8080 -v specto-edge:/data \
  -e SPECTO_URL=https://app.specto.sh \
  -e SPECTO_EDGE_TOKEN=spx_edge_… \
  -e SPECTO_EDGE_PUBLIC_KEY=MCow… \
  -e EDGE_ENCRYPTION_KEY="$(openssl rand -base64 32)" \
  -e EDGE_S3_ENDPOINT=https://s3.eu-west-1.amazonaws.com -e EDGE_S3_REGION=eu-west-1 \
  -e EDGE_S3_BUCKET=acme-recordings -e EDGE_S3_ACCESS_KEY=… -e EDGE_S3_SECRET_KEY=… \
  specto-edge
Setting
SPECTO_URLYour Specto workspace.
SPECTO_EDGE_TOKENThe edge’s credential. Revoke it in Settings and the edge stops at once.
SPECTO_EDGE_PUBLIC_KEYSpecto’s public key, from Settings: what the edge checks configurations and viewer tokens against.
EDGE_ENCRYPTION_KEY32 random bytes. Keep it safe and keep it: without it nothing the edge stored can be read. Rotate by moving the old one to EDGE_ENCRYPTION_KEY_PREVIOUS. Or use your KMS key instead: EDGE_KMS_KEY_ID (+ EDGE_KMS_REGION), reached with the EDGE_S3_* credentials.
EDGE_S3_*Your bucket. The edge needs put, get and delete under rec/.
EDGE_DATA_DIRWhere the edge keeps its last configuration and signals waiting for Specto (default /data in the image). Persist it.
EDGE_TRUST_PROXYHow many proxies sit in front of the edge, so it reads visitors’ addresses from X-Forwarded-For.

Put TLS in front of it (your load balancer or ingress). Visitors’ browsers need to reach /api/*; your team’s browsers need /v1/*.

3. Point the snippet at the edge

Add the edge’s host to the publishable key: the SDK sends everything there.

<script src="https://specto.sh/specto.js" data-key="[email protected]" defer></script>

Once your organization is in edge mode, Specto refuses batches sent to it directly, so a page still pointed at Specto records nothing rather than recording into Specto.

What Point reports carry

A report reaches Specto through the edge with what bugs need — the element’s selectors, name and label, the route, failed requests, errors, and what the person typed or said. The edge takes out each marker’s HTML snapshot, its visible text and console lines that aren’t errors. Spoken reports are transcribed by Specto and the audio is dropped once transcribed: it is never kept.

When Specto is unreachable

The edge keeps recording: objects go to your bucket and signals wait on disk, sent oldest first when Specto is back. It keeps working on its last verified configuration for up to 7 days.

What you give up

Heatmap backdrops (they are drawn from the recorded page, which Specto can’t read) and replays from outside the network your edge is reachable on.