feat(config): support KRONAI_LLM_API_KEY env var as secure alternative #123

Merged
fuzzy merged 1 commit from fix/0075-env-var-api-key into main 2026-07-05 16:06:11 +00:00
Owner

What

Add KRONAI_LLM_API_KEY environment variable support. When set, it overrides the llm_api_key from 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

  • 145 unit tests pass
  • Pre-commit hooks pass

Closes #75

## What Add `KRONAI_LLM_API_KEY` environment variable support. When set, it overrides the `llm_api_key` from 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 - [x] 145 unit tests pass - [x] Pre-commit hooks pass Closes #75
feat(config): support KRONAI_LLM_API_KEY env var as secure alternative
All checks were successful
CI / test (pull_request) Successful in 53s
CI / lint (pull_request) Successful in 1m24s
c223b87f38
Env var overrides llm_api_key from config file, enabling deployment
without storing secrets in config files.
Closes #75
the.auditor left a comment

Automated Review — PR #123

Result: APPROVED


Clean, minimal fix. KRONAI_LLM_API_KEY env var overrides the config file value when set. Example config updated with security note.

  • Correctness: Env var is merged via merge_config after file-based config, so it takes precedence. No secrets in config files needed in production.
  • Completeness: Closes #75.

No suggestions.

## Automated Review — PR #123 **Result: APPROVED** --- Clean, minimal fix. `KRONAI_LLM_API_KEY` env var overrides the config file value when set. Example config updated with security note. - **Correctness**: Env var is merged via `merge_config` after file-based config, so it takes precedence. No secrets in config files needed in production. - **Completeness**: Closes #75. No suggestions.
fuzzy merged commit c223b87f38 into main 2026-07-05 16:06:11 +00:00
fuzzy deleted branch fix/0075-env-var-api-key 2026-07-05 16:06:11 +00:00
Sign in to join this conversation.
No reviewers
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
thwap/kronai!123
No description provided.