420Media operator guide¶
Preflight¶
Before enabling Media traffic, verify:
- intended chain/network identity;
- qualified exact release SHA;
- Media contract/runtime identities where deployed;
- canonical Identity/Rights/Storage/Pay/Compute dependencies;
420/service/media/v1discovery record when materialized;- secure Media API composition, never the internal unsecured constructor;
- verified-session provider and expiry policy;
- scanner/quarantine availability;
- DNS-aware SSRF validation and egress policy;
- secret-manager-backed credential resolution;
- codec/process sandbox policy;
- rate-limit and moderation stores;
- observability and rollback readiness.
If any authority/dependency identity is ambiguous, fail closed.
Secrets¶
Never put stream keys, bearer tokens, signer secrets or provider credentials in:
- chain state;
- Media job input refs;
- stream endpoint URLs;
- logs;
- runtime JSON checked into the repository.
Persist only opaque credential references.
Remote signer tokens are referenced by environment-variable name. Diagnostics redact URL paths/query/userinfo.
Rotate a suspected credential before restarting affected sessions.
Process isolation¶
FFmpeg/GStreamer profiles are operator-controlled static configuration. Requesters do not supply command text.
Executors must:
- execute binaries directly with argv;
- never invoke a shell;
- run with no-new-privileges;
- drop Linux capabilities;
- use a read-only root filesystem where practical;
- isolate temporary storage;
- apply seccomp or equivalent syscall filtering;
- bound memory/CPU/PIDs and parallel jobs;
- terminate work at Media job/session deadlines.
Do not loosen sandboxing to make malformed media process successfully.
Network egress¶
Media transport workers require explicit egress policy.
The application rejects obvious local/private endpoints and secure-composition deployments must additionally validate resolved IPs.
The infrastructure egress layer must prevent DNS rebinding from reaching:
- loopback;
- cloud metadata;
- cluster control-plane networks;
- private databases;
- signer/secret-manager admin interfaces;
- internal RPC endpoints not explicitly required.
Malicious media¶
Every externally sourced upload must pass the configured scanner/quarantine gate before it is promoted as safe/READY for user consumption.
Treat parser crashes, codec hangs, extreme dimensions/bitrates and decompression bombs as hostile input.
On scanner/process anomaly:
- preserve asset/upload/provenance identifiers;
- quarantine application visibility;
- do not publish to Search;
- stop downstream processing;
- retain forensic hashes, not raw secrets;
- alert operator/security;
- require explicit re-scan/review before restore.
Moderation¶
Moderator authority is Media-domain scoped.
Allowed application outcomes include hide, suspend, restore, lock and an auditable moderator decision.
Moderators cannot:
- transfer assets;
- revoke 420Identity;
- rewrite 420Rights;
- release/refund Pay;
- mutate Compute authority;
- sign Wallet transactions.
Appeals preserve the original decision.
Operator compromise¶
If an operator or processing node is suspected:
- stop accepting new jobs on that operator;
- deactivate/suspend the operator through the canonical Media governance path where applicable;
- rotate signer/credential material;
- invalidate affected leases/sessions;
- compare finalized chain job/stream/settlement state;
- quarantine outputs produced during the suspected window;
- rebuild derived projections;
- preserve audit evidence;
- re-enable only after runtime/config/hash and dependency validation.
Never compensate for a compromised operator by editing canonical settlement/rights history in an application database.
Monitoring¶
Alert on:
- unexpected operator capability/lifecycle changes;
- repeated lease loss;
- scanner unavailable/quarantine spikes;
- upload/request rate-limit saturation;
- repeated endpoint validation failures;
- stream reconnect exhaustion;
- authentication/session-scope failures;
- webhook signature/replay failures;
- moderation-volume or moderator-scope anomalies;
- Registry/runtime identity drift;
- Search projection visibility leakage;
- Pay/Compute/Storage canonical disagreement.
Do not log raw media, stream secrets, authorization tokens or private-key material.
Recovery¶
Derived application data is rebuildable.
After failure:
- recover from canonical Media/Storage/Identity/Rights/Pay/Compute state;
- replay Indexer projections from a trusted finalized point;
- restore session/moderation stores from bounded backups where required;
- do not infer canonical state from the web UI;
- rerun exact release smoke/security checks before resuming writes.
Qualification boundary¶
MEDIA-AUDIT-11 proves repository security and Level-3 merge-candidate qualification.
MEDIA-AUDIT-12 owns production-equivalent public-testnet deployment, live scanner/secret/egress/rate-limit/monitoring/recovery evidence.