1---2name: config-loader-helper3description: Diagnose configuration-related failures, enumerate required env vars, and guide safe local test setup (no secrets).4license: MIT5---67# Config Loader Helper89## When to Use1011- Tests or local runs fail due to missing or mis-set environment variables or toggles.1213## Rules1415- Never ask for or print real secrets.16- Use the authoritative sources listed below for env var discovery.1718## Authoritative Sources1920- `setTestEnv.sh` (test environment)21- `.env.sample` (root), `example/.env.sample`, `example2/cmd/app/.env.sample`22- `config/*.go` (feature checks via `os.Getenv`)23- `llms.txt` (complete env var reference tables)2425## Workflow26271. **Enumerate required keys:** inspect `setTestEnv.sh`, `.env.sample` files, and `config/*.go` for `os.Getenv` calls and feature checks.282. **Group by feature:** present keys grouped by feature toggle (JWT, RDBMS, Redis, MongoDB, Email, 2FA, CORS, Firewall, etc.).293. **Provide minimal local setup:** recommend `source setTestEnv.sh` and any per-test overrides.3031## Key Feature Toggles3233- `gconfig.IsRDBMS()`, `gconfig.IsRedis()`, `gconfig.IsMongo()`34- `gconfig.IsJWT()`, `gconfig.Is2FA()`, `gconfig.IsCORS()`, `gconfig.IsWAF()`35- `gconfig.IsEmailService()`, `gconfig.IsEmailVerificationService()`36- `gconfig.IsHashPass()`, `gconfig.IsCipher()`37- See `llms.txt` for the complete list.3839## Output4041- Required keys (grouped by feature).42- Quick checklist of toggles that enable/disable features.43- Minimal commands to get tests running locally.4445## Examples4647- "Which env vars are needed to run password-recovery tests?"48- "Why is the JWT middleware not activating?"4950## Related Skills5152- `test-runner`, `source-search`, `code-navigation`