videogen/docs/ott/ADR-0003-protection-tiers.md
caelum0x d56639a594
Some checks are pending
build-images / api (push) Waiting to run
build-images / worker-gpu (push) Waiting to run
build-images / web (push) Waiting to run
codeql / Analyze (javascript-typescript) (push) Waiting to run
codeql / Analyze (python) (push) Waiting to run
perf / API hot-path micro-smoke (budgeted) (push) Waiting to run
perf / Desktop engine crates (release build check) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (comfy-workflow-schema) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (effects-core) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (eventbus-types) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (growth-analytics) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (trends-schema) (push) Waiting to run
vision2026-ci / API phase modules (ruff + pytest) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (provider-adapter-kit) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (publishing-connectors) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (render-core) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (shot-template-schema) (push) Waiting to run
vision2026-ci / Python SDK resource tests (push) Waiting to run
vision2026-ci / Desktop engine crates (test + clippy + fmt) (push) Waiting to run
vision2026-ci / Alembic upgrade + drift check (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (caption-engine) (push) Waiting to run
Menivor — open source release (MIT), free to use and fork
Paid, hosted product at menivor.com, now retired as a company project.
Fresh squashed history of the cleaned working tree (secret-scanned,
no .env, no customer data, no outreach logs). Built on
MoneyPrinterTurbo (MIT, harry0703) — see NOTICE.
2026-12-04 02:10:26 +03:00

51 lines
3.3 KiB
Markdown

# ADR-0003 (OTT): Content protection tiers and the Apple FairPlay application
**Status:** proposed. Owner default recorded; owner confirmation and FairPlay submission pending.
**Decision id:** OD-MV6
**Package:** MV0. Governs MV3, MV5 (Wave E) and MV20 (Wave G, on trigger).
| Field | Value |
|---|---|
| Default recorded | 2026-09-29 |
| Owner answer | pending (D-V4) |
| Owner answer date | pending |
| **Apple FairPlay Streaming application** | **not submitted as of 2026-09-29.** Owner step D-V4; record the submission date and Apple's reply here. |
| FairPlay submission date | pending |
| FairPlay approval date | pending |
| Signed by | pending |
## Context
- A Widevine licence server needs a licence agreement with Google, so real Widevine means a paid provider.
- The lowest confirmed provider price: Bunny MediaCage Enterprise DRM, $99/month plus $0.005 per licence up to 20k licences, Widevine plus FairPlay, Bunny-hosted content only (https://bunny.net/docs/stream-drm, fetched 2026-09-29 by the parity plan). EZDRM, DoveRunner/PallyCon and Axinom prices are unverified.
- FairPlay can be self-run with Apple's free FPS deployment package and our own key server, after Apple approves the application. The lead time is unknown, which is why the application goes in now.
## Decision (default)
| Tier | What | Stops | Cost | Package | When |
|---|---|---|---|---|---|
| 0 | Public HLS on R2 | nobody (free content) | $0 | MV3, MV4 | E |
| 1 | AES-128 HLS and clear-key CENC for DASH. The key is served only by `api.menivor.com` after a playback token and entitlement check. Tokens expire in 10 min or less. Concurrent-stream limit. Overlay watermark with the viewer id. | hotlinking, link sharing, download tools that cannot fetch the key | $0 | MV5 | E |
| 2 | FairPlay only, self-run: Apple FPS deployment package plus our own key server, cbcs from Shaka Packager | capture on iOS, tvOS and Safari | $0 plus effort | MV20 (part a) | G, on trigger |
| 3 | Widevine plus FairPlay (plus PlayReady) through a provider behind one adapter | premium studio content, offline downloads | passed through to the customer's plan, never absorbed | MV20 | G, trigger: a paying customer requires DRM in writing |
1. **No real DRM until a paying customer requires it in writing.** Tier 1 is the default for every paid title.
2. **Apply for the FPS deployment package now** (free) so tier 2 is not blocked by Apple's lead time when the trigger fires.
3. Keys are never logged and never appear in page HTML (CLAIMS rule 7). Keys are cached per session, one request per key rotation.
## Copy rule
- Until tier 3 is live for a channel, copy may say "protected streaming" only where tier 1 is on. It never says "DRM".
- The `OTT_DRM_LIVE` flag (per channel) is the only thing that unlocks the word "DRM". Hand-off to P-D1 (see ADR-0001).
## Owner steps (D-V4)
1. Apple Developer account (the existing one), then the FairPlay Streaming page, then request the deployment package.
2. Tell the Menivor lane the submission date; it is written into the table above. When Apple replies, record the date and the outcome.
3. The FPS credentials (certificate, private key, ASk) go into the secret store only, never into this repo.
## Consequences
- MV5 ships tier 1 in Wave E with no provider cost.
- MV20 is not scheduled; it is created when a paying customer asks in writing.