Golden 0.352.0 vouched; token fix finished; why the N100 keeps no time; certificate pin spike on demo-hp
gates / gates (push) Successful in 3m34s

- Golden 0.352.0: bake, publish, one fresh install, the operator's vouch (R-468).
- No clone holds a login in its address; the credential helper script is in the repository (R-925, R-1390).
- N100 clock: a stale cached AppArmor profile stops chrony (R-1301, new R-1388). Read only.
- Certificate pin spike on demo-hp (R-1380): the break, the proven hand repair (runbook), the CA-file test,
  03-host-agent.md 12a, decision D80.
- Rulings of 13:17 written down (09 decisions 297-302). Register 245 -> 248 (R-1388, R-1389, R-1390).
- Docs, evidence and one helper script. No release, no floor change, no hub deploy.

Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
This commit is contained in:
admin committed 2026-11-11 15:15:20 +01:00
1 parent 978666dde3
commit d4c7e84c22
74 files changed
+3376 -14

No files matched your search

@@ -0,0 +1,44 @@
# RUNBOOK — the agent cannot reach Proxmox after a certificate change (pin repair)
**PROVEN on demo-hp 2026-11-11** (`documentation/audits/certpin-spike-2026-11-11/README.md`, R-1380). One box, one
run. Design and the open fix: `architecture/03-host-agent.md` §12a.
## When to use it
All three are true:
1. The agent's log has this line: `proxmox: TLS pin mismatch: server cert sha256 does not match configured fingerprint`
(`journalctl -u felhom-agent -n 50 --no-pager | grep "TLS pin mismatch"`).
2. The operator got the mail `agent_channel_unknown … agentapi: GET /storage: HTTP 502`, or the hub has no new host
report from the box.
3. The guests and the apps are up. (If they are down, this is a different fault.)
## Steps (as root on the Proxmox host)
1. Read the certificate that Proxmox serves, and the pin:
`echo | openssl s_client -connect 127.0.0.1:8006 2>/dev/null | openssl x509 -noout -fingerprint -sha256 -enddate`
`python3 -c "import json;print(json.load(open('/etc/felhom-agent/agent.json'))['proxmox']['tls'])"`
If the two fingerprints are equal, stop: the pin is not the fault.
2. Check that the served certificate is Proxmox's own: its fingerprint must equal the file's.
`openssl x509 -in /etc/pve/local/pve-ssl.pem -noout -fingerprint -sha256`
If they differ, run `systemctl reload pveproxy`, wait 15 seconds, read step 1 again. Do not go on while they differ.
3. Save the config: `cp -p /etc/felhom-agent/agent.json /etc/felhom-agent/agent.json.pre-pin-repair`
4. Write the served fingerprint into `proxmox.tls.fingerprint` in `/etc/felhom-agent/agent.json`. Keep the file's
owner (`felhom-agent`) and mode (`0600`). The script of the proof does this: `tools/setpin.sh fp` in the audit
folder.
5. `systemctl restart felhom-agent` — **one time.** The unit allows 4 starts in 2 minutes; a fifth leaves the agent
stopped until the 2 minutes pass.
6. Proof that it works (a positive sign, not an empty log):
`grep 'felhom-agent@pve' /var/log/pveproxy/access.log | tail -3` shows new lines that end in `200`.
On demo-hp the first one came 2.1 seconds after the restart.
7. At the hub: a new `host-report` from the box in at most 5 minutes, and the event `agent_channel_recovered`.
8. Remove the saved file (it holds the agent's token): `shred -u /etc/felhom-agent/agent.json.pre-pin-repair`
## If the agent does not come back
Put the saved file back (`cp -p …pre-pin-repair agent.json`), wait 2 minutes, restart one time, and read
`journalctl -u felhom-agent -n 80 --no-pager`.
## Not covered
A household box has no path for this today: the steps need root on the host. That is the open part of R-1380.
@@ -123,6 +123,8 @@ R-96 incident record (committed 2026-07-27) — rationale, not directives.
> `cc-secrets/ARCHITECTURE.md` in this workspace. Never `source` or `cat` a credentials file.
> **Deleting a stored secret: operator only (D60, 2026-10-27).** CC never runs `sec rm` or removes anything from the
> store, even after the operator's yes — he runs `sec rm NAME` in his own terminal. The guard refuses it.
> **A repository address never holds a credential (2026-11-11, R-925).** A clone that needs a login uses its own
> credential helper (`felhom.eu/scripts/git-credential-sec.sh`) and `sec run GITEA_GIT_TOKEN -- git …`. Never print a git address.
## Live validation — no browser here