From 8f818a64f2f0f3a833fc842d52a675358ec64c9c Mon Sep 17 00:00:00 2001 From: Igor Soarez Date: Wed, 18 Nov 2026 14:02:09 +0000 Subject: szecret: buckets beside the old store -- get/has/put/mv/rekey/list/check/enrol, admins from SZECRET_ADMINS_COMMAND; rotate retired (fleet hardening 12) A bucket is a directory of secrets with one set of readers: its recipients file plus the admins, the full set recorded in .szecret by rekey. put refuses when the readers or admins drift from that set, or with no admins; a plain put of a new name goes to admin-only, one still in the old store is rewritten there. The old store keeps working throughout. link/claude.sh leaves out an MCP server whose secret is in a bucket this host doesn't read. Design: cloud-setup docs/proposal-secret-roles.md. --- secrets/test/common.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'secrets/test/common.sh') diff --git a/secrets/test/common.sh b/secrets/test/common.sh index 33d7d78..a751f65 100755 --- a/secrets/test/common.sh +++ b/secrets/test/common.sh @@ -18,6 +18,8 @@ skip() { echo -e "${YELLOW}SKIP${NC}: $1"; } # Create temporary test environment setup() { export TEST_DIR="$(mktemp -d)" + # Never the real data dir: the buckets and identity there are a host's own. + export XDG_DATA_HOME="${TEST_DIR}/xdg" export SZECRET_STORE="${TEST_DIR}/store" export SZECRET_PUBLIC_KEY="${TEST_DIR}/.id.pub" export SZECRET_PRIVATE_KEY="${TEST_DIR}/.id" -- cgit v1.2.3