Add vault locking command and API

This commit is contained in:
thePR0M3TH3AN
2025-07-09 20:02:06 -04:00
parent cc4ba8486e
commit cc521dde76
7 changed files with 60 additions and 0 deletions

View File

@@ -72,6 +72,7 @@ Manage the entire vault for a profile.
| Export the vault | `vault export` | `seedpass vault export --file backup.json` |
| Import a vault | `vault import` | `seedpass vault import --file backup.json` |
| Change the master password | `vault change-password` | `seedpass vault change-password` |
| Lock the vault | `vault lock` | `seedpass vault lock` |
### Nostr Commands
@@ -157,6 +158,7 @@ Code: 123456
- **`seedpass vault export`** Export the entire vault to an encrypted JSON file.
- **`seedpass vault import`** Import a vault from an encrypted JSON file.
- **`seedpass vault change-password`** Change the master password used for encryption.
- **`seedpass vault lock`** Clear sensitive data from memory and require reauthentication.
### `nostr` Commands

View File

@@ -35,6 +35,7 @@ Keep this token secret. Every request must include it in the `Authorization` hea
- `POST /api/v1/checksum/update` Update the stored script checksum.
- `POST /api/v1/change-password` Change the master password for the active profile.
- `POST /api/v1/vault/import` Import a vault backup from a file or path.
- `POST /api/v1/vault/lock` Lock the vault and clear sensitive data from memory.
- `POST /api/v1/shutdown` Stop the server gracefully.
**Security Warning:** Accessing `/api/v1/parent-seed` exposes your master seed in plain text. Use it only from a trusted environment.