wiki: users and permissions for the new booth, TypeScript with Docker
New decision page booth-users-and-permissions: identity has its home in the platform and the booth is in constant two-way sync, local login from the copy, product keys auth and parking, 37 proposed keys with all 44 of today's permissions mapped, two jobs, the rules, key-pair signing, what the platform needs, and what is left to the sync design. Hub page event-driven-refactor: the decisions of 2026-11-23 on users and permissions, validation and car wash out of the booth (postponed), and the language (TypeScript with Docker; Rust abandoned). Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RZgP5oZdzvo92Eouc9eRv5
This commit is contained in:
+130
@@ -4069,3 +4069,133 @@ the camera gate on the entry button stays; a camera that is healthy but blinded
|
||||
matter of the business, not the system's concern. The two points are marked settled on
|
||||
[[event-driven-refactor]]; the notes on [[entry-double-press]], [[operator-issued-entry]] and
|
||||
[[entry-presence-bypass]] say so.
|
||||
|
||||
## [2026-11-23] query | Event-driven refactor — the guideline read against the repository
|
||||
The user handed over `EDA/wiki/guideline-joining-the-platform.md`. Read against this repository
|
||||
and recorded on [[event-driven-refactor]]: its Rule 1 row by row against what the code does
|
||||
today, the required technologies against the repository's guide, what the guideline does not
|
||||
answer (video, device logins, a booth screen with no link, the ledger's signer), and which of its
|
||||
steps lie outside this repository. Whether parking joins the platform as a leaf is on the
|
||||
guideline's own "Not decided" list. Nothing designed, nothing built.
|
||||
|
||||
## [2026-11-23] query | Event-driven refactor — scope, and the Rust question
|
||||
The user: a multi-tenant core for all future parks that only shows synced records; park-buzi and
|
||||
park-2 stay out for now and migrate later; the park is offline-first and the leaf lives without
|
||||
the core; the guideline binds only the structure of users and permissions. Asked, not decided:
|
||||
drop Docker on the leaf and rebuild every service in Rust, starting with users and permissions.
|
||||
Measured park-lab's memory and disk per service and sized the code; on [[event-driven-refactor]].
|
||||
|
||||
## [2026-11-23] query | Event-driven refactor — built on branch `eda_dev`, parallel to the existing code
|
||||
The user: whichever language, the work goes to another branch (`eda_dev`) and is built beside the
|
||||
existing code in new directories (examples: `apps/web_new`, `apps/server_new`). Branch created
|
||||
from `stage`; nothing pushed. Noted on [[event-driven-refactor]] with what the branch does and
|
||||
does not trigger.
|
||||
|
||||
## [2026-11-23] query | Event-driven refactor — users and permissions as the first piece
|
||||
Names agreed: `apps/booth` and `apps/core`. The user: start with users and permissions (the old
|
||||
ones are sloppy); username login with email optional; the booth is the only signer, the core
|
||||
syncs, reads and monitors, and a booth is recovered from the core; the platform admin manages
|
||||
tenants and subscriptions only; a tenant admin can have many parks. The levels are not settled;
|
||||
the assistant's three-ring proposal is recorded as a proposal on [[event-driven-refactor]].
|
||||
|
||||
## [2026-11-23] query | Users and permissions for the new booth — the model
|
||||
The user confirmed the three rings and asked for the model page. New page
|
||||
[[booth-users-and-permissions]]: what is kept from today's scheme (login until logout, the
|
||||
never-locked-out admin, no grant beyond your own, jobs applied by an admin, per-desk money
|
||||
guards, the filtered feed), what the code shows as wrong, the model (users, members, policies
|
||||
with scope, several per member, opaque sessions), a proposed catalogue of 45 keys in four
|
||||
products, all 44 of today's permissions mapped (checked by script against `PERMISSIONS`), the
|
||||
four jobs re-expressed, the rules, what reaches the core (proposed), where the booth differs
|
||||
from the platform, ten open points. Rings moved to "decided" on [[event-driven-refactor]].
|
||||
Nothing built, nothing committed.
|
||||
|
||||
## [2026-11-23] query | Booth users and permissions — validation and car wash out; changes from the core
|
||||
The user, after reading [[booth-users-and-permissions]]: validation and the car wash are to be
|
||||
separate services with their own permission sets, so their keys leave the booth's catalogue,
|
||||
and the jobs Merchant and Wash operator are removed. The catalogue is now 35 keys in two
|
||||
products (`site`, `parking`); the 44 permissions of today are still each mapped, those of the
|
||||
two services as "leaves" (checked by script). The second reversal of 2026-09-05 (a copy of
|
||||
shift and drawer keys per module) no longer arises. The user also asked whether one
|
||||
cryptography can sign the ledger whatever the origin, with the case of a tenant admin creating
|
||||
a booth admin from a phone while the park may be offline. Recorded as raised and proposed, not
|
||||
decided: a key pair per origin, a signed command from the core, the booth as the only writer of
|
||||
its chain, and four points open within it (whose key signs for the person, which changes may
|
||||
start at the core, the first password, the algorithm). Noted on [[event-driven-refactor]].
|
||||
|
||||
## [2026-11-23] query | Booth users and permissions — changes from the core decided
|
||||
The user ruled on the four points of "Changes that start at the core" on
|
||||
[[booth-users-and-permissions]]: the core's key signs for the tenant admin; only users and
|
||||
grants may be changed from the core; the first password is a one-time code; P-256 for ledger
|
||||
entries on both sides. Section moved from proposed to decided. It follows that user changes
|
||||
made at the booth are ledger entries too. Still open: the code's validity, a command whose
|
||||
target changed while offline, the no-grant-beyond-your-own rule for a tenant admin, lockout
|
||||
with the link down. Hub page [[event-driven-refactor]] updated.
|
||||
|
||||
## [2026-11-23] query | Booth users and permissions — three more rulings on commands from the core
|
||||
The user: a one-time code is valid 24 hours from issue; no command is issued while the booth is
|
||||
offline (disabled buttons and a visible note on the core); "no grant beyond your own" holds for
|
||||
the tenant admin. Recorded on [[booth-users-and-permissions]] as rulings 5–7; the walk-through
|
||||
there no longer has a command waiting for an offline park. Open: what "your own" means across
|
||||
the two catalogues, a command sent as the link drops, how the core knows a booth is online. The
|
||||
lockout point was not understood as written and is to be explained again.
|
||||
|
||||
## [2026-11-23] query | Booth users and permissions — no lockout, tenant admin as owner
|
||||
The user: no account is locked for wrong passwords at a booth; a forgotten admin password with
|
||||
the link down is solved by bringing the link up (a personal phone's hotspot) or waiting, then a
|
||||
reset from the core; a tenant admin counts as holding everything on their parks ("the tenant
|
||||
admin is the owner"). Recorded on [[booth-users-and-permissions]] as rule 12 and rulings 8–9.
|
||||
A growing wait between wrong tries is proposed with the no-lock rule and not confirmed.
|
||||
|
||||
## [2026-11-23] query | Booth users and permissions — scoped strings, 12 characters, B2B postponed
|
||||
The user: scope in the permission string is taken (it reverses the 2026-09-05 rejection, with
|
||||
the scope now meaning ownership); a password has at least 12 characters; validation and the
|
||||
car wash will connect to each other and to parking as business to business, postponed, not to
|
||||
be raised again; separate services are built if need be (car wash, hotels, cafés). Recorded on
|
||||
[[booth-users-and-permissions]] and [[event-driven-refactor]]. The product key `site` was not
|
||||
understood as asked and is to be explained again.
|
||||
|
||||
## [2026-11-23] query | Booth users and permissions — one product key, `parking`
|
||||
Asked whether to keep a second product key `site` for what is not parking as a business, the
|
||||
user answered "parking.payment:take. This format". Read as: one product key, `parking`, for
|
||||
every key of the booth. The 17 `site.*` keys were renamed to `parking.*` on
|
||||
[[booth-users-and-permissions]] (35 keys, one product, no clash; mapping and jobs re-checked by
|
||||
script). Consequence noted under entitlements: switching `parking` off would also stop user
|
||||
management, backup and the ledger view unless those keys are excepted.
|
||||
|
||||
## [2026-11-23] query | Booth users and permissions — users and grants under `auth`
|
||||
The user showed the platform's admin console (tenant policies `auth-admin`, `gps-admin`) to
|
||||
make clear what a product key is, and ruled: the booth's user and policy keys move to `auth`,
|
||||
by the separation of concerns already on [[event-driven-refactor]] (Rule 1). The earlier
|
||||
reading "one product key, `parking`" was wrong and is replaced. On
|
||||
[[booth-users-and-permissions]]: `auth.user:read|manage`, `auth.member:read|manage`,
|
||||
`auth.policy:read|manage` with the platform's names (`auth.user:manage` is the booth's own, the
|
||||
platform leaves it out on purpose); 31 keys stay under `parking`; 37 in all, mapping and jobs
|
||||
re-checked by script. `auth` is always on, as on the platform.
|
||||
|
||||
## [2026-11-23] query | Booth users and permissions — home on the platform
|
||||
The user, on the booth-only key `auth.user:manage`: "Why we leave the auth out of the platform?
|
||||
Everything should be in the platform. This, as leaf service will sync everything with the
|
||||
platform." Recorded as a change of direction at the top of [[booth-users-and-permissions]] and
|
||||
on [[event-driven-refactor]]: identity has its home in the platform's auth service, the booth
|
||||
holds a synced copy. The page's sections that place accounts on the booth only are marked as
|
||||
not yet reworked. Four hinge points proposed: no user or policy change at the booth; password
|
||||
hashes reach the booth; who creates a park's operators on the platform; what the rulings on
|
||||
commands from the core become.
|
||||
|
||||
## [2026-11-23] query | Booth users and permissions — reworked for constant sync
|
||||
The user: login at the booth is local, with a cookie for the local domain or IP; users and
|
||||
policies can be changed at the booth whenever, by whoever holds the right, link or not;
|
||||
everything is in constant sync, which is the purpose of the leaf; a park's operators are
|
||||
created by whoever holds the right; and no more questions on changes from the core.
|
||||
[[booth-users-and-permissions]] rebuilt: "Where identity lives" and "The people" replace the
|
||||
three rings and the commands from the core; a table lists each earlier ruling of the day as
|
||||
replaced or standing; "What the platform needs for this" (username login, `auth.user:manage`,
|
||||
a leaf holding identity and hashes, changes taken in from a leaf, the `parking` catalogue);
|
||||
ten technical points are left to the design of the sync with a default each, not to be put to
|
||||
the user again. Catalogue, mapping, jobs and rules unchanged (37 keys, checked by script).
|
||||
[[event-driven-refactor]] and the index updated.
|
||||
|
||||
## [2026-11-23] query | Event-driven refactor — TypeScript with Docker; Rust abandoned
|
||||
The user: "TypeScript with Docker I guess. I abandoned the idea of Rust." Recorded on
|
||||
[[event-driven-refactor]]; the park-lab measurements taken for the Rust question stay as a
|
||||
record. Komodo and the compose-delivered leaf are kept.
|
||||
|
||||
Reference in New Issue
Block a user