From 990a23be281ee13e33c165f446d2ac3c0c88299c Mon Sep 17 00:00:00 2001 From: Igor Soarez Date: Sat, 21 Nov 2026 13:24:26 +0000 Subject: szecret create-local /: a new store's key goes in a bucket this machine reads; plain for an existing store or no buckets --- secrets/README.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'secrets/README.md') diff --git a/secrets/README.md b/secrets/README.md index 5e98f3f..69fd53c 100644 --- a/secrets/README.md +++ b/secrets/README.md @@ -31,7 +31,8 @@ szecret list | `enrol [--tpm\|--se]` | Make this machine's identity and print its public key | | `ready` | Check there is a store and an identity | | `ensure` | Ensure the old private key is configured (interactive) | -| `create-local ` | Create a localized secret store (the old kind) | +| `create-local / ` | Create a localized secret store, its key in ``, which this machine must read | +| `create-local ` | The same for an existing store, or on a machine with no buckets | | `put-local ` | Encrypt to a local store or a repository bucket | | `get-local ` | Decrypt from a local store or a repository bucket | @@ -82,10 +83,12 @@ Local stores allow you to keep encrypted secrets outside the global store, usefu ```bash # Initialize a local store in a directory -szecret create-local myproject /path/to/project/secrets/ +szecret create-local web-hosts/myproject /path/to/project/secrets/ # This creates: -# - A key in the global store (local-key-myproject) +# - A key, local-key-myproject, in the bucket web-hosts: that bucket's +# readers read the store (on a machine with no buckets, +# `create-local myproject ` puts it in the global store) # - A metadata file at /path/to/project/secrets/.szecret containing: # store=myproject # pubkey=age1... -- cgit v1.2.3