feat(identity): added --add-recipient and --remove-recipient flags for multi-recipient keys

This commit is contained in:
Lewis Wynne 2026-02-13 15:12:22 +00:00
parent f9ff2c0d62
commit 579e6a1eee
12 changed files with 575 additions and 51 deletions

View file

@ -777,6 +777,26 @@ pda identity --new
<p align="center"></p><!-- spacer -->
By default, secrets are encrypted only for your own identity. To encrypt for additional recipients (e.g. a teammate or another device), use `--add-recipient` with their age public key. All existing secrets are automatically re-encrypted for every recipient.
```bash
# Add a recipient. All secrets are re-encrypted for both keys.
pda identity --add-recipient age1ql3z7hjy54pw3hyww5ayyfg7zqgvc7w3j2elw8zmrj2kg5sfn9aqmcac8p
# ok re-encrypted api-key
# ok added recipient age1ql3z...
# ok re-encrypted 1 secret(s)
# Remove a recipient. Secrets are re-encrypted without their key.
pda identity --remove-recipient age1ql3z7hjy54pw3hyww5ayyfg7zqgvc7w3j2elw8zmrj2kg5sfn9aqmcac8p
# Additional recipients are shown in the default identity display.
pda identity
# ok pubkey age1abc...
# ok identity ~/.local/share/pda/identity.txt
# ok recipient age1ql3z...
```
<p align="center"></p><!-- spacer -->
### Doctor
`pda doctor` runs a set of health checks of your environment.