Skip to content

Simplify SSH key env variables #37561

Description

@upodroid

We have so many env variables for SSH:

  • JENKINS_GCE_SSH_PRIVATE_KEY_FILE=/etc/ssh-key-secret/ssh-private
  • GCE_SSH_PRIVATE_KEY_FILE=/etc/ssh-key-secret/ssh-private
  • KUBE_SSH_KEY_PATH=/etc/ssh-key-secret/ssh-private
  • AWS_SSH_PRIVATE_KEY_FILE=/etc/ssh-key-secret/aws-ssh-private
  • AZURE_SSH_PRIVATE_KEY_FILE=/etc/ssh-key-secret/azure-ssh-private

We should only have 3 variables and the preset for each cloud provider will supply the files at the same path regardless of the cloud being used.

KUBE_SSH_USER=prow
KUBE_SSH_PUBLIC_KEY_PATH=/etc/ssh-key-secret/ssh-public
KUBE_SSH_PRIVATE_KEY_PATH=/etc/ssh-key-secret/ssh-private

KUBE_SSH_KEY_PATH=/etc/ssh-key-secret/ssh-private is very widely used and will be offered temporarily before being deprecated. It's being deprecated because it's ambigous and most jobs will need a public key anyway.

Also, the Azure keys don't exist in Secret Manager or defined in the k8s.io repo. 😕

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/cleanupCategorizes issue or PR as related to cleaning up code, process, or technical debt.sig/testingCategorizes an issue or PR as relevant to SIG Testing.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions