Repository navigation
Description
Problem Description
WorkflowTemplate infra-drift (k8s/devops/workflowtemplate-infra-drift.yaml, #5129) mounts Secret devops/infra-ssh-key at /secrets/ssh and reads the key id_ed25519 as ANSIBLE_SSH_PRIVATE_KEY_FILE. #5129 says that the owner writes this Secret with devops k8s push-secrets from the keyring. The table of push-secrets (src/devops_cli/k8s/cluster_secrets.py) has no row for it, and nothing else in the repository makes it.
Evidence, 2026-11-27
After #7364 (release 0.225.0), the controller takes CronWorkflow infra-drift. A Workflow submitted from it at 15:35 UTC got a pod, and the pod stayed in Init:0/1 with this event:
FailedMount: MountVolume.SetUp failed for volume "ssh-key" : secret "infra-ssh-key" not found
uv run devops k8s push-secrets --plan --only devops/infra-ssh-key gives Unknown Secret: devops/infra-ssh-key. So the daily drift run of 06:00 UTC cannot start, and a person has no command to write the Secret.
Expected Behavior
push-secrets has a row for devops/infra-ssh-key with the key id_ed25519, read from the keyring, as the other Secrets of namespace devops. A person runs uv run devops k8s push-secrets --only devops/infra-ssh-key, and the next infra-drift Workflow mounts the key.
Acceptance Criteria
-
uv run devops k8s push-secrets --plan --only devops/infra-ssh-keynames the Secret and its keyid_ed25519, and makes no write. - docs/CLUSTER.md (Cluster Secrets) names the Secret, its key and its keyring source.
- Pending a person: after the push, a Workflow submitted from
cronwf/infra-driftgets past the mount ofssh-key.
Related
- feat(infra): run drift in the cluster and plan infra PRs #5129 (delivered the WorkflowTemplate), fix(k8s): Fix infra-drift CronWorkflow schedules and executor #7364 (the controller now takes the CronWorkflow), feat(infra): manage infra repos with devops infra #5120 (the infra commands).
Alternatives check of 2026-11-27: none.
Tool: none found.
Reason: Searches found External Secrets Operator and the keyring library, but they sync cloud secret managers or read the local OS keychain; neither writes a Kubernetes Secret from a keyring, so this stays one row of project code.
Covers:
- Syncs Secrets from cloud secret managers into the cluster
- Reads a stored key from the local OS keychain
- Keeps the Secret value out of git
Lacks:
- No row in the project push-secrets table
- No plan or only filter for one named Secret
- No bridge from a workstation keyring to a namespace Secret
- No Cluster Secrets doc entry
Activity
dan-petty commentedon Nov 27, 2026
The daily infra-drift cron job fails at pod init with FailedMount and no command exists to write the Secret.devops-cli-service commentedon Nov 27, 2026
Next step: the alternatives check records a verdict. See the section Proposed design of the body.
devops-cli-service commentedon Nov 27, 2026
The result in the alternatives block of the issue body changed. Before this check: no check. A person decides what the new result means for the item.
Searches (10)
Tools considered:
Searches run:
Sources:
devops-cli-service commentedon Nov 27, 2026
Released in v0.228.1: https://github.com/dan-petty/devops-cli/releases/tag/v0.228.1
devops-cli-service commentedon Nov 27, 2026
Live since 2026-11-27 18:39 UTC
dan-petty commentedon Nov 27, 2026
Live proof, 2026-11-27: the owner stored the key with
devops config set infra.ssh_private_key --from-file, andpush-secrets --only devops/infra-ssh-keygaveid_ed25519 (keyring infra_ssh_private_key) created; restarted: none. Workflowinfra-drift-manual-nsc84fromcronwf/infra-driftthen mounted the Secret with noFailedMountevent and endedSucceededat 19:26:09 UTC. The run checked no repository, because the cluster config has noinfra.repos(#7460), so the key is not used by Ansible yet.