Compare commits

..

No commits in common. "master" and "v1.0.0" have entirely different histories.

2 changed files with 1 additions and 7 deletions

View File

@ -1,4 +1,3 @@
project: project:
group: devOps group: devOps
name: trust-ca-ssh name: trust-ca-ssh
integration: cynarski

View File

@ -9,18 +9,13 @@ set -o pipefail
# #
declare -i term_width=120 declare -i term_width=120
host=${1}
key=${2}
h2() { h2() {
printf '\e[1;33m==>\e[37;1m %s\e[0m\n' "$*" printf '\e[1;33m==>\e[37;1m %s\e[0m\n' "$*"
} }
SSHD_CONFIG=/etc/ssh/sshd_config SSHD_CONFIG=/etc/ssh/sshd_config
CA_FILE=/etc/ssh/trusted-ca.pem CA_FILE=/etc/ssh/trusted-ca.pem
VAULT_CERT="https://${host}/v1/${key}/public_key" VAULT_CERT="https://vlt.cynarski.dev/v1/ssh-test/public_key"
echo $VAULT_CERT
if !(grep -q "TrustedUserCAKeys" $SSHD_CONFIG); then if !(grep -q "TrustedUserCAKeys" $SSHD_CONFIG); then
h2 "Add new TrustedUserCAKeys" h2 "Add new TrustedUserCAKeys"