9 Commits

Author SHA1 Message Date
Timur Gordon
2625534152 cleanup and refactor 2025-11-13 14:41:30 +01:00
Timur Gordon
285199edac feat: add get_all_runner_status to WASM client and use it to show real runner status in dropdown 2025-11-11 15:09:19 +01:00
Timur Gordon
77e32b360c Unify authentication: store secrets as API keys
- Secrets are now added to ApiKeyStore on supervisor initialization
- Removed duplicate authentication logic in verify_api_key
- Single source of truth: all authentication goes through ApiKeyStore
- Admin/user/register secrets are treated as API keys with appropriate scopes
- Simplified auth_verify - no special case handling needed
2025-11-07 00:42:05 +01:00
Timur Gordon
d6184e7507 Treat secrets as API keys - unify authentication
- Updated verify_api_key() to check secrets first (admin, user, register)
- Secrets are now treated as API keys with appropriate scopes
- All OpenRPC methods now work with secrets (register_runner, list_runners, etc.)
- Simplified auth_verify since verify_api_key handles everything
- Admin UI now fully functional with admin secret from .env
2025-11-07 00:38:33 +01:00
Timur Gordon
43ad9b60aa Fix auth_verify to accept admin/user/register secrets directly
- Check secrets (admin_secrets, user_secrets, register_secrets) before API keys
- Allow UI to authenticate with the secrets provided in .env
- Secrets now work as expected for authentication
- API keys still supported as fallback for backward compatibility
2025-11-07 00:33:09 +01:00
Timur Gordon
278ba18d20 Add support for pre-configured runners from environment variables
- Added RUNNERS env var to .env.example (comma-separated runner names)
- Updated supervisor binary to accept --runners flag
- Runners are automatically registered on startup using first admin secret
- Updated run.sh to pass RUNNERS from env to supervisor binary
2025-11-07 00:15:22 +01:00
Timur Gordon
609af6ec15 Refactor supervisor to use environment variables and simplify binary
- Created scripts/generate_secret.sh to generate supervisor secrets
- Added .env.example with all configuration options
- Created scripts/environment.sh to load env vars from .env
- Updated scripts/run.sh to use env vars and pass as flags
- Simplified supervisor binary:
  - Removed bootstrap-admin-key and config file support
  - Made admin-secret required
  - Minimal output (only URLs)
  - Clean startup with no verbose logging
- Updated .gitignore for .env and log files
2025-11-07 00:08:32 +01:00
Timur Gordon
8a02fffcca Update build/test scripts with clean progress indicators and minimal output 2025-11-06 23:55:17 +01:00
Timur Gordon
6d518599b8 Restructure: move src to core/ crate, move cmd/supervisor.rs to core/src/bin/supervisor.rs, create workspace 2025-11-06 23:30:18 +01:00