Skip to content

fix(infra): push-secrets has no row for the infra-drift SSH key #7428

Done

Description

@dan-petty

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-key names the Secret and its key id_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-drift gets past the mount of ssh-key.

Related

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

  1. added
    type/bug
    scope/infra
    source/agent
    status/new
    effort/low
    value/high
    on Nov 27, 2026
  2. dan-petty commented on Nov 27, 2026

    @dan-petty
    OwnerAuthor
    • Priority: The daily infra-drift cron job fails at pod init with FailedMount and no command exists to write the Secret.
  3. added
    priority/p0-critical
    owner/agent
    status/in-progress
    and removed
    status/new
    on Nov 27, 2026
  4. devops-cli-service commented on Nov 27, 2026

    @devops-cli-service
    Contributor

    Next step: the alternatives check records a verdict. See the section Proposed design of the body.

  5. devops-cli-service commented on Nov 27, 2026

    @devops-cli-service
    Contributor

    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:

    • External Secrets Operator provider for OS keyring or local keychain, results: 5
    • CLI tool create Kubernetes secret from macOS keychain keyring entry, results: 5
    • kubernetes secrets store csi driver providers list, results: 5
    • external-secrets operator documentation providers, results: 5
    • External Secrets Operator, results: 5
    • github external-secrets external-secrets, results: 5
    • kubernetes secret management tools comparison, results: 5
    • github python keyring kubernetes secret push tool, results: 5
    • github sync macOS keychain entry to kubernetes secret CLI, results: 5
    • github secrets-store-csi-driver providers, results: 5

    Sources:

  6. removed
    status/in-progress
    owner/agent
    on Nov 27, 2026
  7. devops-cli-service commented on Nov 27, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-27 18:39 UTC

  8. dan-petty commented on Nov 27, 2026

    @dan-petty
    OwnerAuthor

    Live proof, 2026-11-27: the owner stored the key with devops config set infra.ssh_private_key --from-file, and push-secrets --only devops/infra-ssh-key gave id_ed25519 (keyring infra_ssh_private_key) created; restarted: none. Workflow infra-drift-manual-nsc84 from cronwf/infra-drift then mounted the Secret with no FailedMount event and ended Succeeded at 19:26:09 UTC. The run checked no repository, because the cluster config has no infra.repos (#7460), so the key is not used by Ansible yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/lowpriority/p0-criticalscope/infrasource/agenttype/bugvalue/high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions