Add expiring panel auth sessions
This commit is contained in:
@@ -30,3 +30,4 @@ Updated: 2026-04-02
|
||||
14. Added backend tests for config rendering and user-management API edge cases.
|
||||
15. Added editable System settings with shared validation, a system update API, service/port conflict protection, and UI coverage for local save flows.
|
||||
16. Simplified the System tab layout by removing the redundant Runtime card and collapsing those fields into a compact settings section.
|
||||
17. Moved panel auth to server-issued expiring tokens with `sessionStorage` persistence and Compose-configurable credentials/TTL.
|
||||
|
||||
@@ -7,7 +7,7 @@ Updated: 2026-04-02
|
||||
- `000_START_HERE.md`: copy-ready continuation prompt for the next agent session
|
||||
- `.dockerignore`: trims Docker build context to runtime-relevant files only
|
||||
- `AGENTS.md`: repository workflow rules for autonomous contributors
|
||||
- `compose.yaml`: Docker Compose entrypoint for the bundled panel + 3proxy runtime
|
||||
- `compose.yaml`: Docker Compose entrypoint for the bundled panel + 3proxy runtime, including panel auth env defaults
|
||||
- `Dockerfile`: multi-stage image that builds the panel and compiles 3proxy
|
||||
- `README.md`: quick start and current project scope
|
||||
- `package.json`: frontend scripts and dependencies
|
||||
@@ -23,7 +23,7 @@ Updated: 2026-04-02
|
||||
## Frontend
|
||||
|
||||
- `src/main.tsx`: application bootstrap
|
||||
- `src/App.tsx`: authenticated panel shell with API-backed dashboard/user flows and validated local fallback mutations
|
||||
- `src/App.tsx`: authenticated panel shell with API-backed login, `sessionStorage` token persistence, and protected panel mutations
|
||||
- `src/SystemTab.tsx`: editable system settings and managed services form with compact panel-level controls
|
||||
- `src/App.test.tsx`: login-gate, modal interaction, pause/resume, delete-confirm, and system-save UI tests
|
||||
- `src/app.css`: full panel styling
|
||||
@@ -37,8 +37,9 @@ Updated: 2026-04-02
|
||||
## Server
|
||||
|
||||
- `server/index.ts`: backend entrypoint and runtime bootstrap
|
||||
- `server/app.ts`: Express app with panel state, runtime routes, and writable system configuration API
|
||||
- `server/app.ts`: Express app with login, protected panel state/runtime routes, and writable system configuration API
|
||||
- `server/app.test.ts`: API tests for user management plus system-update safety edge cases
|
||||
- `server/lib/auth.ts`: expiring token issuance and bearer-token verification for the panel
|
||||
- `server/lib/config.ts`: 3proxy config renderer, validation, and dashboard derivation
|
||||
- `server/lib/config.test.ts`: config-generation regression tests
|
||||
- `server/lib/runtime.ts`: managed 3proxy process controller
|
||||
|
||||
Reference in New Issue
Block a user