clipwright/dashboard
juancarlos.cavero 87adf88daa fix(source): stop serving the untouched original without a credential
GET /api/source streams the file we downloaded, not a derived clip, and it was
open on the reasoning that the UUID job id is the capability. That makes the
product a public YouTube downloader wearing a UUID, which is the characterisation
worth avoiding, and one leaked id in a log or a referer opens someone else's
video.

A <video src> cannot carry an Authorization header, which is why it was open in
the first place, so the owner mints a short-lived signed URL from
/api/source-url and hands the player that. The endpoint takes the signature or
falls back to the owner check. Self-host and ownerless BYOK jobs are untouched:
no owner to check, no secret to sign with. The owner lookup is gated on
BILLING_ENABLED because it falls through to a full rescan of the output
directory, which off billing would run on every preview and buy nothing.

Both minters go through _signed_source_url. The EDL feeds ClipEditor's source
monitor the same way and was built as a bare path, which works in self-host and
in every test and 404s in cloud. The regression test asserts the endpoint calls
the minter rather than comparing strings: off billing the helper returns that
same bare path, so a string comparison passes just as happily with the bug in.
Verified by putting the bug back and watching it fail.

The frontend mints at render, not when the session is persisted, or localStorage
would hold a token that expired overnight.

SOURCE_RETENTION_SECONDS can age the retained download out ahead of the clips it
produced, and defaults to the job clock, so nothing changes until someone sets
it. Lowering it is not free: the EDL, rerender, scenes and reframe endpoints all
read that file and answer 409 once it is gone.

Claude-Session: https://claude.ai/code/session_01WyFE2wXi8quZR6nLRRLDgE
2026-08-29 17:19:39 +02:00
..
public feat(seo): canvas screenshot on the n8n page, and link it from the landing 2026-08-21 21:41:58 +02:00
seo feat(legal): dmca agent, california rights, refunds and a notice-and-action page 2026-08-29 17:19:11 +02:00
src fix(source): stop serving the untouched original without a credential 2026-08-29 17:19:39 +02:00
.gitignore improve video preview 2025-12-21 01:59:15 +01:00
Dockerfile fix(analytics): make product analytics opt-in and host-scoped 2026-07-28 09:58:33 +02:00
eslint.config.js chore(dashboard): make npm run lint work again 2026-08-25 19:24:46 +02:00
index.html docs(dashboard): name Gemini 3.1 Flash-Lite in landing, pricing and SEO copy 2026-08-26 00:30:51 +02:00
nginx.conf fix(seo): permanent apex redirect, real 404s, and gallery links that resolve 2026-07-27 11:48:33 +02:00
package-lock.json chore(dashboard): make npm run lint work again 2026-08-25 19:24:46 +02:00
package.json chore(dashboard): make npm run lint work again 2026-08-25 19:24:46 +02:00
postcss.config.js added front-end and backend 2025-12-19 17:59:03 +01:00
README.md added front-end and backend 2025-12-19 17:59:03 +01:00
tailwind.config.js feat(dashboard): make the app usable on a phone 2026-08-24 02:25:24 +02:00
vite-plugin-seo.js feat(legal): full legal corpus — Terms, Privacy, Legal Notice in EN+ES 2026-08-19 22:06:11 +02:00
vite.config.js feat(seo): make the site readable by AI crawlers 2026-07-27 10:56:15 +02:00

React + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

React Compiler

The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see this documentation.

Expanding the ESLint configuration

If you are developing a production application, we recommend using TypeScript with type-aware lint rules enabled. Check out the TS template for information on how to integrate TypeScript and typescript-eslint in your project.