summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Soarez <igor@soarez.org>2026-11-18 19:08:23 +0000
committerIgor Soarez <igor@soarez.org>2026-11-18 19:08:23 +0000
commitb5c48c17923b61b792d08599f160e5de49d77931 (patch)
treedbaec8f6ddb99e68739a635fcd304b39ea39f7b9
parentf0018c03564dd99916b48355a39e25af534fc582 (diff)
szecret tests: drop SZECRET_* from the caller's environment, which once sent their values into a real bucket
-rwxr-xr-xsecrets/test/common.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/secrets/test/common.sh b/secrets/test/common.sh
index a751f65..7e4280d 100755
--- a/secrets/test/common.sh
+++ b/secrets/test/common.sh
@@ -19,6 +19,9 @@ skip() { echo -e "${YELLOW}SKIP${NC}: $1"; }
setup() {
export TEST_DIR="$(mktemp -d)"
# Never the real data dir: the buckets and identity there are a host's own.
+ # Nor any store the caller's environment points at: a run with
+ # SZECRET_BUCKETS set wrote its test values into cloud-setup's admin-only.
+ unset SZECRET_BUCKETS SZECRET_IDENTITY SZECRET_ADMINS_COMMAND SZECRET_PRIVATE_KEY_DIR
export XDG_DATA_HOME="${TEST_DIR}/xdg"
export SZECRET_STORE="${TEST_DIR}/store"
export SZECRET_PUBLIC_KEY="${TEST_DIR}/.id.pub"