secrets: .env allowlist preflight guard + file fallback for lab-dns (follow-up to #578) #592
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#592
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?
Follow-up from #578 (its third bullet + the caveat found while closing it):
.sandcastle/.envcontains keys beyond the allowlist (CLAUDE_CODE_OAUTH_TOKEN+ non-secret config) — same fail-closed pattern as the empty-secret check. Stops the docker-inspect leak class recurring..claude/skills/lab-dns/lab-dns(reads only env/.envforOURCLOUD_LAB_DNS_TOKEN) should fall back to.sandcastle/secrets/ourcloud_lab_dns_token(file now exists on the dev laptop), matching notify-mattermost.sh's pattern.Two-way door, agent-shaped (ADR 0174).
swarm-claim host=matou-dev-server-01 run=7708
(automated multi-host claim — lowest live claim id works this ticket)
Ruled by agent under ADR 0174 — veto anytime. Split this two-part follow-up:
Part 2 (lab-dns file fallback) — shipped this iteration.
load_credsnowresolves
OURCLOUD_LAB_DNS_TOKENfrom a read-only secret file(
/run/secrets/ourcloud_lab_dns_tokenin-sandbox,.sandcastle/secrets/ourcloud_lab_dns_tokenon a host run) before the
.envfallback, mirroringnotify-mattermost.sh/ theclan-labskill. Empty files are skipped (content-not-existence, GOTCHAS §4).Proven by
.claude/skills/lab-dns/lab-dns-test.sh(red→green at theload_credsseam).Part 1 (preflight allowlist guard) — filed as #593,
ready-for-session. Theguard must live in
run-swarm.sh/preflight-swarm.sh— protected.sandcastle/paths (rule 9 / #445), which a swarm worker cannot edit (the tree-fingerprint rolls
it back and reds the run). It needs an interactive session's standing, not a swarm slice.
Why two-way door: part 2 is a purely additive credential-source fallback, revertible by a
later commit and proven by the seam test; it widens no security posture (still fails closed,
still one token, still file-not-env). Part 1 is escalated, not ruled, exactly because #445
reserves protected-path machinery changes for a session.
Closing #592 on part 2; part 1 continues in #593.
close-report for #592 — status
success✅ close-report gates passed — every claim verified against main; closing.
envelope