From 27a9663f9417d6c0ff00f2c7665855ced15db6a7 Mon Sep 17 00:00:00 2001 From: "v.karaychentsev" <105486287+vk-aterise@users.noreply.github.com> Date: Tue, 10 Feb 2026 20:04:11 +0300 Subject: [PATCH] fixed issue with yq syntax (need to wrap .key, .value in braces otherwise ',' breaks priority --- shared/sops-decrypt.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/sops-decrypt.sh b/shared/sops-decrypt.sh index 3d2408a..85d8e7d 100644 --- a/shared/sops-decrypt.sh +++ b/shared/sops-decrypt.sh @@ -32,7 +32,7 @@ for service_dir in ./*/; do install -d -m "$DIR_MODE" -o root -g "$SECRETS_GROUP" -- "$out_dir" sops -d "$secrets_file" \ - | yq -r -0 'to_entries[] | "\(.key)\u0000\(.value)\u0000"' \ + | yq -r -0 'to_entries[] | [.key, .value] | .[]' \ | while IFS= read -r -d '' key && IFS= read -r -d '' value; do [[ "$key" =~ ^[A-Za-z0-9_][-A-Za-z0-9_]*$ ]] || { echo "skip bad key: $key" >&2; continue; }