From db05864a69c25f2e1f36f80ddeb822b3fdbfca5b Mon Sep 17 00:00:00 2001 From: sakridge Date: Fri, 27 Sep 2019 10:55:51 -0700 Subject: [PATCH] Add ssh key check (#6149) --- ci/check-ssh-keys.sh | 4 ++++ ci/test-checks.sh | 1 + 2 files changed, 5 insertions(+) create mode 100755 ci/check-ssh-keys.sh diff --git a/ci/check-ssh-keys.sh b/ci/check-ssh-keys.sh new file mode 100755 index 0000000000..854bf0bf37 --- /dev/null +++ b/ci/check-ssh-keys.sh @@ -0,0 +1,4 @@ +if grep -q rsa net/scripts/solana-user-authorized_keys.sh; then + echo "No rsa keys allowed, small key sizes are insecure." + exit 1 +fi diff --git a/ci/test-checks.sh b/ci/test-checks.sh index 90336334ea..4ba7721ff7 100755 --- a/ci/test-checks.sh +++ b/ci/test-checks.sh @@ -24,6 +24,7 @@ _ ci/nits.sh _ ci/order-crates-for-publishing.py _ book/build.sh _ book/build-svg.sh +_ ci/check-ssh-keys.sh { cd programs/bpf