diff options
| author | Peter Stone <thepeterstone@gmail.com> | 2026-01-23 15:59:12 -1000 |
|---|---|---|
| committer | Peter Stone <thepeterstone@gmail.com> | 2026-01-23 15:59:12 -1000 |
| commit | d11334c0999efb670a8eab93527a50f644fdfceb (patch) | |
| tree | 20dbf478122ea2663d91cc2259c5163bbc613a64 /cmd | |
| parent | 54f091e1b920943967c6aebc9c1f3122ce52e267 (diff) | |
Fix high priority issues from code review
- Default password: Fatal error in production if DEFAULT_PASS not set
- API timeouts: Reduce from 30s to 15s (4 APIs × 15s < 60s global)
- Trello lists: Log warning when list fetch fails instead of silent ignore
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/dashboard/main.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd/dashboard/main.go b/cmd/dashboard/main.go index 74cc836..ef94427 100644 --- a/cmd/dashboard/main.go +++ b/cmd/dashboard/main.go @@ -59,6 +59,10 @@ func main() { defaultUser = "admin" } if defaultPass == "" { + if !cfg.Debug { + log.Fatal("CRITICAL: DEFAULT_PASS must be set in production. Set DEBUG=true for development.") + } + log.Println("WARNING: Using default password - set DEFAULT_PASS for production") defaultPass = "changeme" } if err := authService.EnsureDefaultUser(defaultUser, defaultPass); err != nil { |
