Skip to content

Config Validation: 12 critical config issues found (2026-04-30) #605

Closed as not planned

Description

@vybe

Automated Config Validation Report

Date: 2026-04-30
Result: 12 must-fix config issues found


Critical Findings

1. GOOGLE_API_KEY — Used but undocumented in .env.example

Used in docker-compose.yml backend (${GOOGLE_API_KEY:-}), src/backend/config.py:104, services/settings_service.py:84, and services/agent_service/crud.py:385 for Gemini-powered agent containers. Also present in docker-compose.prod.yml. Completely absent from .env.example.

2. SMTP_HOST, SMTP_PORT, SMTP_USER, SMTP_PASSWORD — SMTP email provider undocumented

.env.example documents EMAIL_PROVIDER=smtp as an option but omits the four SMTP connection vars that are required when smtp is selected (all read in config.py:49-52). Users who configure SMTP email will hit a wall.

3. SENDGRID_API_KEY — SendGrid email provider undocumented

.env.example documents EMAIL_PROVIDER=sendgrid as an option but omits SENDGRID_API_KEY, read in config.py:54.

4. SLACK_APP_TOKEN — Required for Slack Socket Mode (default)

Read in services/settings_service.py:130. Slack Socket Mode is the default transport. This is a required credential for Slack to work, absent from .env.example.

5. SLACK_TRANSPORT_MODE — Slack transport selector undocumented

Read in services/settings_service.py:123. Selects socket vs webhook. Not documented.

6. SLACK_WEBHOOK_URL — Process engine Slack notifications undocumented

Read in services/process_engine/engine/handlers/notification.py:125. Required when process steps use Slack notification type.

7. FRONTEND_URL — OAuth redirect URL undocumented

Read in config.py:41 (OAuth redirects) and services/ssh_service.py:475 (SSH host detection). Present in docker-compose.prod.yml but absent from .env.example.

8. VOICE_ENABLED, VOICE_MODEL, VOICE_MAX_DURATION — VOICE-001 feature undocumented

All three read in config.py:107-109 and used throughout services/gemini_voice.py and routers/voice.py. The entire VOICE-001 feature is not represented in .env.example.

9. LOG_RETENTION_DAYS, LOG_ARCHIVE_ENABLED, LOG_CLEANUP_HOUR — Log archival config undocumented

All three explicitly set in docker-compose.yml backend environment block (lines 35-37) and read in routers/logs.py:83-87 and services/log_archive_service.py:24-26. Absent from .env.example.

10. TRINITY_USERNAME, TRINITY_PASSWORD — MCP server credentials undocumented

Set in docker-compose.yml MCP server section (lines 134-135). TRINITY_PASSWORD must match ADMIN_PASSWORD but this dependency is only in a code comment. Neither appears in .env.example.

11. AUDIT_URL=http://audit-logger:8001 — Stale dead entry in .env.example

Documented in .env.example (line 105) but referenced nowhere in source code (zero grep matches) and no audit-logger service exists in either compose file. Ghost from a removed service — remove to avoid confusion.

12. Stale Auth0 vars in docker-compose.prod.yml

AUTH0_DOMAIN and AUTH0_ALLOWED_DOMAIN are passed to the backend (lines 43-44) and used as frontend build args (VITE_AUTH0_DOMAIN, VITE_AUTH0_CLIENT_ID, VITE_AUTH0_ALLOWED_DOMAIN, lines 97-99). Architecture docs confirm Auth0 was removed on 2026-01-01 and the frontend has no Auth0 code. These stale vars in production compose will confuse operators and should be removed.


Additional Divergence Findings

  • INTERNAL_API_SECRET: local compose uses ${INTERNAL_API_SECRET:-} (optional), prod uses ${INTERNAL_API_SECRET} (required, no default — prod deploy fails if unset). Should be documented prominently.
  • REDIS_PASSWORD: local backend passes it; prod backend omits it entirely and prod Redis runs without auth. Contradicts .env.example guidance to set it for production.
  • OAuth vars (GITHUB_CLIENT_ID/SECRET, NOTION_CLIENT_ID/SECRET, SLACK_*): present in prod compose, absent from local compose — silent local/prod divergence.

Recommended Actions

  1. Add all undocumented vars to .env.example with clear sections: SMTP email, SendGrid, Slack Socket Mode, Voice Chat, Log Archival, MCP Server credentials
  2. Remove AUDIT_URL from .env.example (dead entry)
  3. Remove stale Auth0 env vars from docker-compose.prod.yml (lines 43-44, 97-99)
  4. Add REDIS_PASSWORD to prod compose backend section for parity
  5. Document INTERNAL_API_SECRET as required-in-prod in .env.example

Generated by scheduled /validate-config run

Activity

  1. added
    priority-p1
    type-bug
    automated
    on Apr 30, 2026
  2. vybe commented on May 5, 2026

    @vybe
    ContributorAuthor

    Closing as duplicate of #656 (Config validation). The daily validation process should update a single tracking issue rather than creating new ones each run.

  3. added
    complexity-low
    theme-devex
    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-devextype-bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions