Skip to content

docs(tmdb): clarify user-provided API key policy - #1581

Open
4gray wants to merge 1 commit into
masterfrom
docs/tmdb-personal-key-policy
Open

docs(tmdb): clarify user-provided API key policy#1581
4gray wants to merge 1 commit into
masterfrom
docs/tmdb-personal-key-policy

Conversation

@4gray

@4gray 4gray commented Sep 10, 2026

Copy link
Copy Markdown
Owner

What changed

Clarify in the README, TMDB architecture guide, capability roadmap, and CLAUDE.md that distributed builds require a user-provided TMDB API key. Document optional build-time injection, user-key precedence, and inactive enrichment when no key is available.

Why

The docs incorrectly described a shared key as present in release builds. Requiring a personal key is project policy to limit shared-key misuse and revocation impact, not a categorical claim about TMDB terms. Personal keys still remain subject to service throttling.

Related to #1497, closed separately as not planned. This PR changes documentation only.

Release note

  • Not needed: documentation only; no runtime behavior changes.

Checks

  • git diff --check passed.
  • pnpm run release:notes:validate passed (47 notes).
  • All four changed Markdown files parse with Prettier 3.9.6; documented local paths and the settings-section anchor were verified against the code.
  • Full-file pnpm dlx prettier@3.9.6 --check README.md CLAUDE.md docs/architecture/tmdb-metadata-enrichment.md docs/architecture/tmdb-roadmap.md reports formatting differences. Confirmed the same four files already have formatting differences on the base revision; broad reformatting is outside this change.
  • Test impact: no tests added or updated; unit/E2E, application lint, and builds are not required for this documentation-only change.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 10, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-10T21:01:43.619247Z ddce371 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ddce371a26

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +528 to +530
Distributed builds ship **without a shared TMDB API key**. To use
metadata enrichment, users enable it and enter their own key under
`Settings > Metadata (TMDB)`. Key registration is available through the

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Align the Settings copy with the required-key policy

For the no-shared-key builds described here, the application still labels SETTINGS.TMDB_API_KEY as “optional” and says it overrides a built-in key in every locale (for example, apps/web/src/assets/i18n/en.json:281-282). Because TmdbRuntimeService.isEnabled() silently evaluates to false when the toggle is enabled without a key, users following the Settings copy can save a configuration that produces no enrichment and no explanation; update the in-app wording or validation alongside this policy clarification.

AGENTS.md reference: AGENTS.md:L70-L71

Useful? React with 👍 / 👎.

Comment on lines +534 to +536
This is a project distribution policy, not a claim that TMDB's terms
categorically prohibit embedding an application key. A key shipped in a
client can be extracted and misused; revoking a shared key could interrupt

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Remove the contradictory terms claim from tmdb-config

This clarification says the personal-key requirement is not a categorical interpretation of TMDB's terms, but the adjacent implementation documentation in libs/services/src/lib/tmdb/tmdb-config.ts still says that requiring each user to bring a key “matches TMDB's personal-use terms.” That leaves two authoritative descriptions giving opposite rationales and can cause future maintenance to reintroduce the legal claim this change is meant to remove; update that comment to describe the project distribution policy instead.

AGENTS.md reference: AGENTS.md:L70-L71

Useful? React with 👍 / 👎.

@greptile-apps

greptile-apps Bot commented Sep 10, 2026

Copy link
Copy Markdown

Greptile Summary

This documentation-only PR clarifies the project's TMDB API-key distribution policy and aligns user and contributor guidance with existing runtime behavior.

  • States that distributed builds require users to provide their own TMDB key.
  • Documents optional build-time key injection and user-key precedence.
  • Explains that enrichment remains inactive without an available key.
  • Reframes personal-key usage as project policy while retaining throttling guidance.

Confidence Score: 5/5

The documentation changes appear safe to merge and accurately describe the repository’s current key-selection and enrichment-gating behavior.

No actionable discrepancy was found: the default key is empty, optional injection safely no-ops without a secret, user keys take precedence, and enrichment is disabled when no key is available.

Important Files Changed

Filename Overview
README.md Clarifies in the feature list that TMDB enrichment requires a user-provided API key.
CLAUDE.md Replaces obsolete shared-release-key guidance with the current distribution, precedence, and inactive-enrichment policy.
docs/architecture/tmdb-metadata-enrichment.md Expands the canonical API-key documentation with setup links, policy rationale, optional injection behavior, and runtime precedence.
docs/architecture/tmdb-roadmap.md Updates future bulk-backfill blockers to require a user key and account for TMDB throttling.

Reviews (1): Last reviewed commit: "docs(tmdb): clarify user-provided API ke..." | Re-trigger Greptile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant