feat(ci): Add provider API key validation to env_check.sh - #591
Conversation
Add pre-flight validation for LLM provider API keys to catch configuration issues before docker compose attempts to start services. Changes: - Add check for core LLM providers (OpenAI, Anthropic, Groq, Gemini, Ollama) - Warn if no LLM providers are configured - Display status of optional API keys (ElevenLabs, Voyage, Cohere, Cloudflare) - Detect empty/placeholder API key values Resolves CROSS_PLATFORM_TASKS.md - Issue K3 (Priority 2). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the
✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Review: Approved ✅This PR adds useful API key validation to Changes IncorporatedThis feature has been incorporated into the PMOVES.AI-Edition-Hardened branch (commit Minor Suggestion for Follow-upThere's a This doesn't block approval - the feature is valuable as-is. |
This commit incorporates the remaining changes from open PRs that were not included in the initial port consistency fix commit: **From PR #590 (WSL2 --project-directory)** - Add --project-directory to apply_migrations_docker.sh - Add --project-directory to smoke-tests.sh - Add --project-directory to validate-phase1-hardening.sh - Remove unsafe 'cd' pattern, use explicit paths instead **From PR #591 (API Key Validation)** - Add provider API key validation to env_check.sh - Checks for OpenAI, Anthropic, Groq, Gemini, Ollama - Warns about empty/placeholder API keys - Provides helpful configuration tips **From PR #587 (Security Update)** - Update python-multipart to 0.0.22 (CVE-2026-24486 fix) - Applied to agentgym-rl-coordinator and Enhanced Media Stack plans - NOTE: Transformers constraint kept at <4.50.0 for FlagEmbedding All superseded PRs can now be closed. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit brings all production hardening changes from PMOVES.AI-Edition-Hardened into main, including: ## Submodule Updates - Comprehensive submodule configuration updates (PR #598) - All submodules verified and aligned to PMOVES.AI-Edition-Hardened branches ## Production Fixes - Port consistency fixes (TensorZero internal port 3000 vs external 3030) - WSL2 Docker Desktop compatibility (--project-directory flag in Makefile) - ClickHouse URL format with embedded credentials - Network cleanup improvements ## CI/CD Enhancements - Provider API key validation added to env_check.sh (PR #591) - Automated port consistency checking script ## Documentation - WSL2 bring-up guide (PR #595) - Production readiness audit documentation - Submodule branch alignment audit ## Security - All P0 security checks passing - CODEOWNERS and Dependabot configured across submodules Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Summary
Add pre-flight validation for LLM provider API keys to catch configuration issues before services start.
Changes
Example Output
Test Plan
make env-checkwith no API keys setmake env-checkwith one provider configuredResolves
CROSS_PLATFORM_TASKS.mdIssue K3 (Priority 2).🤖 Generated with Claude Code