Repository navigation
Description
Automated Config Validation Report
Date: 2026-05-11
Triggered by: scheduled /validate-config run
Result: 5 must-fix config issues
Critical Findings
1. SMTP credentials not forwarded to backend container
SMTP_HOST, SMTP_PORT, SMTP_USER, SMTP_PASSWORD are documented in .env.example and read by src/backend/config.py:49-52, but neither docker-compose.yml nor docker-compose.prod.yml includes them in the backend environment: block. Only SMTP_FROM is forwarded. Users who set EMAIL_PROVIDER=smtp get silent auth failures with no error message.
Fix: Add to backend environment: in both compose files:
- SMTP_HOST=${SMTP_HOST:-}
- SMTP_PORT=${SMTP_PORT:-587}
- SMTP_USER=${SMTP_USER:-}
- SMTP_PASSWORD=${SMTP_PASSWORD:-}2. SENDGRID_API_KEY not forwarded to backend container
Documented in .env.example, read at src/backend/config.py:54, but absent from both docker-compose environment: blocks. EMAIL_PROVIDER=sendgrid silently fails.
Fix: Add to backend environment: in both compose files:
- SENDGRID_API_KEY=${SENDGRID_API_KEY:-}3. GOOGLE_API_KEY used but undocumented in .env.example
Both docker-compose.yml:19 and docker-compose.prod.yml:40 forward GOOGLE_API_KEY=${GOOGLE_API_KEY:-} to the backend. It is read at services/settings_service.py:84 and used as a fallback when GEMINI_API_KEY is empty (config.py:104). It is never mentioned in .env.example.
Fix: Add to .env.example:
# Google API Key (for Gemini-powered agents; GEMINI_API_KEY takes precedence for image gen)
GOOGLE_API_KEY=
4. FRONTEND_URL duplicated in .env.example with contradictory descriptions
Line 129: "Public-facing frontend URL — REQUIRED in production"
Line 154: "Frontend URL (for email links, OAuth callbacks) — Leave empty to auto-detect"
Most env parsers use the last value, silently discarding line 129. The two descriptions are contradictory.
Fix: Remove one of the two occurrences and consolidate the description at the first site (line 129).
5. TRINITY_PASSWORD in prod compose has dangerous fallback default
docker-compose.prod.yml:213:
- TRINITY_PASSWORD=${ADMIN_PASSWORD:-changeme}If ADMIN_PASSWORD is ever unset during deployment, the MCP server boots with password changeme. Local docker-compose.yml:144 uses a different variable (${TRINITY_PASSWORD:-}, empty default) — the two files reference different env vars for the same concept, creating operator confusion.
Fix: Align both compose files to use ${TRINITY_PASSWORD:-${ADMIN_PASSWORD:-}} or remove the changeme fallback. Document TRINITY_PASSWORD in .env.example as an alias.
Recommended Actions (in priority order)
- Forward
SMTP_HOST,SMTP_PORT,SMTP_USER,SMTP_PASSWORD,SENDGRID_API_KEYin backend environment block of both compose files - Add
GOOGLE_API_KEYto.env.example - Remove duplicate
FRONTEND_URLfrom.env.example - Remove
changemefallback fromTRINITY_PASSWORDindocker-compose.prod.yml
Generated by scheduled /validate-config run on 2026-05-11
Activity
dolho commentedon May 18, 2026
Triaged + partially fixed in #883 (→
dev).Re-verified all 5 findings against current
dev(this report was generated 2026-05-11; the codebase moved on since):.env.example:130with a 4-line comment block:193;:147is a deliberate# FRONTEND_URL is defined under "PUBLIC ACCESS CONFIGURATION" below.cross-reference, not a contradictory duplicatechangemefallback — stale: nochangemeanywhere; both compose files consistently use${ADMIN_PASSWORD}(prod fail-fast:?, local empty default:-)Net: 2 of 5 were still actionable. #883 fixes those two with minimal scope. The remaining 3 require no change — recommend closing this issue once #883 merges.
(Process note: the scheduled
/validate-configreport wasn't re-validated before filing, so 60% of it was already-fixed by the time it was triaged. Worth having the job diff against currentdevat triage time.)fix(config): forward SMTP + SendGrid env to backend container (#771) (#…
vybe commentedon Jun 1, 2026
Shipped in v0.6.0 (released via #998).
Release: v0.7.0 (#1319)