-
Notifications
You must be signed in to change notification settings - Fork 3k
Simplify SSH key env variables #37561
Copy link
Copy link
Open
Labels
kind/cleanupCategorizes issue or PR as related to cleaning up code, process, or technical debt.Categorizes issue or PR as related to cleaning up code, process, or technical debt.sig/testingCategorizes an issue or PR as relevant to SIG Testing.Categorizes an issue or PR as relevant to SIG Testing.
Description
Activity
Metadata
Metadata
Assignees
Labels
kind/cleanupCategorizes issue or PR as related to cleaning up code, process, or technical debt.Categorizes issue or PR as related to cleaning up code, process, or technical debt.sig/testingCategorizes an issue or PR as relevant to SIG Testing.Categorizes an issue or PR as relevant to SIG Testing.
test-infra/config/prow/config.yaml
Line 956 in 9043617
We have so many env variables for SSH:
JENKINS_GCE_SSH_PRIVATE_KEY_FILE=/etc/ssh-key-secret/ssh-privateGCE_SSH_PRIVATE_KEY_FILE=/etc/ssh-key-secret/ssh-privateKUBE_SSH_KEY_PATH=/etc/ssh-key-secret/ssh-privateAWS_SSH_PRIVATE_KEY_FILE=/etc/ssh-key-secret/aws-ssh-privateAZURE_SSH_PRIVATE_KEY_FILE=/etc/ssh-key-secret/azure-ssh-privateWe 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_KEY_PATH=/etc/ssh-key-secret/ssh-privateis 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. 😕