Remove hardcoded bearer token from source files #2

Closed
opened 2026-02-20 06:52:11 +00:00 by cal · 1 comment
Owner

db_calls.py:7 contains a hardcoded API bearer token. Same token duplicated in .claude/ops-rework/check_prod_missing_ratings.py:6. Should be loaded from an environment variable or .env file.

Priority: high | Labels: security

`db_calls.py:7` contains a hardcoded API bearer token. Same token duplicated in `.claude/ops-rework/check_prod_missing_ratings.py:6`. Should be loaded from an environment variable or `.env` file. **Priority**: high | **Labels**: security
Claude added the
ai-working
label 2026-03-21 08:31:24 +00:00
Claude removed the
ai-working
label 2026-03-21 08:33:55 +00:00
Collaborator

Fixed in PR #44: #44

Removed the hardcoded token from db_calls.py and .claude/ops-rework/check_prod_missing_ratings.py. Both now call load_dotenv() and read PD_API_TOKEN from the environment. The .env file (already gitignored) already had the key defined. Added python-dotenv as a project dependency.

Note: the token was already committed to git history — you should rotate it in the Paper Dynasty API admin panel.

Fixed in PR #44: https://git.manticorum.com/cal/paper-dynasty-card-creation/pulls/44 Removed the hardcoded token from `db_calls.py` and `.claude/ops-rework/check_prod_missing_ratings.py`. Both now call `load_dotenv()` and read `PD_API_TOKEN` from the environment. The `.env` file (already gitignored) already had the key defined. Added `python-dotenv` as a project dependency. Note: the token was already committed to git history — you should rotate it in the Paper Dynasty API admin panel.
Claude added the
ai-pr-opened
label 2026-03-21 08:34:00 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cal/paper-dynasty-card-creation#2
No description provided.