[kdbx] Docs: KeePass import (KDBX 3.1, 4) and export (KDBX 4), the item mapping, limits, what does not survive
This commit is contained in:
+7
-27
@@ -121,6 +121,11 @@ UTF-8 JSON, held in zeroizing buffers while being encrypted or parsed:
|
||||
- Readers ignore JSON members they do not know, so later versions can add them.
|
||||
- `identity` (optional, core 0.7.0): the Domi identity's root key and the certs it issued (docs/IDENTITY.md).
|
||||
An older Custos drops it when it saves, so every Custos that saves the vault must be 0.7.0 or later.
|
||||
- `folder` (optional item member, core 0.8.0): a list of folder names, outermost first (a KeePass group path,
|
||||
docs/KDBX.md). Absent or empty = no folder.
|
||||
- `attachments` (optional item member, core 0.8.0): `[{"name": "id_rsa", "data": "<base64>"}]`, files kept with
|
||||
the item (imported from KeePass). The data counts as secret: it is never logged or printed.
|
||||
An older Custos drops `folder` and `attachments` when it saves.
|
||||
|
||||
### Item types and their fields (v1)
|
||||
|
||||
@@ -137,34 +142,9 @@ UTF-8 JSON, held in zeroizing buffers while being encrypted or parsed:
|
||||
|
||||
`notes` is secret for every type (it is shown only on reveal).
|
||||
|
||||
## Planned KDBX 4 mapping (export comes in v1.2)
|
||||
## KDBX 4 (KeePass)
|
||||
|
||||
KeePassXC-compatible: standard strings where KeePass has them, custom strings otherwise. Secret fields
|
||||
become *protected* strings.
|
||||
|
||||
| Custos | KDBX 4 entry |
|
||||
|:--|:--|
|
||||
| `title` | `Title` |
|
||||
| `username` (web-login, local-app) | `UserName` |
|
||||
| `password`* (web-login, local-app, wifi) | `Password` (protected) |
|
||||
| first `url` | `URL` |
|
||||
| 2nd, 3rd … `url` | `KP2A_URL_1`, `KP2A_URL_2`, … (KeePassXC reads these) |
|
||||
| `notes` | `Notes` |
|
||||
| `totp` | `otp` (protected), as an `otpauth://` URI (KeePassXC's format) |
|
||||
| `autotype-sequence` | `AutoType/DefaultSequence` |
|
||||
| `autotype-match` | `AutoType/Association/Window` |
|
||||
| `type` | custom string `custos-type` |
|
||||
| `api-credential`: `service`, `key-id`, `endpoint`, `expires` | custom strings `service`, `key-id`, `endpoint`; `expires` → entry `Times/Expires` + `ExpiryTime` |
|
||||
| `api-credential`: `secret`* | `Password` (protected) |
|
||||
| `local-app`: `target` | custom string `target` |
|
||||
| `wifi`: `ssid`, `security`, `hidden` | `UserName` = ssid, custom strings `security`, `hidden` |
|
||||
| `card`: `number`* | `Password` (protected) |
|
||||
| `card`: `cardholder`, `expiry` | `UserName` = cardholder, custom string `expiry` |
|
||||
| `card`: `cvv`*, `pin`* | protected custom strings `cvv`, `pin` |
|
||||
| other custom fields | custom strings of the same name, protected when secret |
|
||||
| `tags` | `Tags` (`;`-separated) |
|
||||
| `created`, `modified` | `Times/CreationTime`, `Times/LastModificationTime` |
|
||||
| `history` entries | `History` entries (one per change, with that old password) |
|
||||
Import and export, with the full field mapping and what does not survive: docs/KDBX.md.
|
||||
|
||||
## Device key wrap (not part of the file)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user