vault: c1 host policies + scoped harbor-config runner AppRole #58

Merged
ginjiruu merged 1 commit from vault/c1-and-harbor-runner into master 2026-11-11 23:35:18 +00:00
Owner

For lab/machine-configs#11 / #14.

hosts.tf: c1 membership

  • think-01..03 (c1 servers) read infra/data/k3s/c1, the full CA set minted by scripts/pki-cluster-ca.sh.
  • All seven c1 members read infra/data/k3s/c1/join (token only) and infra/data/harbor/node-pull.
  • The Pis never get the CA keys. KV policies work per path, not per field, which is why the token also lives alone at /join.

runners.tf: scoped runner AppRoles

  • New mount approle-runners, kept separate from the bootstrap approle, which can configure all of OpenBao.
  • Role harbor-config (role_id harbor-config) can only create/update/read infra/data/harbor/node-pull. SecretIDs and tokens are bound to mini's pod CIDR 10.44.0.0/16.
  • Used by the harbor root (follow-up PR) to publish the cluster-node-pull robot password, which machine-configs cluster.registryMirror renders into /etc/rancher/k3s/registries.yaml.

Plan expectation: adds 1 auth backend, 1 policy and 1 role, and updates 7 host policies in place. Nothing destroyed.

After apply, a SecretID for harbor-config is minted by an admin and goes into a Secret for the harbor-config Terraform object (by hand until ESO, machine-configs#21).

For lab/machine-configs#11 / #14. **hosts.tf: c1 membership** - think-01..03 (c1 servers) read `infra/data/k3s/c1`, the full CA set minted by `scripts/pki-cluster-ca.sh`. - All seven c1 members read `infra/data/k3s/c1/join` (token only) and `infra/data/harbor/node-pull`. - The Pis never get the CA keys. KV policies work per path, not per field, which is why the token also lives alone at `/join`. **runners.tf: scoped runner AppRoles** - New mount `approle-runners`, kept separate from the bootstrap `approle`, which can configure all of OpenBao. - Role `harbor-config` (role_id `harbor-config`) can only create/update/read `infra/data/harbor/node-pull`. SecretIDs and tokens are bound to mini's pod CIDR 10.44.0.0/16. - Used by the harbor root (follow-up PR) to publish the `cluster-node-pull` robot password, which machine-configs `cluster.registryMirror` renders into `/etc/rancher/k3s/registries.yaml`. Plan expectation: adds 1 auth backend, 1 policy and 1 role, and updates 7 host policies in place. Nothing destroyed. After apply, a SecretID for `harbor-config` is minted by an admin and goes into a Secret for the harbor-config Terraform object (by hand until ESO, machine-configs#21).
ginjiruu merged commit f8b394eb85 into master 2026-11-11 23:35:18 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
lab/iac!58
No description provided.