engine-adapters: clan vars get with a bare generator name exits 0 with a masked list (silent wrong value) — fixed under #175 #188

Closed
opened 2026-07-30 17:15:51 +00:00 by ben · 1 comment
Owner

Parent / precedent

Surfaced by the #175 family-1 smoke prep on the golden clan-lab (clan-core db4db726), 2026-07-30. Filed as its own ticket per the #184/#185 split precedent; fixed in the same session under #175 (Ben present and driving), evidence rides #175's smoke run.

The defect

internal/clan/vars.go varsFace.Get drove clan vars get <node> <generator> — the BARE generator name. At the pinned CLI that is a trap, worse than an error:

$ clan vars get node1 probe2 --flake path:/root/lab/clan
  - probe2/answer: ********
  - probe2/secret: ********
exit: 0

Exit 0 with a MASKED LIST — the adapter would wrap - probe2/secret: ******** in a Secret and hand it out as the revealed value. A silent wrong value on the secret-reveal path.

The fix

Get now addresses the FULL var id <generator>/secret — the seam's already-canonical one-var-named-secret-per-generator layout (varSecretPath has always assumed it). The scripted CLI double now refuses a bare generator name the loud way, so the trap can never regress silently. Lab-proven by #175's vars leg (Get returns the real derived value after an answered seal and after each rotation).

Not in scope

Generators whose var file is not named secret — OurCloud provisions its own generators and canonicalizes on files.secret; a foreign-module var read is a different (future) verb.

## Parent / precedent Surfaced by the **#175 family-1 smoke** prep on the golden clan-lab (clan-core `db4db726`), 2026-07-30. Filed as its own ticket per the #184/#185 split precedent; **fixed in the same session** under #175 (Ben present and driving), evidence rides #175's smoke run. ## The defect `internal/clan/vars.go` `varsFace.Get` drove `clan vars get <node> <generator>` — the BARE generator name. At the pinned CLI that is a trap, worse than an error: ``` $ clan vars get node1 probe2 --flake path:/root/lab/clan - probe2/answer: ******** - probe2/secret: ******** exit: 0 ``` **Exit 0 with a MASKED LIST** — the adapter would wrap ` - probe2/secret: ********` in a `Secret` and hand it out as the revealed value. A silent wrong value on the secret-reveal path. ## The fix `Get` now addresses the FULL var id `<generator>/secret` — the seam's already-canonical one-var-named-`secret`-per-generator layout (`varSecretPath` has always assumed it). The scripted CLI double now refuses a bare generator name the loud way, so the trap can never regress silently. Lab-proven by #175's vars leg (`Get` returns the real derived value after an answered seal and after each rotation). ## Not in scope Generators whose var file is not named `secret` — OurCloud provisions its own generators and canonicalizes on `files.secret`; a foreign-module var read is a different (future) verb.
Author
Owner

Fixed in 1344f52 (with 4394d55 for the shared CLI plumbing), lab-proven by the #175 smoke's passing run (2026-07-30): Get now addresses the full <generator>/secret var id; the double refuses a bare name loudly. Evidence: #175's verdicts + docs/spike-findings/smoke-clan-175.md.

Fixed in `1344f52` (with `4394d55` for the shared CLI plumbing), lab-proven by the #175 smoke's passing run (2026-07-30): `Get` now addresses the full `<generator>/secret` var id; the double refuses a bare name loudly. Evidence: #175's verdicts + `docs/spike-findings/smoke-clan-175.md`.
ben closed this issue 2026-07-30 17:45:13 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/idss#188
No description provided.