This commit is contained in:
2026-05-23 05:46:02 -06:00
parent 4ed43dab2d
commit 6356b9d6ac
7 changed files with 37 additions and 19 deletions
+17
View File
@@ -0,0 +1,17 @@
archives/*
!archives/README.md
keystores/*
!keystores/README.md
out/*
!out/README.md
out/contents/*
!out/contents/README.md
*.sha256
*.sha512*
*private_*
*.pub*
*.7z*
*.sig*
*/checksums.sha512
*/attribution-checksums.sha512
+16 -13
View File
@@ -69,26 +69,29 @@ if [[ "$attribution_passphrase" != "$attribution_passphrase_check" ]]; then
exit 1
else
echo -e "attribution_passphrase: \033[0;32mOK!\033[0m"
echo "$attribution_passphrase" > "attribution_passphrase_${unix_seconds}.txt
fi
unset attribution_passphrase_check
unset attribution_passphrase
{
printf '%s' "$attribution_passphrase"
cat "$out_dir/contents.7z"
} | sha512sum | awk '{print $1}' > "$out_dir/attribution.sha512"
} | sha512sum | awk '{print $1}' > "$out_dir/attribution-checksum.sha512"
printf "sanity checking: changing working directory to $out_dir"
cd "$out_dir"
checkcode $?
printf "sanity checking: verification"
bash verify-everything.sh
checkcode $?
printf "sanity checking: validate attribution passphrase"
bash test_validation_passphrase.sh
checkcode $?
printf "sanity checking: returning"
cd ..
checkcode $?
# printf "sanity checking: changing working directory to $out_dir"
# cd "$out_dir"
# checkcode $?
# printf "sanity checking: verification"
# bash verify-everything.sh
# checkcode $?
# printf "sanity checking: validate attribution passphrase"
# bash test_validation_passphrase.sh
# checkcode $?
# printf "sanity checking: returning"
# cd ..
# checkcode $?
printf "7z archiving outer dir"
7z a "./out.7z" "$out_dir"
checkcode $?
-2
View File
@@ -1,2 +0,0 @@
# Keystore
Stores encrypted ssh keys and attribution passphrases here in 7z format
+1 -1
View File
@@ -1,6 +1,6 @@
#!/bin/bash
set -e
attrib_hash=$(cat "./attribution.sha512")
attrib_hash=$(cat "./attribution-checksum.sha512")
echo "enter passphrase to test"
read passphrase
+1 -1
View File
@@ -1,6 +1,6 @@
#!/bin/bash
set -e
attrib_hash=$(cat "./attribution.sha512")
attrib_hash=$(cat "./attribution-checksum.sha512")
echo "enter passphrase to test"
read passphrase