Skip to content

Config Validation: 4 critical config issues found #530

Closed

Description

@vybe

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) and docker-compose.prod.yml (line 40) as ${GOOGLE_API_KEY:-}
  • Read in src/backend/config.py:104 as fallback when GEMINI_API_KEY is not set
  • Read in src/backend/services/settings_service.py:84 and src/backend/services/agent_service/crud.py:385
  • Users creating Gemini-powered agents need this but .env.example provides 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.yml still injects AUTH0_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_DOMAIN as 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.example line 106 defines AUDIT_URL=http://audit-logger:8001
  • Zero references in src/backend/ — no code ever reads this variable
  • audit-logger service does not exist in either compose file
  • Dead config that misleads operators into thinking an audit-logger service is required

Recommended Actions

  1. Add to .env.example: GOOGLE_API_KEY (for Gemini-powered agents) and FRONTEND_URL (for OAuth + SSH host detection in production)
  2. 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)
  3. 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

Activity

  1. added
    priority-p1
    type-bug
    automated
    on Apr 27, 2026
  2. pavshulin commented on May 1, 2026

    @pavshulin
    Contributor

    Superseded by today's daily reports: #603 (architecture), #604 (schema), #605 (config). Closing to keep the latest snapshot canonical.

  3. added
    complexity-low
    theme-infrastructure
    on Jun 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    automatedcomplexity-lowpriority-p1theme-infrastructuretype-bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions