fix: scrub exposed credentials from docs #52
No reviewers
Labels
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cal/paper-dynasty-card-creation#52
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "fix/scrub-exposed-credentials"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
docs/PD_CARDS_CLI_REFERENCE.md(line 421) withyour-api-token-hereplaceholder.envis already gitignored)Ladies5-Monogamy-Charterreferences found in any tracked card-creation filesContext
The token
Tp3aO3jhYve5NJF1IqOmJTmkwas embedded in a shell example command in the CLI reference doc. While the.envfile containing the same token is gitignored, the doc was tracked and publicly visible.Closes paper-dynasty-database#9
Closes #50
AI Code Review
Files Reviewed
docs/PD_CARDS_CLI_REFERENCE.md(modified) — credential scrubdb_calls.py(modified) — default timeout 3 → 30 for 5 async functionsscouting_batters.py(modified) — explicittimeout=120infetch_data()docs/REFRACTOR_PHASE2_VALIDATION_SPEC.md(added) — 468-line Phase 2 validation specFindings
Correctness
API_TOKEN=Tp3aO3jhYve5NJF1IqOmJTmkreplaced withyour-api-token-hereon the target line. No functional breakage.timeoutparam intoaiohttp.ClientTimeout; this PR upgrades the safe default. No logic errors.scouting_batters.pytimeout=120: Appropriate for long-running scouting queries that pull large player sets.REFRACTOR_PHASE2_VALIDATION_SPEC.md: Documentation-only. Content is internally consistent with the PRD chapters referenced.Security
Tp3aO3jhYve5NJF1IqOmJTmkis scrubbed from the tracked doc. ✓AUTH_TOKENbearer token is still hardcoded indb_calls.pyline 7; that cleanup was noted in the PR #44 review but is out of scope here.Style & Conventions
db_calls.py, atimeout=120call inscouting_batters.py, and a new 468-line design doc. None of these are mentioned in the PR description. The changes themselves are correct, but the undocumented scope makes the diff harder to audit and the PR harder to trace back to its motivation if something regresses.Suggestions
REFRACTOR_PHASE2_VALIDATION_SPEC.mdappears to have been merged already via thedocs: refractor Phase 2 design validation spec (#51)commit (eaf4bdbonmain). Verify this file isn't a duplicate before merge — the PR diff shows it as added, but the base branch SHA iseaf4bdb, which carries the same spec.Verdict: COMMENT
The security fix is correct and should merge. The bundled timeout changes are sound. Flag the potential duplicate of
REFRACTOR_PHASE2_VALIDATION_SPEC.mdbefore merging — if it already landed in the base via #51, this PR will produce a no-op add or conflict.Automated review by Claude PR Reviewer
Approved via pd-pr