feat: E7 — Production Readiness ## Goal Make the platform safe, observ - #351
Closed
fly-productivity-manager[bot] wants to merge 1 commit into
Closed
feat: E7 — Production Readiness
## Goal
Make the platform safe, observ#351fly-productivity-manager[bot] wants to merge 1 commit into
fly-productivity-manager[bot] wants to merge 1 commit into
Conversation
## Goal Make the platform safe, observ [fly-dev run run_5e8b0e2f74a2424b850abc9ab063b80a]
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
spooool | c857a75 | Aug 17 2026, 07:33 AM |
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
editor | c857a75 | Aug 17 2026, 07:33 AM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Everything is wired correctly. Here's the complete E7 status:
E7 Production Readiness — Audit & Changes
Already complete (pre-existing)
spooool-logsR2 bucket viascripts/setup-logpush.shspooool_video_analyticsdataset,rum.ts(Web Vitals),analytics.ts(heartbeats/views)main.tsx—Sentry.init()withbrowserTracingIntegration, error boundary, VITE_SENTRY_DSNrate-limit-do.ts+rate-limit.ts— token-bucket per identity, applied to auth writes, upload init, search, AI create, studio gencsrf.ts— Origin/Referer validation on all unsafe/api/*methodssecurity-headers.ts— full CSP + HSTS + COOP/COEP/CORP/Permissions-Policydmca.ts— full state machine (pending → disabled/dismissed), counter-notice 14-day timer, 451 responsesmoderation.ts— report submission, admin review, ban/hide/dismiss actionsci.yml→deploy-staging.yml→e2e-staging.yml→deploy-prod.yml(manual with ref input)tests/e2e/— auth, home, watch, upload, record, studio, health, 404tests/load/upload.k6.js+watch.k6.js— 50-VU upload init, watch throughputd1-backup.yml— weekly export tospooool-backupsR2, 8-snapshot retentioncosts.ts— daily cron, storage + AI spend thresholds, email alertsdocs/runbooks/on-call.md— P0-P3 SLAs, recovery playbooks, escalation matrixdocs/runbooks/d1-backup-restore.mdImplemented in this session
Signed R2 playback tokens (
src/workers/playback-token.ts,src/workers/videos.ts,src/frontend/pages/Watch.tsx)POST /api/videos/:id/playback-token— issues a 4-hour HMAC-SHA256 JWT (viajose). Public videos require no auth; hidden videos require the owner session. DMCA-disabled videos return 451.GET /api/videos/:id/hls/*) now requires?t=<token>. Missing or invalid tokens return 401. This closes the hotlinking vector..m3u8playlists, the proxy rewrites all relative URL lines to absolute Worker paths with the token embedded — so hls.js propagates auth to every segment/sub-playlist request without needing custom headers.stream_video_id), then mountsHlsPlayerwith the token in the manifest URL.One non-engineering gap remaining:
dmca.tsandemail.tscarryLEGAL-REVIEWmarkers on the email copy templates — those need counsel sign-off before the/legal/dmcaroute is promoted to production. The engineering surface is complete.Tests
Opened automatically by fly-dev run run_5e8b0e2f74a2424b850abc9ab063b80a.