d0e98424c1
- Arbitrary file write (P0): validate import keys in /api/library/import via a now-exported safeFilename(); a ../../ key is skipped, not written out of the scope dir. - SSRF (P0): guard downloadPodcastAudio — reject non-HTTP(S) schemes, block IP-literal and DNS-resolved private/link-local/loopback/reserved/multicast and embedded-IPv4 IPv6 targets (closes DNS rebinding), cap + resolve redirects. - ESM require (P1): top-level import of randomBytes in license-purchase.js (the inner require threw on the anon purchase-settle path). - Concurrency lock (P1): skip the process-global free-tier slot in multi-mode so it no longer serializes every cloud tenant onto one job. - X-Forwarded-For bypass (P1): set Express trust proxy from RECAP_TRUSTED_PROXY_HOPS (default 1); getClientIp now reads req.ip instead of a client-spoofable XFF entry. Tests added for safeFilename, the SSRF guard, and getClientIp (119 pass). Registry blockers deferred (ROADMAP); leaked-key history purge queued.
7.5 KiB
7.5 KiB
ROADMAP
Longer-term backlog for Recaps. Near-term in-flight work and known issues live in AGENTS.md under Current state.
Near-term backlog
- Persist provider preference server-side.
processItemInternallycurrently runtime-detects (relay-if-configured / gemini-fallback) because the user's choice lives only in the client'slocalStorage. Persist it so a fresh-container rebuild or any non-browser caller (cron, background processor) picks the right path. Probably a single key in the StartOS config blob + a small migration to seed it from the first authenticated client. - Apply Export ▾ menu to the clip-collection panel. The main view and history rows already have it; the clip collection still has the single legacy "Export PDF" button. Reuse the existing menu component.
- CI lint + type-check. No
lintscript inserver/package.json; top-leveltsconfig.jsonexists but the server is pure.js. Decide: add ESLint, adopt JSDoc-driven TS checking, or remove the emptytsconfig.json. - Surface failed auto-queue items in the dashboard. Currently hidden by default behind a "Show all" toggle. Worth a small banner / count chip when failures exist so operators notice without hunting.
- Zaprite recurring card billing (BLOCKED on Zaprite). Grant wants card payments to DEFAULT to recurring (buyer can opt out at checkout). Zaprite's public API (
api.zaprite.com/openapi.json) only creates one-time/v1/orders— recurring is a hosted/dashboard feature with no per-buyer metadata, no renewal webhook, and no billing-portal URL via API. The shipped card rail is one-time prepaid. UNBLOCK by confirming with Zaprite support whether the account can: (a) attach a per-buyer reference/metadata to a recurring checkout (so a payment maps to a Recaps user), (b) fire a webhook on each renewal charge (so we extend the tier each period), (c) expose a customer/billing-portal URL (for the chosen "link to Zaprite portal" cancel path). Decisions already made: no reminder emails for auto-renewing cards; a failed charge = lapse at period end (the relay's expiry-enforcement already does this — a missed renewal just doesn't extendexpires_at). - Close the architecture-simplification gaps (
docs/architecture-simplification-plan.md). After core-decoupling + self-serve, these steps remain OPEN: (8) "Take Recaps home" — mint a fresh Keysat token on demand at click time; likely BROKEN today because relay-tier cloud users have nokeysat_licensefor/api/account/license-keyto return. (10) cloud paid-only — the free signed-in tier + signup-grant credits are still live; the plan wanted cloud to be paid-only with self-hosted as the free path (product call — confirm intent before building). (5, partial) anon signup→Pro still routes through/api/license/purchase+pending_signups(Keysat license) instead of the relay tier like the signed-in flow does. (6, partial) tokenized renew — the reminder email's renew link is?renew=1(requires sign-in); the plan wanted a one-time-token/renew?token=…for friction-free renewal. NOTE: the doc's Zaprite-recurring / cancel-button / Recaps-DB-owns-expiry parts were intentionally SUPERSEDED by the prepaid + relay-owns-tier model — don't build those. - Decide the Max tier-quota default. The relay code default is
max.monthly: null(unlimited) → cards render "Unlimited" on a fresh install. The operator setmax.monthly: 120on their box via the Adjust-Tier-Quotas action (so cards show 120 there). Decide whether a metered number (e.g. 120) should be the shipped default inrecap-relay/server/config.js— note it also enforces the ceiling, not just the card label.
Deferred hardening & cleanup (P3, from the 2026-06-14 full-eval — EVALUATION.md)
Low-severity; batch when convenient. None block release. (P0/P1 work queue and P2 known debt live in AGENTS.md → Current state.)
- Request-size / fetch caps.
express.json({limit:"100mb"})on every route (server/index.js:203) is a cheap memory-exhaustion lever; tighten it.downloadPodcastAudioalso needs a size/time cap — folds into the P0 SSRF fix. /api/credits/claiminvoice-ID hijack. A leaked anon BTCPay invoice ID is claimable by any signed-in account (server/credits-purchase.js:342); bind claims to the buyer's email. Random IDs keep this low-risk.- Container runs as root (no
USERinDockerfile) — acceptable under StartOS isolation; add a non-root user for the cloud image. - In-memory auth rate-limit buckets reset on restart (
server/auth-routes.js:106) — fine for self-host single-operator; note for cloud HA. - Repo hygiene. Delete the stale
youtube-summarizer_x86_64.s9pk(~223MB, old package ID) and rename the rootpackage.json(stillyoutube-summarizer-startos).cookies.txtis sensitive plaintext in the repo root and is expiring (/api/healthalready reportsfileExpiring:true) — gitignored, but rotate/move it. - StartOS community-registry submission — deferred (decision 2026-06-15: self-host + cloud only for now). Hard blockers if/when we submit: add a root
instructions.md; pointpackageRepo/upstreamRepoat a public source repo (currentlyhttps://ten31.xyz, a homepage); choose a source-available license for the wrapper (currentlyProprietary). Softer polish: emptymanifest.docsUrls; verify the multi-tenant cloud actions (enableMultiTenantModeet al.,startos/actions/index.ts) run cleanly — not stack-trace — in single mode; 172 empty version-file migration stubs are a growing maintenance surface. None of this affectsmake install. - Doc reconciliation (bulk). AGENTS.md directory layout omits ~25 server modules;
docs/guides/relay-client.md:17Authorization header is missing theBearerscheme;index.htmlis stated as~10klines but is 12.5k (AGENTS.md:51); thesafeFilename()convention (AGENTS.md:79) becomes accurate once the function is exported (the P0 fix).
Larger plans (already drafted in docs/)
docs/architecture-simplification-plan.md— broader simplification arcdocs/core-decoupling-plan.md— separating the core summarize pipeline from billing / multi-tenant concernsdocs/per-tenant-subscriptions-plan.md— moving subscription state into the per-user scopedocs/self-serve-purchase-plan.md— buyer flow for Pro/Max and a la carte creditsdocs/path-2b-and-path-1-interweave.md— sequencing for the multi-tenant cloud meetings work (depends on the relay's Path 2A)
Treat the docs/ plans as the source of truth for those items; cross-reference rather than restating here.
Adjacent (lives in ../recap-relay)
The relay now has its own AGENTS.md + ROADMAP.md — track relay work there; this is just what the client surfaces or waits on.
- Speaker MERGE + re-run detection + re-polish — SHIPPED relay-side (operator dashboard, live on the box at relay 0.2.124, 2026-06-13). Merge folds two clusters into one; re-run re-clusters at a new strictness to split over-merged speakers; re-polish rewrites topic summaries to corrected names. App-side UI for these is now unblocked if wanted. (The relay tree is at 0.2.124 but uncommitted to git — see
../recap-relay/ROADMAP.md.) - Cross-call speaker fingerprint memory (recognize the same voice across meetings) — not yet shipped.
- Phase 3 of Path 2A: multiple operator-editable meeting prompt sets (1on1 / all-hands / customer-interview / standup) selectable per upload — not yet shipped.
Avoid building app-side UI for the unshipped items until the relay-side pieces land.