Correct the docs the gallery work made wrong
Housekeeping, not new behaviour. The status table still said the WebUI was
"nothing beyond the Vite scaffold" and the server was "Phases 1 and 2" at 194
tests, all of which stopped being true three commits ago. A status table that
is wrong is worse than no status table: it is the first thing read and the last
thing checked.
Endpoint lists in server/README.md were taken from the app's own OpenAPI
schema rather than from memory, which is how the last round of this found that
/ingest was documented as multipart when it is a raw body. The operator half is
now listed separately from the device half, because the two authenticate in
ways that must not be mixed up -- bearer token and no cookies on one side,
session cookie plus CSRF on the other.
Ticked auth-checked image serving, which shipped in 735cbcc, and recorded why
there are two delivery paths and only one authorization path.
The test count is 308 because the suite was run, not because 308 was the number
I remembered.
Two comments in api/app.py contradicted the code beside them. One said the
enroll-secret warning was "not fatal at Phase 1 -- no device endpoint exists
yet", six lines above the device endpoints being mounted; it now says the real
reason the API starts anyway, which is that an enrolled camera keeps working
and refusing to start would take the gallery down too. The other said the
Phase 3 UI endpoints were still to come, directly below the two lines that
mount them.
Left alone deliberately: the "12/12 tests" in docs/reviews/**. Those are
point-in-time review snapshots, and updating them to current numbers would
destroy the only thing they are for.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
29c8cf6bfe
commit
f9d0b09d2f
4 files changed
+46
-22
No files matched your search
@@ -26,10 +26,10 @@ Anything here that contradicts SPEC means SPEC needs an edit, not a workaround.
|
||||
| Area | State |
|
||||
|---|---|
|
||||
| Firmware | Written, compiles, **never run on hardware**. Known gaps below. |
|
||||
| Device↔server contract | Specified in full (`firmware/API.md`). Server half of the **device** endpoints implemented (Phase 2); the operator-facing half (firmware upload, device management) waits on user auth in Phase 3. |
|
||||
| Device↔server contract | Specified in full (`firmware/API.md`). Server half of the **device** endpoints implemented (Phase 2). The operator-facing half (firmware upload, device management) no longer waits on auth — that exists now — only on Phase 4. |
|
||||
| Data model | Designed (SPEC §3) + §0 additions, migration written and applied, guarded by a drift test. |
|
||||
| Server | Phases 1 and 2 in [`server/`](server/) — config, schema, health, job queue, scheduler, systemd units, and every device endpoint the firmware calls. Verified on Python 3.14.7 against PostgreSQL 17: 194 tests, migrations applied, real HTTP ingest through the worker to a WebP thumbnail on disk. Not yet on the real host, and **never yet spoken to by real firmware**. |
|
||||
| WebUI | **Nothing exists** beyond the Vite scaffold on `feature/UI_Basic_implementation`. |
|
||||
| Server | Phases 1 and 2 plus the Phase 3 server half, in [`server/`](server/) — config, schema, health, job queue, scheduler, systemd units, every device endpoint the firmware calls, and user auth with the captures API behind it. Verified on Python 3.14.7 against PostgreSQL 17: 308 tests, migrations applied, real HTTP ingest through the worker to a WebP thumbnail on disk. Not yet on the real host, and **never yet spoken to by real firmware**. |
|
||||
| WebUI | Shell, themes, i18n, login and a working cursor-paged gallery on `feature/UI_Basic_implementation`. Devices and System are still honest empty states — they need Phase 4 endpoints. **The gallery's appearance has not been checked in a browser yet.** |
|
||||
|
||||
---
|
||||
|
||||
@@ -188,7 +188,13 @@ and the System page reads live data through the Vite proxy.
|
||||
double-submitted. Accounts come from `poorbird user add` — there is no sign-up endpoint.
|
||||
- [ ] Extend `audit_log` to the *content* mutations (observations, tags, device config) as each
|
||||
endpoint lands. Auth events are covered; nothing else writes to it yet.
|
||||
- [ ] **Auth-checked image serving** — the app authorizes, Caddy serves the bytes. An unguessable URL is not access control
|
||||
- [x] **Auth-checked image serving** — the app authorizes, Caddy serves the bytes via `X-Accel-Redirect`.
|
||||
An unguessable URL is not access control. One authorization path, two ways of finishing the
|
||||
response: `serve_images_directly=true` makes the app send the file for development, where there
|
||||
is no Caddy. Not a separate unauthenticated dev route — that is the kind of thing that survives
|
||||
into production because it works. `poorbird check` validates the sibling `images`/`thumbs`
|
||||
layout the handoff depends on, since getting it wrong yields 404s from Caddy with nothing in
|
||||
the app's log.
|
||||
- [x] TOTP 2FA — enforced at account creation for `admin` rather than at login, because a
|
||||
login-time check can lock the only admin out of their own account. Codes required whenever
|
||||
the account has a secret. Replay inside the ~90s window is documented, not closed.
|
||||
|
||||
Reference in new issue
Block a user