feat(komodo): park-lab stack on its own 7070 (server park-lab, all modules); wiki: GRUB CLASS lines, dell-wmi-sysman admin password
Build & push images / images (push) Successful in 2m56s
Build & push images / images (push) Successful in 2m56s
- resources.toml: repoint the park-lab stack from art-docker-station to the dedicated park-lab Periphery; drop the shared-host port remaps (HTTP_PORT/SERVER_PORT/VISION_HOST_PORT); entitle every registered module (parking,validation,carwash); pin TAG=stage-9659373 (park-2's image). - appliance-provisioning §5: both CLASS= lines in /etc/grub.d/10_linux work for --unrestricted (the else-branch interpolates the first); submenu stays restricted; conffile note. - appliance-provisioning §1: authentication/Admin/is_enabled=1 means a BIOS admin password IS set; writes without it fail "Operation not supported", wrong ones "Permission denied"; feed it via read -rs. - fleet-deployment-komodo: park-lab back on a dedicated box (2026-10-20), preflight list (docker group, periphery enable + linger, reboot so the user manager picks up the group), destroy the old stack on the previous host.
This commit is contained in:
+16
-16
@@ -120,17 +120,22 @@ BACKUP_KEY=[[park_2_backup_key]]
|
||||
"""
|
||||
|
||||
##############################################################################
|
||||
# Stack — the LAB BENCH (not a booth): a spare Linux box with the field printer and
|
||||
# whatever device is under investigation, so a booth bug can be reproduced on the booth's
|
||||
# exact image before touching a real site. Same compose files + pinned TAG as the staging
|
||||
# booths. Review outbox under its OWN id (booth-lab) — never a
|
||||
# booth's identity, so bench crops stay separable on the collector. Its own secrets. See wiki/decisions/fleet-deployment-komodo.md.
|
||||
# Stack — the LAB BENCH (not a booth): a dedicated OptiPlex 7070 provisioned like a booth
|
||||
# (LUKS + TPM, Secure Boot, GRUB edit-lock, Periphery `park-lab`, 2026-10-20) with the
|
||||
# field printer and whatever device is under investigation, so a booth bug can be
|
||||
# reproduced on the booth's exact image before touching a real site. Same compose files +
|
||||
# pinned TAG as the staging booths; the ONLY member entitled to EVERY module, so each
|
||||
# feature the solution offers can be exercised here. Review outbox under its OWN id
|
||||
# (booth-lab) — never a booth's identity, so bench crops stay separable on the collector.
|
||||
# Its own secrets. (2026-10-08 → 2026-10-20 it ran on the shared art-docker-station with
|
||||
# HTTP_PORT/SERVER_PORT/VISION_HOST_PORT remapped; a dedicated host needs none of that.)
|
||||
# See wiki/decisions/fleet-deployment-komodo.md.
|
||||
##############################################################################
|
||||
|
||||
[[stack]]
|
||||
name = "park-lab"
|
||||
[stack.config]
|
||||
server = "art-docker-station"
|
||||
server = "park-lab"
|
||||
git_provider = "git.infra.msai.al"
|
||||
git_account = "komodo"
|
||||
repo = "mca/parking_solution"
|
||||
@@ -145,17 +150,12 @@ environment = """
|
||||
REGISTRY=git.infra.msai.al/mca/parking_solution
|
||||
# Lab: pinned to the SAME stage-<sha> as the booth whose bug is being reproduced (bump
|
||||
# alongside it). A lab may float, but a reproduction must run the booth's exact image.
|
||||
TAG=stage-32b4d9e
|
||||
# The lab stack runs on art-docker-station (2026-10-08), a SHARED host: :80 is another service's
|
||||
# and :3000 / :8089 may be too. These three move every host binding (Caddy listen, host-net
|
||||
# server, vision loopback publish); the UI is then http://<station>:8080/. Booth stacks leave
|
||||
# them unset and keep :80 → :3000. See docker-compose.prod.yml + Caddyfile.
|
||||
HTTP_PORT=8080
|
||||
SERVER_PORT=3100
|
||||
VISION_HOST_PORT=8189
|
||||
TAG=stage-9659373
|
||||
COOKIE_SECURE=0
|
||||
# Entitled to Car Wash too, so the wash-desk printer role and till can be exercised on the bench.
|
||||
MODULES_ENTITLED=parking,carwash
|
||||
# EVERY registered module (apps/server/src/modules + @parking/shared MODULES): parking,
|
||||
# validation (the Bar), carwash. The compose default is only parking,validation, so the full
|
||||
# set must be spelled out. The site admin still activates within this set in Setup → Site.
|
||||
MODULES_ENTITLED=parking,validation,carwash
|
||||
# Review outbox ON for the bench too, under its OWN pseudonymous id (booth-lab) and its own
|
||||
# secret — never a real booth's — so lab crops are separable on the collector (per-booth stats,
|
||||
# the export's booth column) and the reviewer can label bench junk "unusable".
|
||||
|
||||
@@ -47,8 +47,13 @@ addresses, tools, hand steps, traps) have their own field runbook: [[site-device
|
||||
Both are also settable from Linux without a site visit via `dell-wmi-sysman`:
|
||||
`cd /sys/class/firmware-attributes/dell-wmi-sysman; echo -n '<admin pw>' | sudo tee authentication/Admin/current_password;
|
||||
echo On | sudo tee attributes/AcPwrRcvry/current_value; echo Enabled | sudo tee attributes/BlockSleep/current_value`
|
||||
(a write that returns `Permission denied` = wrong/missing admin password; with **no** admin
|
||||
password set, write the attribute directly and set one via `authentication/Admin/new_password`).
|
||||
`authentication/Admin/is_enabled` = 1 means an admin password **is** set (it is the BIOS
|
||||
IsPasswordSet flag) and then every attribute write must carry it: a write **without** it fails
|
||||
`Operation not supported (os error 95)` (park-lab 2026-10-20), a **wrong** one `Permission denied`
|
||||
(park-2 2026-10-17). Feed it with `read -rs PW; printf '%s' "$PW" | sudo tee
|
||||
authentication/Admin/current_password` so it never enters shell history; the driver keeps it in
|
||||
memory until reboot. `is_enabled` = 0 → write attributes directly and set a password via
|
||||
`authentication/Admin/new_password`.
|
||||
|
||||
## 2. Boot the Ubuntu 26.04 USB (Secure Boot ON)
|
||||
|
||||
@@ -195,11 +200,23 @@ set superusers="admin"
|
||||
password_pbkdf2 admin grub.pbkdf2.sha512.10000.<YOUR_HASH>
|
||||
```
|
||||
|
||||
Make menu entries bootable WITHOUT the password (edit-only) — in `/etc/grub.d/10_linux`, set the
|
||||
active `CLASS=` line to include `--unrestricted`:
|
||||
Make menu entries bootable WITHOUT the password (edit-only) — append `--unrestricted` to the
|
||||
`CLASS=` variable in `/etc/grub.d/10_linux`. The file has **two** `CLASS=` lines: the plain default
|
||||
near the top, and one inside the `else` branch of the `GRUB_DISTRIBUTOR` check that prepends
|
||||
`--class ubuntu` and interpolates `${CLASS}` (that branch is the one Ubuntu actually takes). Editing
|
||||
**either** works, because the second line carries the first one's value through — park-2 edited the
|
||||
first, a 2026-10-20 unit edited the second; both yield identical `menuentry` lines:
|
||||
```
|
||||
CLASS="--class gnu-linux --class gnu --class os --unrestricted"
|
||||
# — or —
|
||||
CLASS="--class $(echo ${GRUB_DISTRIBUTOR} | tr 'A-Z' 'a-z' | cut -d' ' -f1|LC_ALL=C sed 's,[^[:alnum:]_],_,g') ${CLASS} --unrestricted"
|
||||
```
|
||||
`${CLASS}` is expanded into every `menuentry '…' ${CLASS} $menuentry_id_option …` line, so each OS
|
||||
entry becomes `--class ubuntu --class gnu-linux --class gnu --class os --unrestricted`. The
|
||||
"Advanced options for Ubuntu" `submenu` has no `${CLASS}` and so stays restricted (opening it asks
|
||||
for the GRUB password) — intended; the default top-level entry is what unattended boot uses.
|
||||
`/etc/grub.d/10_linux` is a dpkg conffile of `grub-common`: a GRUB package upgrade keeps the local
|
||||
edit by default, but re-check `grep -c unrestricted /boot/grub/grub.cfg` after any grub upgrade.
|
||||
|
||||
Regenerate + VERIFY BOTH HALVES landed in the real config BEFORE rebooting (a GRUB misconfig means a
|
||||
rescue-USB recovery):
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
type: decision
|
||||
tags: [parking, deployment, fleet, komodo, netbird, offline-first, threat-model]
|
||||
sources: []
|
||||
updated: 2026-09-03
|
||||
updated: 2026-10-20
|
||||
status: settled
|
||||
---
|
||||
|
||||
@@ -199,7 +199,21 @@ publish.
|
||||
|
||||
## park-lab — the lab bench joins the fleet (2026-07-07)
|
||||
|
||||
> **2026-10-08 — park-lab now runs on `art-docker-station`** (`server = "art-docker-station"`,
|
||||
> **2026-10-20 — park-lab is a dedicated OptiPlex 7070 again** (`server = "park-lab"`, Periphery
|
||||
> `connect_as = park-lab`, Netbird `park-lab.nb.infra`, device-net `10.0.10.198`), provisioned
|
||||
> per [[appliance-provisioning]] (LUKS + TPM auto-unlock, Secure Boot, GRUB edit-lock, fwupd
|
||||
> masked) but with ONE account (`park-systems`, sudo) because it is a test bench, not a booth.
|
||||
> The art-docker-station remap below is history: the stack env drops `HTTP_PORT` /
|
||||
> `SERVER_PORT` / `VISION_HOST_PORT` (UI back on `http://park-lab/`), and it is the only stack
|
||||
> entitled to **every** module (`MODULES_ENTITLED=parking,validation,carwash`) so each feature
|
||||
> can be exercised on the bench. Destroy the old `park-lab` containers on art-docker-station
|
||||
> before the sync executes — changing a Stack's `server` does not tear down the previous host.
|
||||
> Preflight on the box before the first deploy: Docker engine + `park-systems` in `docker`,
|
||||
> `systemctl --user enable --now periphery` + `loginctl enable-linger park-systems` (both were
|
||||
> missing on 2026-10-20 — the unit ran but was disabled, same as 2026-09-09's gotcha), delete
|
||||
> the onboarding key in Core.
|
||||
|
||||
> **2026-10-08 — park-lab ran on `art-docker-station` (superseded 2026-10-20, kept for the remap knobs)** (`server = "art-docker-station"`,
|
||||
> the same Periphery that hosts `wash-collector`), so the app can be exercised without the lab
|
||||
> box. That host's `:80` is taken, so the stack env sets **`HTTP_PORT=8080`, `SERVER_PORT=3100`,
|
||||
> `VISION_HOST_PORT=8189`** — three new variables honoured by `docker-compose.prod.yml` and the
|
||||
|
||||
@@ -3545,3 +3545,5 @@ again showing Dell LED code **2,7** = display/graphics POST failure → system b
|
||||
7070: slot-0 passphrase, TPM re-enrolled (PCR 7), unattended reboot verified, AC Recovery On, Block Sleep
|
||||
set via dell-wmi-sysman; no BIOS admin password on the replacement yet. Ledger chain and SQLite intact
|
||||
after two unclean stops. [[appliance-provisioning]] §1/§8 + gotchas 7–8.
|
||||
|
||||
## [2026-10-20] ingest | park-lab back on a dedicated 7070 (server = park-lab, all modules entitled); GRUB CLASS line clarified in appliance-provisioning §5
|
||||
|
||||
Reference in New Issue
Block a user