Repository navigation
Closed
Labels
automatedAutomatically generated by scheduled taskscomplexity-lowComplexity: low (board points 1-3)priority-p1Critical paththeme-infrastructureTheme: Infrastructuretype-bugBug fix
Description
Automated Config Validation Report
Date: 2026-04-27
Result: 4 critical config issues require attention
Critical Findings (P0-P1)
1. GOOGLE_API_KEY missing from .env.example (P1)
- Used in
docker-compose.yml(line 19) anddocker-compose.prod.yml(line 40) as${GOOGLE_API_KEY:-} - Read in
src/backend/config.py:104as fallback whenGEMINI_API_KEYis not set - Read in
src/backend/services/settings_service.py:84andsrc/backend/services/agent_service/crud.py:385 - Users creating Gemini-powered agents need this but
.env.exampleprovides no hint it exists
2. FRONTEND_URL missing from .env.example (P1)
- Used in
docker-compose.prod.yml(line 57) as${FRONTEND_URL:-} - Read in
src/backend/config.py:41— used for OAuth redirects - Used in
src/backend/services/ssh_service.py:475— SSH host detection in production - Explicitly documented in
src/backend/services/slack_service.py:465: "Set FRONTEND_URL in .env" - Slack OAuth callback silently fails without this in production
3. Stale Auth0 variables in docker-compose.prod.yml (P1)
- Auth0 was removed from code on 2026-01-01 (per
architecture.md) docker-compose.prod.ymlstill injectsAUTH0_DOMAIN(line 44),AUTH0_ALLOWED_DOMAIN(line 45) without defaults- Frontend prod build still uses
VITE_AUTH0_DOMAIN,VITE_AUTH0_CLIENT_ID,VITE_AUTH0_ALLOWED_DOMAINas build args (lines 97-99) - Creates confusion for operators and may pull stale Auth0 secrets into containers
- None of these vars appear in
.env.example
4. AUDIT_URL documented but unused (P1)
.env.exampleline 106 definesAUDIT_URL=http://audit-logger:8001- Zero references in
src/backend/— no code ever reads this variable audit-loggerservice does not exist in either compose file- Dead config that misleads operators into thinking an audit-logger service is required
Recommended Actions
- Add to
.env.example:GOOGLE_API_KEY(for Gemini-powered agents) andFRONTEND_URL(for OAuth + SSH host detection in production) - Remove from
docker-compose.prod.yml: Auth0 environment vars and frontend build args (AUTH0_DOMAIN,AUTH0_ALLOWED_DOMAIN,VITE_AUTH0_DOMAIN,VITE_AUTH0_CLIENT_ID,VITE_AUTH0_ALLOWED_DOMAIN) - Remove from
.env.example:AUDIT_URL— dead config with no corresponding service or code reference
Informational (no action required — all have safe defaults)
The following vars are used in code but not documented in .env.example. All have defaults and won't block deployment, but advanced operators may want to tune them:
- Log config:
LOG_RETENTION_DAYS(90),LOG_ARCHIVE_ENABLED(true),LOG_CLEANUP_HOUR(3),LOG_ARCHIVE_PATH(/data/archives) - SMTP:
SMTP_HOST,SMTP_PORT(587),SMTP_USER,SMTP_PASSWORD,SENDGRID_API_KEY - Voice:
VOICE_ENABLED(true),VOICE_MODEL,VOICE_MAX_DURATION(300s) - Slack advanced:
SLACK_APP_TOKEN,SLACK_TRANSPORT_MODE(socket),SLACK_AUTO_VERIFY_EMAIL(true),SLACK_WEBHOOK_URL - SSH TTL:
SSH_ACCESS_DEFAULT_TTL_HOURS(4),SSH_ACCESS_MAX_TTL_HOURS(24) - OTel:
OTEL_SAMPLE_RATE(0.1),OTEL_PROMETHEUS_ENDPOINT - Internal:
TRINITY_MCP_URL,SCHEDULER_URL,TRINITY_DB_PATH,TRUSTED_PROXIES,EMAIL_AUTH_ENABLED - MCP server:
MCP_TRANSPORT,MCP_HOST,TRINITY_API_TOKEN,MCP_REQUIRE_API_KEY
Generated by scheduled /validate-config run
Metadata
Metadata
Assignees
Labels
automatedAutomatically generated by scheduled taskscomplexity-lowComplexity: low (board points 1-3)priority-p1Critical paththeme-infrastructureTheme: Infrastructuretype-bugBug fix
Activity
pavshulin commentedon May 1, 2026
Superseded by today's daily reports: #603 (architecture), #604 (schema), #605 (config). Closing to keep the latest snapshot canonical.