From 9249082857d407dde4e22e672b615631a294279e Mon Sep 17 00:00:00 2001 From: Igor Soarez Date: Wed, 18 Nov 2026 17:34:25 +0000 Subject: szecret get-local/put-local: find the store's key in a bucket too, not only in the old store --- secrets/common.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'secrets/common.sh') diff --git a/secrets/common.sh b/secrets/common.sh index 5eee8b6..b839cef 100644 --- a/secrets/common.sh +++ b/secrets/common.sh @@ -164,11 +164,11 @@ local_key_name() { ensure_local_store() { local local_store_name="$1" local local_key_name - local local_key_file local_key_name="$(local_key_name "${local_store_name}")" - local_key_file="$(file_for "${local_key_name}")" - if ! [[ -r "${local_key_file}" ]]; then + # Wherever its key is, the old store or a bucket; whether this machine can + # open it is get's to say. + if ! (find_secret "${local_key_name}" >/dev/null 2>&1); then >&2 echo "ERROR: Local store '${local_store_name}' does not exist (key: ${local_key_name})" exit 1 fi -- cgit v1.2.3