Skip to content

Conversation

@SmartDever02
Copy link

Implements issue #783: Add config validator to detect configuration issues before containers start.

Features:

  • Validates required environment variables (common + client-specific)
  • Detects deprecated/renamed environment variables with replacement suggestions
  • Identifies unknown/typo variables with similarity matching
  • Validates URL, port, and numeric formats
  • Provides consolidated error/warning report in single output

Usage:

  • make doctor [ENV_FILE=.env.mainnet]
  • ./scripts/validate-config.sh [env-file]
  • docker compose --profile validation run --rm config-doctor

This solves the problem of:

  • Scattered errors across container logs
  • No clear guidance on fixing configuration issues
  • Time-consuming diagnosis of misconfigurations
  • Silent failures that only appear later

The validator can be run before starting services to catch issues immediately with actionable suggestions.

Contribution by Gittensor, see my contribution statistics at https://gittensor.io/miners/details?githubId=102175066

Implements issue base#783: Add config validator to detect configuration
issues before containers start.

Features:
- Validates required environment variables (common + client-specific)
- Detects deprecated/renamed environment variables with replacement suggestions
- Identifies unknown/typo variables with similarity matching
- Validates URL, port, and numeric formats
- Provides consolidated error/warning report in single output

Usage:
- make doctor [ENV_FILE=.env.mainnet]
- ./scripts/validate-config.sh [env-file]
- docker compose --profile validation run --rm config-doctor

This solves the problem of:
- Scattered errors across container logs
- No clear guidance on fixing configuration issues
- Time-consuming diagnosis of misconfigurations
- Silent failures that only appear later

The validator can be run before starting services to catch issues
immediately with actionable suggestions.
@cb-heimdall
Copy link
Collaborator

🟡 Heimdall Review Status

Requirement Status More Info
Reviews 🟡 0/1
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
2 if repo is sensitive 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 1
1
1 if commit is unverified 1
Sum 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants