Remove hardcoded Giphy API key from config.py #19

Closed
opened 2026-02-20 06:48:57 +00:00 by cal · 2 comments
Owner

Description

config.py:100 — The Giphy API key is hardcoded as the default value for giphy_api_key. While it can be overridden by an environment variable, any deployment that does not set GIPHY_API_KEY will silently use this key, and the key itself is committed to version control. The correct pattern is to set giphy_api_key: Optional[str] = None and fail gracefully when absent.

File Locations

  • config.py:100

Labels

security

Priority

high

## Description `config.py:100` — The Giphy API key is hardcoded as the default value for `giphy_api_key`. While it can be overridden by an environment variable, any deployment that does not set `GIPHY_API_KEY` will silently use this key, and the key itself is committed to version control. The correct pattern is to set `giphy_api_key: Optional[str] = None` and fail gracefully when absent. ## File Locations - `config.py:100` ## Labels security ## Priority high
Author
Owner

Addressed in commit f4be20a on next-release branch. Will be closed when merged to main.

Addressed in commit f4be20a on `next-release` branch. Will be closed when merged to main.
Author
Owner

Addressed in commit f4be20a on next-release branch. Will be closed when merged to main.

Addressed in commit `f4be20a` on `next-release` branch. Will be closed when merged to main.
cal closed this issue 2026-02-20 20:29:06 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 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/major-domo-v2#19
No description provided.