Release: harden multiline secret handling
Modular container CI / release-build (push) Has been cancelled

This commit is contained in:
faumaray committed 2026-07-30 03:58:21 +03:00
1 parent ebb751f22c
commit 697db046d3
9 files changed
+133 -56

No files matched your search

+4 -2
View File
@@ -16,6 +16,7 @@ configuration=$(realpath -- "$1")
source "$script_dir/lib/component-ssh.sh"
required_commands=(
base64
cmake
cmp
ctest
@@ -28,6 +29,7 @@ required_commands=(
python3
realpath
ssh
ssh-keygen
zstd
)
for command_name in "${required_commands[@]}"; do
@@ -134,8 +136,8 @@ umask 077
feed_key="$secrets_dir/feed-ed25519.pem"
commit_key="$secrets_dir/feed-commit-key"
allowed_signers="$secrets_dir/tag-allowed-signers"
printf '%s\n' "$ECHOION_FEED_PRIVATE_KEY" >"$feed_key"
printf '%s\n' "$ECHOION_FEED_COMMIT_SIGNING_KEY" >"$commit_key"
echoion_decode_base64_secret "$ECHOION_FEED_PRIVATE_KEY" "$feed_key"
echoion_decode_base64_secret "$ECHOION_FEED_COMMIT_SIGNING_KEY" "$commit_key"
printf '%s\n' "$ECHOION_RELEASE_TAG_ALLOWED_SIGNERS" >"$allowed_signers"
chmod 0600 "$feed_key" "$commit_key" "$allowed_signers"
echoion_configure_component_ssh \