dd2dd53d7e
- zone-anpr-poc: H.264 instead of MJPEG (load, delay, a car in the zone, staff traffic, bad weather); the relay-less test copy is left running - event-driven-refactor (new): the user's decisions of 2026-11-23, what is not decided, what they touch in today's code; waits for the user's guidelines - passage-confirmation: the 2026-11-19 phase order superseded; where the video work lives - vision-hardening, zone-anpr-poc-review: on-screen label read as a plate (moved by the user), day-time oversized box, still pause carried over - pointers on vision-service, camera-live-view, lane-presence-and-anpr-entry, dingtian-vs-mqtt, entry gates, standing decisions, open questions, overview, index Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RZgP5oZdzvo92Eouc9eRv5
64 lines
3.6 KiB
Markdown
64 lines
3.6 KiB
Markdown
---
|
|
type: overview
|
|
tags: [parking, overview, synthesis]
|
|
sources: [parking-system-architecture]
|
|
updated: 2026-11-23
|
|
---
|
|
|
|
# Parking System — Overview
|
|
|
|
The synthesis / entry point for this wiki. Start here, then follow links. Catalog of every page:
|
|
[[index]]. Source summaries: [[parking-system-architecture]].
|
|
|
|
## What it is
|
|
|
|
A **parking-management web application** running on a **dedicated, hardened Linux appliance**
|
|
deployed on-site at a parking facility. Two forces shape nearly every decision:
|
|
|
|
1. **[[offline-first]]** — a park may be air-gapped; nothing core may depend on a network.
|
|
2. **[[threat-model]]** — the primary adversary is the **legitimate operator at the booth**, not
|
|
an outsider. The classic fraud is *take the cash, delete the record.*
|
|
|
|
## The architecture in one pass
|
|
|
|
- **Stack** ([[technology-stack]] / [[standing-decisions]]): [[turborepo]] · [[fastify]] ·
|
|
[[react-vite-spa]] · [[sqlite]] + [[drizzle-orm]] · [[local-jwt-auth]] — all open-licensed to
|
|
avoid lock-in (cf. rejected [[payload-cms]], [[refine]], [[logto-zitadel-oidc]]). The operator UI
|
|
ships as a thin **[[desktop-shell-tauri|Tauri v2]]** kiosk shell (chosen over Electron).
|
|
- **Integrity** is the heart of it: an [[append-only-event-chain]] (hash-chained, signed) plus
|
|
external [[reconciliation]] — *that's* what remote sync really is. Signing is **software today**
|
|
(key on-disk → forgeable by a host owner); a non-extractable **hardware signer** (TPM / USB-HSM;
|
|
the [[atecc608]] is upcoming) is the pending fix — [[hardware-signer-options]]. Encryption at rest
|
|
([[disk-os-hardening]]) defends a secondary threat.
|
|
- **Devices** sit behind a [[device-adapter-pattern]] (swap hardware → new adapter only), with
|
|
the [[barrier-not-a-door]] safety principle keeping physical safety in barrier-operator firmware.
|
|
- **Access control** today is the **[[dingtian-relay]]** relay+input controller behind
|
|
[[network-isolation]] — chosen because its inputs are **decoupled from its relays**, enabling
|
|
host-in-the-loop ticket-first entry (resolving [[access-controller-button-flow]]). The
|
|
[[uhppote-controller]] and [[zkteco-controller]] were evaluated and **rejected** (historical).
|
|
The deeper fork is still the [[trust-boundary]] ([[uhppote-vs-esp32|detection vs. prevention]]);
|
|
the [[esp32-custom-controller]] remains the prevention-grade alternative.
|
|
- **Readers** split two ways ([[entry-exit-readers]]): permit holders via [[wiegand]]
|
|
(autonomous), casual/transient via host-side [[lpr-camera]] / QR; both can share a relay.
|
|
- A reference [[bom]] lists recommended devices.
|
|
|
|
## Where it stands
|
|
|
|
6 [[open-questions]] still drive procurement — most critically **lane topology**, **failure
|
|
modes (fail-open on exit)**, the **reconciliation channel**, and **backup/durability**.
|
|
|
|
**Refactor ahead (user, 2026-11-23):** the repository is to be refactored as a whole along an
|
|
event-driven pattern: a bus between the vision side, the server and the booth screen, no video
|
|
or image work in the server, and the camera as one signal among several. Its shape waits for the
|
|
user's guidelines; nothing is built. See [[event-driven-refactor]].
|
|
|
|
## Reading paths
|
|
|
|
- *Security-first:* [[threat-model]] → [[append-only-event-chain]] → [[reconciliation]] →
|
|
[[uhppote-vs-esp32]].
|
|
- *Hardware-first:* [[bom]] → [[dingtian-relay]] → [[access-controller-button-flow]] →
|
|
[[entry-exit-readers]].
|
|
- *Stack-first:* [[technology-stack]] → [[offline-first]] → [[device-adapter-pattern]].
|
|
- *Vision and the barrier:* [[lpr-camera]] → [[passage-confirmation]] → [[zone-anpr-poc]] →
|
|
[[vision-hardening]].
|