From 3dcee028ce117b409c6b42dcf5145d05267202fa Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Wed, 14 Feb 2024 11:47:23 -0800 Subject: [PATCH] Add step to print current configuration to logs De-secretize pubkeys --- .gitea/workflows/deploy-to-wizard.yml | 10 +++++++++- wizard/config/system.sh | 4 ++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/deploy-to-wizard.yml b/.gitea/workflows/deploy-to-wizard.yml index 544ef7c..339d03e 100644 --- a/.gitea/workflows/deploy-to-wizard.yml +++ b/.gitea/workflows/deploy-to-wizard.yml @@ -34,4 +34,12 @@ jobs: key: ${{ secrets.SSH_KEY_DEPLOY_TO_WIZARD }} script: | cd ~/homelab/wizard/config - /bin/vbash configure.sh \ No newline at end of file + /bin/vbash configure.sh + - name: Show configuration + uses: appleboy/ssh-action@master + with: + host: ${{ vars.SSH_HOST_IP_WIZARD }} # this is a LAN IP + username: ${{ vars.SSH_USERNAME_WIZARD }} + key: ${{ secrets.SSH_KEY_DEPLOY_TO_WIZARD }} + script: | + show configuration \ No newline at end of file diff --git a/wizard/config/system.sh b/wizard/config/system.sh index cfe3afd..01fc11c 100644 --- a/wizard/config/system.sh +++ b/wizard/config/system.sh @@ -18,9 +18,9 @@ set system login user vyos authentication otp key $SYSTEM_LOGIN_USER_VYOS_AUTHEN set system login user vyos authentication otp rate-limit '3' set system login user vyos authentication otp rate-time '30' set system login user vyos authentication otp window-size '3' -set system login user vyos authentication public-keys deploy@gitea.jafner.tools key $SYSTEM_LOGIN_USER_VYOS_AUTHENTICATION_PUBLICKEYS_deploygiteajafnertools_KEY +set system login user vyos authentication public-keys deploy@gitea.jafner.tools key 'AAAAC3NzaC1lZDI1NTE5AAAAIBzQU/ZbpLXgAXUImNKNfkyEkggRfgVDCozOVby/CLMR' set system login user vyos authentication public-keys deploy@gitea.jafner.tools type 'ssh-ed25519' -set system login user vyos authentication public-keys jafner425@gmail.com key $SYSTEM_LOGIN_USER_VYOS_AUTHENTICATION_PUBLICKEYS_jafner425gmailcom_KEY +set system login user vyos authentication public-keys jafner425@gmail.com key 'AAAAC3NzaC1lZDI1NTE5AAAAIMbzncsWNWxoDSqeva/ZoGHv32A0ggUMWfzx2Gz6Kmkk' set system login user vyos authentication public-keys jafner425@gmail.com type 'ssh-ed25519' set system name-server '192.168.1.32' set system name-server 'eth5'