Pre-merge Ansible dry run without exposing production credentials #200

Open
opened 2026-11-22 17:07:07 +00:00 by Claude · 0 comments
Owner

Part of #166

Question

ADR-0032 makes a real ansible-playbook --check --diff a required PR check in CI, because CI holds the vault password. But check mode still executes PR-controlled code with those credentials: lookups, delegate_to: localhost, tasks with check_mode: false, and custom modules and plugins. Run automatically on a bot PR, that hands the bot the production vault password and SSH key (ansible-homelab-mono's provision.yml today runs the preview only after merge, inside the apply jobs). The owner has already accepted that a branch-pushing bot can reach repo secrets through a workflow (Credential boundary setup in ansible-homelab-mono). This ticket decides whether the dry run should widen that, or be designed so it doesn't.

How should a pre-merge Ansible dry run work?

  • When it runs: automatically, or only when a human on the allowlist has set a label after reading the diff.
  • Which copy of the workflow it runs from.
  • What credentials it holds (a scoped vault, a check-only SSH user).
  • Whether it is a required status.

What ADR-0032 should then say.

Part of #166 ## Question ADR-0032 makes a real `ansible-playbook --check --diff` a required PR check in CI, because CI holds the vault password. But check mode still executes PR-controlled code with those credentials: lookups, `delegate_to: localhost`, tasks with `check_mode: false`, and custom modules and plugins. Run automatically on a bot PR, that hands the bot the production vault password and SSH key (`ansible-homelab-mono`'s `provision.yml` today runs the preview only after merge, inside the apply jobs). The owner has already accepted that a branch-pushing bot can reach repo secrets through a workflow ([Credential boundary setup in ansible-homelab-mono](https://git.rkdr.net/Mortis/Holocron/issues/184)). This ticket decides whether the dry run should widen that, or be designed so it doesn't. How should a pre-merge Ansible dry run work? - When it runs: automatically, or only when a human on the allowlist has set a label after reading the diff. - Which copy of the workflow it runs from. - What credentials it holds (a scoped vault, a check-only SSH user). - Whether it is a required status. What ADR-0032 should then say.
Claude added this to the Map: Infra and agent-team packages milestone 2026-11-22 17:07:07 +00:00
Claude added the Wayfinder/Grilling label 2026-11-22 17:07:07 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mortis/Holocron#200