docs(adr): amend ADR-0032 with the pre-merge Ansible dry run #222

Merged
Defame1297 merged 1 commits from docs/adr-0032-ansible-dry-run into main 2026-11-25 16:53:29 +00:00
Owner

Closes #219. Records decision 10 of Pre-merge Ansible dry run without exposing production credentials in ADR-0032.

Changes

  • Secrets: the "reopened" sentence is replaced by the dry-run design. It runs in CI from the base branch's copy (pull_request_target) with production credentials. It runs automatically on human-authored PRs. On bot PRs an allowlisted human's Dry run label gates it, and the label must be re-added after every bot push. It covers only the affected Ansible stages and shares the homelab-provision concurrency group. The status is evidence, not a verdict. It also states that the gate guards against accidents, not against a hostile bot.
  • Enforcement layers: a short version that points to Secrets. This is a deliberate deviation from the ticket, which asked for the full paragraph here too; the ADR now avoids repeating it.
  • Considered Options:
    • New rejection: a scoped vault or a check-only SSH user for the CI run (become is root; a scoped vault drifts).
    • The gated-run rejection is narrowed to ungated runs on bot PRs.
  • Consequences:
    • New accepted risk: human-authored PRs run PR code against production before approval.
    • New amendment entry, dated 2026-11-25.

Reviewed by a subagent against #219 and #200. All seven findings were applied (two should-fix: decisions 1 and 2 of #200 were missing). Docs only, no version bump.

🤖 Generated with Claude Code

https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi

Closes #219. Records decision 10 of [Pre-merge Ansible dry run without exposing production credentials](https://git.rkdr.net/Mortis/Holocron/issues/200) in ADR-0032. ## Changes - **Secrets:** the "reopened" sentence is replaced by the dry-run design. It runs in CI from the base branch's copy (`pull_request_target`) with production credentials. It runs automatically on human-authored PRs. On bot PRs an allowlisted human's `Dry run` label gates it, and the label must be re-added after every bot push. It covers only the affected Ansible stages and shares the `homelab-provision` concurrency group. The status is evidence, not a verdict. It also states that the gate guards against accidents, not against a hostile bot. - **Enforcement layers:** a short version that points to Secrets. This is a deliberate deviation from the ticket, which asked for the full paragraph here too; the ADR now avoids repeating it. - **Considered Options:** - New rejection: a scoped vault or a check-only SSH user for the CI run (`become` is root; a scoped vault drifts). - The gated-run rejection is narrowed to *ungated* runs on bot PRs. - **Consequences:** - New accepted risk: human-authored PRs run PR code against production before approval. - New amendment entry, dated 2026-11-25. Reviewed by a subagent against #219 and #200. All seven findings were applied (two should-fix: decisions 1 and 2 of #200 were missing). Docs only, no version bump. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
Claude added 1 commit 2026-11-25 16:51:32 +00:00
The reopened Ansible --check --diff now runs in CI from the base
branch's copy (pull_request_target) with production credentials:
automatic on human-authored PRs, gated on bot PRs by an allowlisted
human's Dry run label, renewed per push. Secrets carries the full
rule; Enforcement layers keeps a short version pointing there.

The gated-run rejection in Considered Options narrows to ungated runs
on bot PRs, and human PRs running PR code against production before
approval becomes an accepted risk.

Refs: #219, #200

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
Defame1297 merged commit e3d4219323 into main 2026-11-25 16:53:29 +00:00
Defame1297 deleted branch docs/adr-0032-ansible-dry-run 2026-11-25 16:53:31 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mortis/Holocron#222