kavrix 0.2.4 → 0.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -41,6 +41,13 @@ kavrix db vault create --profile work
41
41
  # 3. Copy the returned opaque vault ID into the flat commands.
42
42
  kavrix put github/token --profile work --vault <vault-id>
43
43
  kavrix get github/token --reveal --profile work --vault <vault-id>
44
+
45
+ # Or create an explicit project/service/item hierarchy.
46
+ kavrix context create platform --environment production --profile work --vault <vault-id>
47
+ kavrix service create github --context platform --profile work --vault <vault-id>
48
+ kavrix item create deploy --context platform --service github --profile work --vault <vault-id>
49
+ kavrix field set token --type api-key --context platform --service github \
50
+ --item deploy --profile work --vault <vault-id>
44
51
  ```
45
52
 
46
53
  Sensitive input is prompted for or read from stdin; it is never accepted as a
@@ -57,19 +64,28 @@ options in your installed version.
57
64
  | `db key create` | Create an exact-snapshot key for full local-file sharing. |
58
65
  | `db recovery ...` | Manage database-root recovery kits. |
59
66
  | `migrate database` | Copy one legacy version 2 vault into a database. |
67
+ | `context`, `service`, `item`, `field` | Manage structured project credentials and schema-driven typed fields. |
60
68
  | `put`, `get`, `list`, `view`, `search`, `stats`, `has`, `rename`, `remove` | Store, read, and organize credentials. |
61
69
  | `key status/verify/copy/replicate/assign/rewrap` | Manage protected key files. |
62
70
  | `recovery create/verify/status/revoke/use` | Manage recovery kits. |
63
71
  | `doctor`, `doctor health` | Validate a vault; repair bounded transient state safely. |
64
72
  | `init`, `vault`, `legacy v2 commands` | Version 2 compatibility surface. |
65
73
  | `run` | Execute one command with selected credentials injected as environment variables only. |
66
- | `policy create/list/show/remove` | Stored rules: allowlists, SHA-256 pins, TTLs, deny, confirmations. |
67
- | `grant create/list/revoke` | Temporary consumable authorizations with expiry and use caps. |
74
+ | `policy create/list/show/remove/check/explain/lint/diff/suggest` | Stored rules plus read-only simulation, diagnostics, previews, and narrowing advice. |
75
+ | `grant create/list/show/revoke` | Temporary consumable authorizations with live expiry, restrictions, and use caps. |
68
76
  | `audit` | Plaintext-free security audit trail. |
69
77
  | `agent run`, `agent exec` | Credential firewall that brokers AI coding agents. |
70
78
 
71
- Plaintext output is always opt-in through `--reveal`; listing and dashboard
72
- commands never display credential values.
79
+ Sensitive plaintext output is opt-in through `--reveal` or multiline-safe
80
+ `--reveal-base64`; listing and dashboard commands never display field values.
81
+ `field get` may return a non-sensitive value according to its schema.
82
+
83
+ Database vaults organize private data as project context/environment →
84
+ service/group → credential item → typed fields. The root flat commands remain
85
+ a compatibility projection over the default context/service and never split a
86
+ literal name such as `github/token` into hierarchy segments. Field definitions
87
+ carry copy, reveal, reauthentication, and export policies; present values stay
88
+ redacted until an allowed explicit reveal.
73
89
 
74
90
  ## Running tools without pasting secrets
75
91
 
@@ -78,8 +94,13 @@ kavrix run --secret AWS_KEY=aws/deploy-key -- terraform plan
78
94
 
79
95
  kavrix policy create deploy --secret aws/deploy-key \
80
96
  --command terraform --hash terraform=<sha256> --ttl 30m
97
+ kavrix policy check deploy -- terraform plan
98
+ kavrix policy explain deploy -- terraform plan
99
+ kavrix policy lint
100
+ kavrix policy suggest
81
101
 
82
102
  kavrix grant create aws/deploy-key --ttl 15m --max-uses 3
103
+ kavrix grant show <grant-id>
83
104
 
84
105
  kavrix agent run
85
106
  ```
@@ -87,6 +108,9 @@ kavrix agent run
87
108
  Policies are evaluated fail-closed before any child process spawns, grants are
88
109
  consumed atomically and can be revoked immediately, and `kavrix audit` records
89
110
  policy, grant, authorization, and completion events without secret material.
111
+ The policy developer tools and grant inspection authenticate metadata without
112
+ decrypting credential payloads, modifying audit state, or creating a missing
113
+ authorization sidecar.
90
114
 
91
115
  ## Options worth knowing
92
116
 
@@ -99,6 +123,7 @@ policy, grant, authorization, and completion events without secret material.
99
123
  | `--value-stdin` | Read a credential value from stdin. |
100
124
  | `--secrets-stdin` | Read every unlock secret from exact stdin frames. |
101
125
  | `--reveal` | The explicit guard that prints plaintext. |
126
+ | `--reveal-base64` | Authorized multiline-safe field-value output. |
102
127
  | `--json` | Masked machine-readable output. |
103
128
  | `--overwrite` | Opt in to replacing something that already exists. |
104
129
  | `--allow-insecure-transport` | Explicit opt-in to unencrypted MongoDB transport (isolated networks only). |
@@ -124,8 +149,9 @@ must explicitly enable validated TLS.
124
149
  - Losing all valid owner keys and all database recovery kits makes the database
125
150
  permanently unrecoverable by design; there is no reset or escrow.
126
151
  - User identities, public enrollment, per-vault grants and roles, revocation
127
- with rotation, ownership transfer, groups, structured items, and typed fields
128
- are not yet implemented.
152
+ with rotation, and ownership transfer are not yet implemented. Structured
153
+ payloads model notes, attachment ownership, and history, but 0.2.6 does not
154
+ add attachment transfer or history-restore commands.
129
155
  - Windows command scripts (`.bat`, `.cmd`, `.com`) are refused for execution;
130
156
  invoke real executables.
131
157