diff --git a/CHANGELOG.md b/CHANGELOG.md index 3ce5599..e30c61b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## 2026-10-23 (day, after the release) — the box walk reads Tester 1's address from the guest + +- `scripts/box_walk.py`: Tester 1's guest moved `192.168.0.101` → `.148` (DHCP), and the walk had the address typed, so + its login reached nothing. Its row now names no address and the walk reads it from the guest at start, like 9202's + (`resolve_base` goes through `ssh_args()`, so a row's jump is used). `test_upgrade_bench.py` pins both DHCP rows (40/40). + Proven: `TARGET=tester-1` resolved `https://192.168.0.148` and logged in. Fixed without a row (the size rule). + ## 2026-10-23 (day, later) — D39 = B: the security-fix lane (`09` §3 decision 255, R-1239) An urgent upstream fix with a public notice may reach the boxes at night without the bench: a `security_fix` ladder diff --git a/REPORT.md b/REPORT.md index d1a37e5..53162b7 100644 --- a/REPORT.md +++ b/REPORT.md @@ -11,3 +11,4 @@ 1.43.4 → 1.43.5 walk `proven`; the drill step written; the old controller's night leg skipped it (`not_proven`); a hand press took it. Evidence: felhom.eu `documentation/audits/security-lane-2026-10-23/`. - The live catalog's templates are unchanged; drill entries stay in the drill. +- After the release: the box walk reads Tester 1's guest address (DHCP, `.148` today) instead of a typed `.101`. diff --git a/scripts/box_walk.py b/scripts/box_walk.py index 68071e0..f0b9cd1 100644 --- a/scripts/box_walk.py +++ b/scripts/box_walk.py @@ -34,7 +34,7 @@ DRILL = "/mnt/5_hdd/felhom.eu/drill/app-catalog-drill" # TARGET=9202 (default) scratch guest 9202 on demo-hp # TARGET=9201 demo-hp's hub-enabled guest (the mail proof) — household-shaped, never seeded through an admin # TARGET=tester-1 the Tester 1 box: VM 341 on the HP box (`09` §3 decision 158), its node `felhom` at -# 192.168.0.154, guest 9201 at 192.168.0.101 for felhom.enkicsifelhom.hu (identity matched +# 192.168.0.154, guest 9201 (DHCP — read at start) for felhom.enkicsifelhom.hu (identity matched # 2026-10-06: the agent's report `host.node=felhom` = the VM's certificate; the guest answers # that domain, the other one 404 — `felhom.eu/documentation/audits/readback-2026-10-07/`) # GUEST= still selects a demo-hp row (the old switch), unless TARGET is set. @@ -46,7 +46,7 @@ TARGETS = { "9201": {"hp": "demo-hp", "ssh": "demo-hp", "jump": None, "guest": "9201", "base": "https://192.168.0.155", "domain": "enkisfelhom.hu"}, "tester-1": {"hp": "tester-1", "ssh": "root@192.168.0.154", "jump": "demo-hp", "guest": "9201", - "base": "https://192.168.0.101", "domain": "enkicsifelhom.hu"}, + "base": None, "domain": "enkicsifelhom.hu"}, # DHCP: .101 until 2026-10-23, then .148 — read } TARGET = os.environ.get("TARGET") or os.environ.get("GUEST", "9202") if TARGET not in TARGETS: @@ -55,9 +55,19 @@ _T = TARGETS[TARGET] GUEST = _T["guest"] +def ssh_args(): + """The ssh argv prefix that reaches the target's Proxmox host (a jump when the row names one).""" + a = ["ssh", "-o", "ConnectTimeout=20", "-o", "StrictHostKeyChecking=accept-new"] + if _T["jump"]: + a += ["-J", _T["jump"]] + return a + [_T["ssh"]] + +LOG = [] + + def resolve_base(): """A DHCP guest's dashboard address, read from the guest itself over the host's pct (no guessing).""" - r = subprocess.run(["ssh", "-o", "ConnectTimeout=20", _T["ssh"], "pct", "exec", _T["guest"], "--", "ip", "-4", "-o", + r = subprocess.run(ssh_args() + ["pct", "exec", _T["guest"], "--", "ip", "-4", "-o", "addr", "show", "eth0"], capture_output=True, text=True, timeout=60) m = re.search(r"inet (\d+\.\d+\.\d+\.\d+)/", r.stdout) if not m: @@ -72,16 +82,6 @@ HOSTHDR = f"Host: felhom.{DOMAIN}" HP = _T["hp"] -def ssh_args(): - """The ssh argv prefix that reaches the target's Proxmox host (a jump when the row names one).""" - a = ["ssh", "-o", "ConnectTimeout=20", "-o", "StrictHostKeyChecking=accept-new"] - if _T["jump"]: - a += ["-J", _T["jump"]] - return a + [_T["ssh"]] - -LOG = [] - - def say(*a): line = " ".join(str(x) for x in a) ts = datetime.now().strftime("%H:%M:%S") diff --git a/scripts/test_upgrade_bench.py b/scripts/test_upgrade_bench.py index 582a219..d8fd7a5 100644 --- a/scripts/test_upgrade_bench.py +++ b/scripts/test_upgrade_bench.py @@ -416,7 +416,8 @@ class BoxWalkTargets(unittest.TestCase): for name, row in bw.TARGETS.items(): self.assertEqual(set(row), {"hp", "ssh", "jump", "guest", "base", "domain"}, name) self.assertTrue(row["base"] is None or row["base"].startswith("https://"), name) - self.assertIsNone(bw.TARGETS["9202"]["base"], "9202 is DHCP: its address is read from the guest, never typed") + for dhcp in ("9202", "tester-1"): # Tester 1's guest moved .101 -> .148 on 2026-10-23 + self.assertIsNone(bw.TARGETS[dhcp]["base"], "%s is DHCP: its address is read from the guest, never typed" % dhcp) def test_the_default_stays_scratch_9202(self): bw = self.load({"BASE": "https://192.0.2.1"}) @@ -429,7 +430,7 @@ class BoxWalkTargets(unittest.TestCase): self.assertEqual((bw.HP, bw.GUEST, bw.BASE), ("demo-hp", "9201", "https://192.168.0.155")) def test_the_tester_1_box_is_reached_through_the_hp_box(self): - bw = self.load({"TARGET": "tester-1"}) + bw = self.load({"TARGET": "tester-1", "BASE": "https://192.0.2.1"}) self.assertEqual((bw.HP, bw.GUEST, bw.DOMAIN), ("tester-1", "9201", "enkicsifelhom.hu")) a = bw.ssh_args() self.assertEqual(a[a.index("-J") + 1], "demo-hp")