XPS\Micro
2c8cf47564
docs: add Swagger/OpenAPI documentation for DEBUG-API
...
- Install flasgger dependency (0.9.7.1)
- Initialize Swagger in app.py with config
- Add YAML docstring with OpenAPI spec to debug_management()
- Create comprehensive debug-api-swagger.md guide
- Create debug-api-cheatsheet.md for quick reference
- Swagger UI available at /swagger endpoint
- OpenAPI JSON at /openapi.json
2026-02-02 17:25:24 +01:00
XPS\Micro
7b0d48ca32
feat: configure Flask file-based logging for debug API
...
- Add rotating file handler to app.py for logging to /app/logs/spawner.log
- Configure max 10MB per file with 5 backup files
- Update admin_api.py debug endpoint to read from Flask log file
- Implement clear-logs functionality to truncate log file
- Update documentation with Flask log file details
- Creates log directory automatically if missing
2026-02-01 15:51:24 +01:00
XPS\Micro
016ec933e6
fix: update legacy web routes to use slug instead of username
...
- Fix /dashboard route to use current_user.slug for service_url
- Fix /container/restart route to pass current_user.slug to spawn_container()
- Ensures legacy Flask-Login routes work with passwordless authentication
2026-01-31 17:05:45 +01:00
XPS\Micro
d188115db4
Add admin features and email verification
...
Backend:
- First registered user becomes admin automatically
- Email verification required before login
- Admin API with user management endpoints:
- Block/unblock users
- Reset passwords (sends email)
- Delete user containers
- Delete users
- Resend verification emails
- Takeover sessions (Phase 2 dummy)
- New decorators: @admin_required, @verified_required
- SMTP configuration for email sending
- UserState enum (registered/verified/active)
- Activity tracking (last_used field)
Frontend:
- Admin dashboard with color-coded user list
- Green: active, recently used
- Yellow: warning (unverified/inactive)
- Red: critical (long unverified/very long inactive)
- Email verification flow (verify-success/verify-error pages)
- Signup shows verification instructions
- Login handles unverified accounts with resend option
- Admin link in dashboard header for admins
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-31 07:01:51 +01:00
XPS\Micro
c363351483
Initial project structure with documentation
2026-01-30 18:00:41 +01:00