feat(config): support KRONAI_LLM_API_KEY env var as secure alternative #123
No reviewers
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
thwap/kronai!123
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/0075-env-var-api-key"
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?
What
Add
KRONAI_LLM_API_KEYenvironment variable support. When set, it overrides thellm_api_keyfrom the config file, enabling deployment without secrets in files.Why
Security best practice — API keys should not be stored in config files in production.
Testing
Closes #75
Automated Review — PR #123
Result: APPROVED
Clean, minimal fix.
KRONAI_LLM_API_KEYenv var overrides the config file value when set. Example config updated with security note.merge_configafter file-based config, so it takes precedence. No secrets in config files needed in production.No suggestions.