internal/clan golden-render secretlint reds main: #1801's cache.idss.nz-1 public key is embedded in the gateway render but was never added to goldenRenderAllowList #1824
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#1824
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Symptom
TestGoldenRenderLint_NoSecretInTheConfigRepoandTestGoldenRenderLint_CatchesPlantedSecretsAndShapes(internal/clan/secretlint_test.go) FAIL on cleanorigin/main(verified atc2e17818):This reds
go test ./internal/clan/(and thusnix develop .#go-ci'sgo test ./...) for every worker on main.Cause
#1801 (
7018fb3f) pinned Mātou's binary cache:internal/clan/matoucache.goembeds thecache.idss.nz-1public key (jryaAm0u…) intorenderGatewayGuest(and thus the vmguest render) so standing nodes trust the cache. That key is a DELIBERATE public value (a Nix binary-cache public signing key, not a secret), but it was never added togoldenRenderAllowList()ininternal/clan/secretlint_test.go, so the golden-render secret scan flags it as a "long base64 blob outside a vars/ path". The second test then fails because the real flag pre-empts the planted-secret assertion.Proposed fix
Add a reasoned
goldenRenderAllowListentry for thecache.idss.nz-1public key:Shape: shapeBase64Blob,PathContainsthe gateway/vmguest render (or a value-based allow), with a reason that a Nix binary-cache PUBLIC signing key carries no private material and is embedded by design (matoucache.go, #1801, ADR 0275) — never loosening a detector. Then confirm bothTestGoldenRenderLint_*go green.Found while working #1821 (standing re-supply re-render); unrelated to that slice — filing so main goes green independently.
Relates to #1801, ADR 0275,
internal/clan/secretlint_test.go,internal/clan/matoucache.go.Ruled by agent under ADR 0174 — veto anytime.
Ruling:
bug+ready-for-agent.Verification (against
c2e17818, current HEAD): confirmed by code path.internal/clan/matoucache.gosetsMatouCachePublicKey = "cache.idss.nz-1:jryaAm0uulUbamaQ5/9Shb9SkpMW3rVv49FkzRNOf7E="and splices it intomatouCacheNixSettings, whichrenderGatewayGuest(and the vmguest render) embed. The value after thecache.idss.nz-1:prefix is a 44-char base64 run with mixed case + digits, so it clears thelooksBase64Secretentropy gate, sits outside anyvars/segment, and is not covered bygoldenRenderAllowList()— whose only entry is the front-door CA (FrontDoorTLSGenerator). SoreBase64Run/shapeBase64Blobfires onmachines/gateway/gateway-guest.nixandmachines/vmguest/configuration.nix, reddeningTestGoldenRenderLint_NoSecretInTheConfigRepo; the same real flag pre-empts the planted-secret assertion inTestGoldenRenderLint_CatchesPlantedSecretsAndShapes. Symptom matches the report exactly. (Nogo/nixtoolchain in the triage environment, so this is a static confirmation, not a live run.)Why this is a two-way door: the fix is the designed remedy — a reasoned
goldenRenderAllowList()entry (the test itself instructs "add a reasoned goldenRenderAllowList entry — never loosen a detector"). It is a single Go test-file edit ininternal/clan/, fully revertible by a later commit, and provable green by the two existingTestGoldenRenderLint_*tests. The value is a Nix binary-cache public signing key already committed tomain(ADR 0275, #1801) — recording an already-public, already-shipped value as reviewed is not a security-posture widening, and it touches no credentials, member-facing trust surface, data, or spend. Not a.sandcastle/, host-cred, live-infra, or design-tier surface, so it is a swarm-worker (ready-for-agent) task, notready-for-session. This is not an app report (noorigin: app-reportmarker; filed by the internal build agent), so no landing-pr policy attaches.Agent Brief
Category: bug
Summary: Golden-render secretlint reds
mainbecause thecache.idss.nz-1public signing key embedded by #1801 is absent fromgoldenRenderAllowList().Current behavior:
The rendered gateway baseline embeds Mātou's binary-cache public signing key (
MatouCachePublicKey, thecache.idss.nz-1:jryaAm0u…=string ininternal/clan/matoucache.go) into two rendered machine modules — the gateway guest module (gateway-guest.nix) and the vmguestconfiguration.nix. Neither path is under avars/segment, and the base64 portion of the key clears the entropy gate, so theshapeBase64Blobdetector flags it.goldenRenderAllowList()has no entry for it, soTestGoldenRenderLint_NoSecretInTheConfigRepofails, and because the real detector fires first,TestGoldenRenderLint_CatchesPlantedSecretsAndShapesfails too.go test ./internal/clan/(andnix develop .#go-ci'sgo test ./...) is red for every worker onmain.Desired behavior:
The golden-render secret scan recognises the
cache.idss.nz-1public signing key as a deliberate, reviewed public value and does not flag it, while continuing to catch every genuine secret shape (no detector is loosened). BothTestGoldenRenderLint_*tests pass on a cleanmain.Key interfaces:
goldenRenderAllowList() []allowEntryin the secretlint test — add a reasoned exception (or exceptions) for the cache signing key. EachallowEntryrequires a non-emptyShapeand a non-emptyPathContainsand a writtenReason(enforced byTestGoldenRenderAllowList_EveryEntryCarriesAReason), so a value-only exception is not available — scope byShape: shapeBase64Blobplus the render path(s) that carry the key. Note the key lands in two distinct rendered files (the gateway guest module and the vmguest configuration), so a singlePathContainssubstring may not cover both; cover both.MatouCachePublicKey/matouCacheNixSettingsininternal/clan/matoucache.go— the source of the flagged value; do not change it. Prefer referencing the exported constant (or theGatewayGuestFileNamepath constant) over hard-coding strings, to stay drift-proof.Reasonmust state that this is a Nix binary-cache public signing key (no private material), embedded by design per ADR 0275 / #1801, mirroring the existing front-door-CA entry's justification style.Acceptance criteria:
go test ./internal/clan/ -run TestGoldenRenderLintpasses on a cleanmain.TestGoldenRenderAllowList_EveryEntryCarriesAReasonstill passes (the new entry/entries carry a non-emptyShape,PathContains, andReason).TestGoldenRenderLint_CatchesPlantedSecretsAndShapes) still detects planted secrets and the other secret shapes — no detector regex or entropy gate is weakened.go test ./internal/clan/is green overall.Out of scope:
MatouCachePublicKey,MatouCacheURL,matouCacheNixSettings, or where the key is embedded (that pinning is #1801 / ADR 0275 and guarded byTestMatouCache_PinnedEverywhere).vars/scoping.swarm-claim host=bens-mac-04 run=31863
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #1824 — status
success⛔ close-report gates REFUSED this close — the following claims did not verify:
315ebe93is not reachable from origin/main (not landed)envelope
close-report for #1824 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope