A golden-render lint: no secret value or inline key may appear in the config repo #420
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#420
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?
Nothing inspects rendered output for values that must never ship. The dangerous literal class here is a secret baked into the config repo at eval time — exactly what
gatewayEnvExports' comment warns against, and exactly one line away fromfrontdoor.go's deliberatefiles.ca = { secret = false; }(a public value embedded by design). The config repo is replicated to the operator app (ADR 0045), so a leak ships broadly. Reference: the mauke library'sscripts/no-community-literals.sh, which greps for secret-shaped values with a written-reason ALLOW map.Acceptance criteria
go test(besideseedcommunity_eval_test.go's harness, no Nix needed): render a fixture community with known planted secret values, then scan the whole rendered tree for (a) those values, (b) secret-shaped strings — inline private-key blocks, long base64 outside avars/path,ssh-ed25519 AAAAinline keys.ca) are excepted via an allow-list with a written reason per entry — an unexplained entry is how the guard rots.Source: the clan-community (mauke reference fleet) lessons review,
docs/research/2026-08-10-clan-community-lessons.md(lands on main this sitting), lesson 12.Landed in
17d6a8eon main.A no-Nix
go testbeside the eval-smoke harness (internal/clan/secretlint_test.go):renderGoldenFixtureTreeseeds a fixture community and renders the richest tree founding produces, THROUGH the real render functions (never a mirror): the VM-guest baseline, a composed PRIVATE gateway (renderGatewayGuest+ the private front-door TLS generator carryingfiles.ca), a composed PUBLIC own-VPS gateway (front door + self-hosted acme-dns), and every colocatable service surface (files, mail, chat, code, meetings, docs-editing, static sites).scanConfigRepoForSecretswalks the whole tree for (a) known planted VALUES and (b) secret SHAPES — inline private-key blocks, inline SSH public keys (ssh-ed25519 AAAA& co), and long base64 blobs outside avars/path. An entropy gate keeps the blob detector off lowercase-hex git revs (clanCoreRev), base32 store hashes, and all-caps tokens; SRI hashes are skipped. A finding names the offending file AND the matched shape.goldenRenderAllowListexcepts deliberate public values (the front-doorca) with a WRITTEN REASON per entry; a blank reason failsTestGoldenRenderLint_AllowListEveryEntryCarriesAReason— an unexplained entry is how the guard rots.Four tests, all green: the real tree carries no secret (the live guard), the scanner catches each planted value/shape and names the file, the reasoned allow entry suppresses its public value without blanket-silencing the shape elsewhere, and every allow entry carries a reason.
go vet+golangci-lintclean; fullinternal/clansuite green; pre-push gate passed.