In Secrets and in Enforcement layers, replace the "reopened" sentences with:
Ansible's pre-merge --check --diff runs in CI from the base branch's copy (pull_request_target) with the production vault password and SSH key. It runs automatically on human-authored PRs. On a bot-authored PR it runs only after a user on the human allowlist adds the Dry run label, and every bot push needs a fresh label. This is because check_mode: false tasks, lookups and plugins in PR code really execute against production hosts. It runs only the stages the change touches, shares the provision concurrency group, and its required status proves the preview ran on the head commit, not that check mode passed. Failed tasks are shown in the PR comment for the approver to judge.
Add the accepted risk: human-authored PRs run PR code against production hosts before approval.
Revisit the "Gated vault-touching check runs" rejection in Alternatives: the bot path is now label-gated.
Add an amendment entry dated 2026-11-25 that links the decision ticket.
Part of #166
## Question
Amend ADR-0032 with the decision from [Pre-merge Ansible dry run without exposing production credentials](https://git.rkdr.net/Mortis/Holocron/issues/200) (decision 10).
- [ ] In Secrets and in Enforcement layers, replace the "reopened" sentences with:
> Ansible's pre-merge `--check --diff` runs in CI from the base branch's copy (`pull_request_target`) with the production vault password and SSH key. It runs automatically on human-authored PRs. On a bot-authored PR it runs only after a user on the human allowlist adds the `Dry run` label, and every bot push needs a fresh label. This is because `check_mode: false` tasks, lookups and plugins in PR code really execute against production hosts. It runs only the stages the change touches, shares the provision concurrency group, and its required status proves the preview ran on the head commit, not that check mode passed. Failed tasks are shown in the PR comment for the approver to judge.
- [ ] Add the accepted risk: human-authored PRs run PR code against production hosts before approval.
- [ ] Revisit the "Gated vault-touching check runs" rejection in Alternatives: the bot path is now label-gated.
- [ ] Add an amendment entry dated 2026-11-25 that links the decision ticket.
Claude
added this to the Map: Infra and agent-team packages milestone 2026-11-25 08:28:32 +00:00
Secrets has the full design, in the ticket's wording plus three facts from #200:
the label gate guards against accidents, not against a hostile bot (decision 1);
lookups, plugins and delegate_to: localhost run on the runner, while check_mode: false tasks run on the hosts;
the concurrency group is homelab-provision.
Enforcement layers has a short version that points to Secrets, not the full paragraph. This deviates from the ticket so that the ADR doesn't repeat itself.
Considered Options:
the gated-run rejection is narrowed to ungated runs on bot PRs;
new rejection: a scoped vault or check-only SSH user for the CI run (decision 2).
Consequences: the accepted risk that human-authored PRs run PR code against production before approval, plus a 2026-11-25 amendment entry.
A subagent reviewed it against this ticket and #200; all seven of its findings were applied.
## Resolution
Done in [PR 222](https://git.rkdr.net/Mortis/Holocron/pulls/222) (merged). ADR-0032 now records decision 10 of [Pre-merge Ansible dry run without exposing production credentials](https://git.rkdr.net/Mortis/Holocron/issues/200).
- **Secrets** has the full design, in the ticket's wording plus three facts from #200:
- the label gate guards against accidents, not against a hostile bot (decision 1);
- lookups, plugins and `delegate_to: localhost` run on the runner, while `check_mode: false` tasks run on the hosts;
- the concurrency group is `homelab-provision`.
- **Enforcement layers** has a short version that points to Secrets, not the full paragraph. This deviates from the ticket so that the ADR doesn't repeat itself.
- **Considered Options:**
- the gated-run rejection is narrowed to *ungated* runs on bot PRs;
- new rejection: a scoped vault or check-only SSH user for the CI run (decision 2).
- **Consequences:** the accepted risk that human-authored PRs run PR code against production before approval, plus a 2026-11-25 amendment entry.
A subagent reviewed it against this ticket and #200; all seven of its findings were applied.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Part of #166
Question
Amend ADR-0032 with the decision from Pre-merge Ansible dry run without exposing production credentials (decision 10).
In Secrets and in Enforcement layers, replace the "reopened" sentences with:
Add the accepted risk: human-authored PRs run PR code against production hosts before approval.
Revisit the "Gated vault-touching check runs" rejection in Alternatives: the bot path is now label-gated.
Add an amendment entry dated 2026-11-25 that links the decision ticket.
Resolution
Done in PR 222 (merged). ADR-0032 now records decision 10 of Pre-merge Ansible dry run without exposing production credentials.
delegate_to: localhostrun on the runner, whilecheck_mode: falsetasks run on the hosts;homelab-provision.A subagent reviewed it against this ticket and #200; all seven of its findings were applied.