@kutrion/cli 1.2.14 → 1.2.16

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.
Files changed (3) hide show
  1. package/README.md +12 -1
  2. package/dist/index.js +1294 -279
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -79,6 +79,17 @@ and `kt cred set` prompt for the value, or read it from stdin with `--value-stdi
79
79
  <file>` and `kt audit export <file>` write the file owner-only (mode 0600), tightening an existing file
80
80
  before writing to it.
81
81
 
82
+ In a Private vault, `kt cred add` and `kt cred set` ask for your vault passphrase (or read it with
83
+ `--vault-passphrase-stdin`, as `kt get --reveal` does), seal the value and notes on this machine and
84
+ send only the ciphertext. With both `--value-stdin` and `--vault-passphrase-stdin`, stdin carries the
85
+ passphrase on its first line and the value after it:
86
+ `printf '%s\n%s' "$PASSPHRASE" "$VALUE" | kt cred add <vaultId> --name db --value-stdin --vault-passphrase-stdin`.
87
+ A rename alone needs no passphrase. `kt import` refuses a Private vault, because the export file is
88
+ parsed by the server; nothing is sent. A write with `--vault-passphrase-stdin` to a vault the server
89
+ says is not Private is refused before stdin is read. The CLI also remembers, per server, the ids of
90
+ the vaults it has seen Private (`~/.config/kutrion/private-vaults.json`, mode 0600, ids only), and
91
+ refuses a write when one of them later answers as not Private.
92
+
82
93
  Secrets passed as flags (`--password`, `--value`, and `--token` on `kt run`, `kt mcp` and
83
94
  `kt ci-login`) are refused before anything is sent: a flag lands in shell history and in the process
84
95
  list. Use `--password-stdin`, `--value-stdin`, `KT_AGENT_TOKEN` or `KT_ID_TOKEN` instead.
@@ -121,7 +132,7 @@ The exit status says what kind of failure it was, so a script can branch without
121
132
  | 10 | Not signed in, or the session was refused (HTTP 401) |
122
133
  | 11 | Needs a plan the organization does not have (402) |
123
134
  | 12 | Refused: permission, policy or step-up (403) |
124
- | 13 | Not found (404) |
135
+ | 13 | Not found (404), including an id that is not well formed |
125
136
  | 14 | Conflict with the current state (409) |
126
137
  | 15 | Rate limited (429) |
127
138
  | 16 | Server error (5xx) |