summaryrefslogtreecommitdiff
path: root/secrets/create-local.sh
diff options
context:
space:
mode:
Diffstat (limited to 'secrets/create-local.sh')
-rwxr-xr-xsecrets/create-local.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/secrets/create-local.sh b/secrets/create-local.sh
index ffebd9c..b72600d 100755
--- a/secrets/create-local.sh
+++ b/secrets/create-local.sh
@@ -56,6 +56,13 @@ if [[ "${metadata_exists}" == "true" ]]; then
exit 1
fi
+# An old-kind store keeps its key in the old store; with buckets that key
+# would land in admin-only, which this machine can't read back. A repository
+# bucket is registered in cloud-setup's szecret/repo-buckets instead.
+if [[ -n "${buckets}" ]]; then
+ die "create-local makes an old-kind store, which can't be made on a machine with buckets; make a repository bucket instead (cloud-setup docs/proposal-secret-roles.md)"
+fi
+
# Ensure target directory exists
mkdir -p "${target_dir}"