For recording without workers, see on-device recording. Both modes display persistent room notices.
For multiple servers, follow recording worker pools. Shared-master/shared-volume instructions below apply only to the legacy local worker.
Trust and user experience#
Recording is optional and disabled by default. An installation administrator configures Administração → Gravações. Registered meeting organizers/admins explicitly confirm that the recorder may read audio, cameras and the presentation. Everyone, including guests, sees preparation/recording/finalization indicators. There is no hidden or automatic recording.
The recorder joins as Gravador · Sintonia, with subscribe-only media permissions. The requesting client seals the meeting seed to an ephemeral X25519 recorder key, bound to recording ID, meeting and epoch. Legacy workers also prove archive-master agreement; registered workers receive a sealed per-file key and final files are authenticated before publication. The backend forwards the encrypted box; only the authorized recorder opens it in memory. User identity, recovery backup and chat keys are not shared.
E2EE still protects transport, including from the SFU, but the recorder is a trusted endpoint with plaintext access. Operators holding the storage key can also decrypt saved files. This is not protection against those operators or screen capture by viewers.
Registered invitees access recordings in meeting details. Anonymous guests cannot retrieve recordings with their meeting link. Policy can restrict playback to meeting organizers/admins and hide downloads. Hiding download is not DRM. Organizers/admins can delete final recordings; audit metadata remains.
Architecture and storage plan#
Flutter supplies controls, persistent indicators, sealed-key delivery and playback. Spring Boot manages authorization, policy, leases, storage reservations, audit, retention and authenticated byte ranges. The independent recorder/ service uses Node, Playwright/Chromium, LiveKit JS and FFmpeg. PostgreSQL stores metadata, not video or plaintext media keys.
| Data | Location | Treatment |
|---|---|---|
| Final MP4 | Private RustFS bucket, recordings/ namespace | Authenticated SREC; API access only |
| Upload staging/legacy sources | meeting-recordings, /recordings | Temporary ciphertext and old archives, preserved during migration |
| Processing files | recording-scratch, /scratch in worker only | Private temporary plaintext WebM/MP4; removed on completion; crash cleanup requires a stopped worker |
| Metadata/policy/access | PostgreSQL, Flyway V12 | Include in database backups |
| Archive master key | RECORDING_STORAGE_KEY, backend configuration; also legacy workers, never registered workers | Independent secret; retain outside the recording volume |
SREC v1 has a 16-byte header and authenticated 64-KiB AES-256-GCM frames. HMAC-SHA256 derives a file key from the master and UUID; per-frame nonces and UUID/index authentication support seekable Range reads without loading entire files. Authentication precedes sending each plaintext frame. The backend stores an immutable archive attempt before confirming completion; metadata points to it.
Playback uses expiring file/session-specific access credentials, revalidated against account session, trusted device, membership and policy on each request. Revocation blocks new requests; already delivered bytes cannot be withdrawn. Do not log the access query parameter. The supplied Nginx excludes recording routes from access logs.
Store final ciphertext in the private RustFS bucket; see object storage. Initially budget e.g. 100 GB for final objects, plus backend temporary uploads and worker scratch/outbox. The bundled Docker volume consumes host disk; Terraform does not provision additional disks automatically. Preserve legacy volumes and use verified copying instead of deleting data or changing mounts.
Budget 0.5–1.8 GB/hour, measured with real meetings. Admission reserves 1.8 GB/hour of configured maximum duration. Scratch can need twice that reservation; scratch/outbox sharing a disk need roughly three times it free. Quota exhaustion rejects new jobs rather than deleting older archives. Current registered and legacy workers upload ciphertext to the private API, then backend writes to RustFS. Shared on-device recordings also go to RustFS as chat attachments; originals remain on the device.
Deployment and resource limits#
The recorder is an eighth independent repository. Build for the target architecture:
docker buildx build --platform linux/amd64 -t YOUR_REGISTRY/recorder:YOUR_VERSION --push /path/to/sintonia-recorderDigitalOcean release scripts build four images: backend, web, documentation and recorder. They accept the recorder checkout after the existing source arguments; defaults find recorder or sintonia-recorder beside the app. No publishing is triggered by documentation builds.
Configure matching RECORDING_STORAGE_KEY (32 bytes, Base64) and RECORDING_WORKER_TOKEN (random secret of at least 32 characters) on backend and worker. Droplet secret preparation creates missing values and preserves established ones. Local helper: python3 scripts/ensure-recording-secrets.py .env; no values are printed. Enable the recording Compose profile, set a versioned SINTONIA_RECORDER_IMAGE, start the service and then enable the portal policy.
The worker uses private BACKEND_URL=http://backend:8080 and an SFU address reachable from its container: local ws://livekit:7880, Droplet ws://host.docker.internal:7880, or configured RECORDING_LIVEKIT_URL. Browser localhost is not container localhost. No new public ports are needed. Worker control routes must stay private; incorporate the supplied public-ingress rejection rule when retaining a custom/previous Caddyfile.
Reserve 2 vCPU/4 GiB for one 720p recorder, in addition to application/database/SFU resources. A shared test Droplet should start around 4 vCPU/8 GiB with spare disk; measure 1080p/many cameras before sizing production. These are planning estimates, not benchmarks. The worker container caps CPU/RAM at 2/4 GiB. Transcoding may take minutes and occupies the recorder slot.
This release supports one recording at a time by default, configurable with worker pools, including finalization, all participant audio, up to 16 prioritized cameras and one emphasized screen share. Chat is not included. It stops on explicit request, meeting end, duration limit, disconnection or 15 seconds without human participants. After key authorization it survives the organizer closing their browser. Before authorization, leaving may cause expiry. Losing ephemeral worker state fails the current attempt; it does not damage completed archives.
Defaults: disabled, 30-day retention, 120-minute limit, 20-GiB quota/reservations, 720p, registered invitee playback and downloads offered. Retention/duration are snapshotted on start. Disabling requests active recordings to stop. Access policy changes also affect existing temporary grants. Policies do not silently enable message custody.
Backup, retention and API#
Back up PostgreSQL + RustFS objects + RECORDING_STORAGE_KEY, retaining legacy volumes during migration coherently. Exclude plaintext scratch from backups and use protected/encrypted host disks. Losing the archive key makes saved recordings unreadable; user E2EE recovery secrets do not replace it. Automatic archive-key rotation is not implemented. Expiry removes remote objects and corresponding legacy files while retaining audit metadata; exported copies, snapshots and backup retention require separate management. Automatic legal preservation for recordings is not implemented.
| Method/path | Authorization |
|---|---|
GET/PUT /api/admin/recording-policy | Installation admin; password/version on update |
POST /api/meeting-access/{join}/recordings | Approved registered moderator; acknowledgeRecorderAccess: true |
POST /api/meeting-access/{join}/recordings/{id}/authorize | Original requesting join; sealed keyBox |
POST /api/meeting-access/{join}/recordings/{id}/stop | Registered meeting moderator |
GET /api/meetings/{id}/recordings | Authorized registered member; latest 100 |
POST /api/recordings/{id}/access | Temporary playback/download access |
GET /api/recordings/{id}/file | Authorized account or temporary access; single Range supported |
DELETE /api/recordings/{id} | Organizer/admin; terminal recording, audited |
Internal /api/internal/recordings/* uses independent worker credentials and per-job leases, never account tokens. Logs contain controlled IDs/statuses, not media keys or credentials. Consult the engineering validation log for test evidence and physical-browser limits.
Policy updates accept camelCase enabled, retentionDays, maxMinutes, maxBytes, height, downloads, viewers (members/moderators), version and password confirmation. Policy reads use persisted snake_case limit names and include non-secret configured/workerOnline. If moving the worker off-host, use HTTPS or an encrypted private network for control; the supplied HTTP origin is for the same private container network.
Multiple servers#
Global concurrency defaults to one and can be raised with recording worker pools. Each process handles one recording through final upload. Registered workers receive only an ephemeral sealed per-file key and upload ciphertext to the central private HTTPS API; the master stays central. Legacy master-key workers remain compatible; updated ones use HTTP upload too. After crashes, scratch cleanup requires a drained, stopped worker; startup never sweeps another process. Flyway V13 adds pool/worker metadata.
The administration center provides overview, activity/files, local recording, server policy and pools/workers.