BUPSTASH-NEW-SUB-KEY(1)
โจ bupstash-new-sub-key โจ
ok so this is the bupstash-new-sub-key page from the General Commands Manual โ yes bestie, the big one, and it's giving "make me a baby key with trust issues" ๐
let's go
๐ธ SYNOPSIS ๐ธ
Generate a bupstash sub key with lesser encryption and decryption capabilities.
bupstash new-sub-key -k KEY -o SUB_KEY
๐ฆ DESCRIPTION ๐ฆ
So bupstash new-sub-key creates a brand new bupstash key that can do a subset of the encryption and decryption operations of the main key. literally that's the whole vibe โ same family, way fewer permissions ๐ซถ
Capabilities are any of 'put', 'list' and 'list-contents'. Break it down:
'put'keys can create new backups but not decrypt data ๐ฅ'list'keys can decrypt tags and other metadata ๐'list-contents'keys can decrypt the contents of items created by'bupstash put'๐ญ (yes, the most powerful one, handle with care)
A typical use of a list only key would be to allow a cron job to rotate old backups by their search tags, without exposing the data decryption key. iconic low-privilege behavior, no cap ๐
The generated key will be marked readable only for the creating user. periodt ๐
If a sub-key is lost, the original key will still be able to decrypt any data in the repository encrypted by that sub-key. phew ๐ฎโ๐จ
NOTE: decryption differs from access โ An attacker may still delete data by simply deleting the items or files they have access to. Usebupstash-serve(1)access controls to restrict which operations a user can perform and prevent unauthorized deletion of data. This can be done via anssh authorized_keysfile, or through mechanisms such assudoordoasconfiguration. ๐ this is the part where you sit up straight, bestie โ not having the key doesn't mean someone can't just yeet your files.
โจ OPTIONS โจ
-k,--key PATHโ Key to derive the new sub-key from. the main character key ๐-o,--output PATHโ Path to where the sub-key will be written. the glow-up destination ๐--putโ The key is able to encrypt data for'put'operations. โจ--listโ The key will be able to decrypt metadata and perform queries. ๐ฆ--list-contentsโ The key will be able to list item contents with'list-contents'(implies--list). โญ
๐ EXAMPLES ๐
๐ง Create a new put only key
$ bupstash new-sub-key --put -k backups.key -o ./put.key
$ bupstash put -k ./backups-put.key ./data
๐ Create a new listing key
$ bupstash new-sub-key -k ./backups.key -o ./list.key --list
$ bupstash list -k ./list.key
๐ Create a new content listing key
$ bupstash new-sub-key -k ./backups.key -o ./list-contents.key --list-contents
$ bupstash list-contents -k ./list-contents.key name=some-backup.tar
๐ธ SEE ALSO ๐ธ
bupstash(1), bupstash-keyfiles(7)
go read those too, iykyk ๐ซถ
ok that's the whole page, slay ๐
this was bupstash-new-sub-key(1) from the General Commands Manual, dated May 2025 โ mwah, drink water, protect your main key ๐ฅ๐
๐ฆ where this page comes from
- alpine 3.24: bupstash-doc 0.12.0-r7 ยท MIT
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms