Files
FolderShare/docs/CURRENT_STATE.md
T
2026-11-04 22:18:09 +00:00

37 lines
3.2 KiB
Markdown

# Foldershare current state
- Updated: 2026-11-04
- Inspected worktree: `/home/rob/projects/foldershare`
- Branch and HEAD at inspection: `codex` at `767b424`
## Verified repository state
Before this reconciliation, the tracked tree contained the Flask API and React/Vite frontend described in `PROJECT_OVERVIEW.md`, with no tracked tests, CI workflow, or deployment instructions. Git had one worktree on `main` and no uncommitted or untracked changes. These are repository observations, not proof of working application behavior or a deployed service.
This reconciliation adds Context System 1.0 and Workflow 2.0 documentation only. No application code, configuration, or runtime behavior was changed.
## Current task and validation state
- TASK-001 is Complete. Captain accepted the snapshot script on 2026-11-04 after running it from the project root. The script writes ZIPs to ignored `docs/snapshots/`; `.worktrees/` is also ignored.
- No application tests, lint, build, or runtime checks were run as part of this documentation reconciliation.
- Captain approved TASK-001's branch/worktree convention. Future-task, general merge, and release conventions remain pending in `DECISIONS.md`.
- No manual-test/testtask adapter was found in tracked repository files.
## Known limitations of this record
Application behavior, deployment, and local database state have not been verified. Record confirmed issues here when supported by evidence; do not turn unverified concerns into accepted tasks.
## Static-source review: potential security/functionality gaps (2026-11-04)
These observations are based on the supplied ZIP source, **not runtime exploit tests**:
- `api/routes/user_routes.py`: GET list/detail check admin, but POST create, PATCH update, and DELETE do not check `is_admin`; any authenticated account may be able to modify accounts. Treat as release-blocking until verified/fixed. `get_user` also lacks a missing-user guard.
- `api/routes/file_routes.py`: POST `/api/file` accepts client-supplied `path` and `filename`, without an explicit user-root containment check; this risks unauthorized file download. This endpoint must not be exposed as-is.
- `api/models/user.py`: `get_file_list()` and the admin root listing expose absolute/server paths in tree data; the configured root is formed by string concatenation, without demonstrated canonical containment checks. Symlink handling and filesystem boundaries need review.
- `api/auth.py` / `api/models/user.py` / `api/routes/token_routes.py`: disabled-account/token-refresh behavior needs explicit security tests. Review refresh-cookie `Secure` and `SameSite` settings and token revocation on disable/delete.
- `react/src/components/FileBrowser/FileBrowser.jsx`: download icon is rendered but has no click handler; `apiBaseUrl` is hard-coded to a development URL and unused. End-to-end download flow is unverified.
- `api/routes/file_routes.py`: a nested-quote f-string in the 404 handler may cause a syntax error on some supported Python versions; run syntax/import checks early.
- Tests and production deployment are still unverified. The ZIP is not a live Git repository; its HEAD/branch are historical snapshot metadata.
No source-code security fixes or runtime validation are part of this reconciliation patch.