Finish credential boundary admin setup in ansible-homelab-mono #203

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

Part of #166

Question

Finish the admin-only steps of the ADR-0032 credential boundary in ansible-homelab-mono. They were deferred by the owner from Credential boundary setup in ansible-homelab-mono; the agent-side work there is merged. This blocks only the destination test. Without it, the bot can merge its own PRs, and in this repo a merge is an apply.

Human (admin) work:

  • Branch protection on main
    • Require a PR, with 1 approval.
    • Approvals allowlist: Defame1297 only.
    • Merge allowlist: humans only, Claude excluded.
    • Dismiss stale approvals.
    • Block on rejected reviews and on an outdated branch.
    • Required checks:
      • Ansible Lint Validation / lint_ansible (pull_request)
      • Flux Dry Run / flux_dry_run (pull_request)
      • Test Paths Frozen / test_paths_frozen (pull_request)
    • Protected file patterns: .claude/**;.apm/**;apm.yml;apm.lock.yaml;AGENTS.md;CLAUDE.md;docs/agents/**;.gitea/**;.pre-commit-config.yaml
    • Observe once whether a human can merge a PR that touches a protected file.
  • Bot token: a token for delivery sessions as Claude, scopes write:repository and write:issue, separate from the planning token.
  • Read-only kubeconfig
    • Mint a token with kubectl create token agent-readonly -n agent-readonly --duration=8h.
    • Write /root/.kube/agent-readonly.config (mode 600, never echo the token).
    • Verify with it: can-i get secrets -A gives no, delete pods -A gives no, list sealedsecrets.bitnami.com -A gives yes.
  • Gate-label allowlist: confirm Defame1297 is the only human who sets gate labels.

The resolution records the observed protected-file behaviour and any fact that differs from the above.

Part of #166 ## Question Finish the admin-only steps of the ADR-0032 credential boundary in `ansible-homelab-mono`. They were deferred by the owner from [Credential boundary setup in ansible-homelab-mono](https://git.rkdr.net/Mortis/Holocron/issues/184); the agent-side work there is merged. This blocks only the destination test. Without it, the bot can merge its own PRs, and in this repo a merge is an apply. Human (admin) work: - [ ] **Branch protection on `main`** - [ ] Require a PR, with 1 approval. - [ ] Approvals allowlist: `Defame1297` only. - [ ] Merge allowlist: humans only, `Claude` excluded. - [ ] Dismiss stale approvals. - [ ] Block on rejected reviews and on an outdated branch. - [ ] Required checks: - `Ansible Lint Validation / lint_ansible (pull_request)` - `Flux Dry Run / flux_dry_run (pull_request)` - `Test Paths Frozen / test_paths_frozen (pull_request)` - [ ] Protected file patterns: `.claude/**;.apm/**;apm.yml;apm.lock.yaml;AGENTS.md;CLAUDE.md;docs/agents/**;.gitea/**;.pre-commit-config.yaml` - [ ] Observe once whether a human can merge a PR that touches a protected file. - [ ] **Bot token:** a token for delivery sessions as `Claude`, scopes `write:repository` and `write:issue`, separate from the planning token. - [ ] **Read-only kubeconfig** - [ ] Mint a token with `kubectl create token agent-readonly -n agent-readonly --duration=8h`. - [ ] Write `/root/.kube/agent-readonly.config` (mode 600, never echo the token). - [ ] Verify with it: `can-i get secrets -A` gives no, `delete pods -A` gives no, `list sealedsecrets.bitnami.com -A` gives yes. - [ ] **Gate-label allowlist:** confirm `Defame1297` is the only human who sets gate labels. The resolution records the observed protected-file behaviour and any fact that differs from the above.
Claude added this to the Map: Infra and agent-team packages milestone 2026-11-22 19:17:07 +00:00
Claude added the Wayfinder/Task label 2026-11-22 19:17:07 +00:00
Claude added a new dependency 2026-11-22 19:17:10 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: Mortis/Holocron#203