picoclaw/pkg/config
zeed zhao 6ea364e67d
feat(web): protect launcher dashboard with token and SPA login (#1953)
Add token-based authentication for the Launcher's embedded Web Dashboard.

- Ephemeral token generated in-memory each run (or via PICOCLAW_LAUNCHER_TOKEN env var)
- HMAC-SHA256 session cookie (HttpOnly, SameSite=Lax, Secure when HTTPS)
- Bearer token support for API/script access
- Rate limiting on login (10 attempts/IP/min)
- Referrer-Policy: no-referrer on all responses
- POST-only logout with JSON content-type (CSRF-safe)
- System tray "Copy dashboard token" action
- Login page shows contextual help (console/tray/log file path)
- Path traversal protection via path.Clean
- X-Forwarded-Host/Port/Proto support for reverse proxy deployments
- Full i18n support (English, Chinese)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-29 13:11:43 +08:00
..
config.go refactor config and security to simplified the structure (#2068) 2026-03-28 00:03:34 +08:00
config_old.go refactor config and security to simplified the structure (#2068) 2026-03-28 00:03:34 +08:00
config_test.go refactor config and security to simplified the structure (#2068) 2026-03-28 00:03:34 +08:00
defaults.go refactor config and security to simplified the structure (#2068) 2026-03-28 00:03:34 +08:00
envkeys.go refactor: centralize environment variable key constants (#1730) 2026-03-18 18:03:24 +08:00
example_security_usage.go Merge branch 'main' into fix-doc 2026-03-25 11:13:17 +08:00
migration.go refactor: seperate security.yml for store keys 2026-03-22 01:55:00 +08:00
migration_integration_test.go refactor config and security to simplified the structure (#2068) 2026-03-28 00:03:34 +08:00
migration_test.go refactor: seperate security.yml for store keys 2026-03-22 01:55:00 +08:00
model_config_test.go refactor config and security to simplified the structure (#2068) 2026-03-28 00:03:34 +08:00
multikey_test.go refactor config and security to simplified the structure (#2068) 2026-03-28 00:03:34 +08:00
security.go refactor config and security to simplified the structure (#2068) 2026-03-28 00:03:34 +08:00
security_integration_test.go feat(web): protect launcher dashboard with token and SPA login (#1953) 2026-03-29 13:11:43 +08:00
security_test.go refactor config and security to simplified the structure (#2068) 2026-03-28 00:03:34 +08:00
version.go feat:Modify the location where version is obtained, and insert version information into the context (#1300) 2026-03-10 17:42:05 +08:00
version_test.go feat:Modify the location where version is obtained, and insert version information into the context (#1300) 2026-03-10 17:42:05 +08:00