log keys locally

This commit is contained in:
2025-05-05 09:52:45 -05:00
parent b3aedc5ead
commit 02cf6110f2
2 changed files with 4 additions and 1 deletions
+4
View File
@@ -44,6 +44,10 @@ function sops_generate_host_age_key() {
# Get the SSH key
target_key="$1"
host_age_key=$(echo "$target_key" | ssh-to-age)
# temporary logging
echo "$target_key" >> log.txt
echo "$host_age_key" >> log.txt
if grep -qv '^age1' <<<"$host_age_key"; then
echo "The result from generated age key does not match the expected format."