harbor: publish node-pull robot password to OpenBao #59

Merged
ginjiruu merged 1 commit from harbor/publish-node-pull into master 2026-11-11 23:39:26 +00:00
Owner

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

Writes the cluster-node-pull robot's username and password to OpenBao KV infra/harbor/node-pull on every apply. machine-configs cluster.registryMirror has each c1 node's OpenBao agent render /etc/rancher/k3s/registries.yaml from that path. This ports the pull-through file verified on the old RKE2 thinks (flux-clusters bootstrap/configs/registries.yaml.j2), whose password used to come from the old Vault KV secret/harbor-node-pull, which never made it into OpenBao.

  • The vault provider logs in as approle-runners/harbor-config (#58), which can write only that path.
  • No new copy in state: the password was already there via random_password.node_pull.

Merge order: only after the Secret harbor-config-openbao (key openbao_secret_id) exists in mini's flux-system and the flux-clusters change gives harbor-config the runner env (VAULT_ADDR, the lab root CA) and that Secret in varsFrom. Before that, plans fail at provider login.

For lab/machine-configs#11 / #14. Writes the `cluster-node-pull` robot's username and password to OpenBao KV `infra/harbor/node-pull` on every apply. machine-configs `cluster.registryMirror` has each c1 node's OpenBao agent render `/etc/rancher/k3s/registries.yaml` from that path. This ports the pull-through file verified on the old RKE2 thinks (flux-clusters `bootstrap/configs/registries.yaml.j2`), whose password used to come from the old Vault KV `secret/harbor-node-pull`, which never made it into OpenBao. - The vault provider logs in as `approle-runners/harbor-config` (#58), which can write only that path. - No new copy in state: the password was already there via `random_password.node_pull`. **Merge order:** only after the Secret `harbor-config-openbao` (key `openbao_secret_id`) exists in mini's `flux-system` and the flux-clusters change gives `harbor-config` the runner env (VAULT_ADDR, the lab root CA) and that Secret in `varsFrom`. Before that, plans fail at provider login.
ginjiruu merged commit 899687d615 into master 2026-11-11 23:39:26 +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!59
No description provided.