@catena/cli 0.8.0 → 0.9.0
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 +33 -10
- package/dist/index.mjs +420 -336
- package/dist/mpp-CZl4wkkp.mjs +14 -0
- package/package.json +2 -2
- package/dist/mpp-Dr8gzsL-.mjs +0 -14
package/README.md
CHANGED
|
@@ -24,8 +24,31 @@ tools such as `jq`; pass `--json` to print compact single-line JSON instead.
|
|
|
24
24
|
`unlink` revokes only the selected profile's server link and removes that
|
|
25
25
|
profile's local credential.
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
## Hosts without a keychain
|
|
28
|
+
|
|
29
|
+
A container, a CI job, or a serverless runtime has no OS keychain and no
|
|
30
|
+
browser, so `link` cannot store a credential there. Set `CATENA_SECRET_KEY` to
|
|
31
|
+
the agent's P-256 secret key instead:
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
CATENA_SECRET_KEY="<64 hex characters>" pnpm dlx @catena/cli whoami
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
Create the key in the Catena console: open the agent, select the **Secret keys**
|
|
38
|
+
tab, then **Create secret key**. The console shows it one time. `@catena/sdk`
|
|
39
|
+
reads the same variable, so one key serves either client. Set the value with no
|
|
40
|
+
surrounding whitespace: the CLI trims it, and the SDK does not.
|
|
41
|
+
|
|
42
|
+
While the key is set, `profiles current` reports `source: "secret-key"` with no
|
|
43
|
+
`.profile` field, and `profiles list` adds `shadowedBy` and marks every profile
|
|
44
|
+
`current: false`.
|
|
45
|
+
|
|
46
|
+
On a machine that also holds a linked profile or sets `CATENA_PROFILE`, every
|
|
47
|
+
command prints one stderr line that names the key as the signing credential.
|
|
48
|
+
Stdout keeps only the command result.
|
|
49
|
+
|
|
50
|
+
The key outranks every profile tier, but an explicit `--profile` still wins.
|
|
51
|
+
`unlink` does not apply to it; revoke the key in the console instead.
|
|
29
52
|
|
|
30
53
|
## First-time setup
|
|
31
54
|
|
|
@@ -49,11 +72,10 @@ denied or times out, run the command again.
|
|
|
49
72
|
|
|
50
73
|
Useful flags:
|
|
51
74
|
|
|
52
|
-
| Flag
|
|
53
|
-
|
|
|
54
|
-
| `--
|
|
55
|
-
| `--
|
|
56
|
-
| `--profile` | Credential profile name. | configured default or `default` |
|
|
75
|
+
| Flag | Description | Default |
|
|
76
|
+
| ----------- | ------------------------------------------------------- | ------------------------------- |
|
|
77
|
+
| `--name` | Suggested name when creating an agent from the console. | none |
|
|
78
|
+
| `--profile` | Credential profile name. | configured default or `default` |
|
|
57
79
|
|
|
58
80
|
## Commands
|
|
59
81
|
|
|
@@ -387,9 +409,10 @@ later completes, requires approval, or fails.
|
|
|
387
409
|
|
|
388
410
|
## Configuration
|
|
389
411
|
|
|
390
|
-
| Variable
|
|
391
|
-
|
|
|
392
|
-
| `
|
|
412
|
+
| Variable | Purpose | Default |
|
|
413
|
+
| ------------------- | ---------------------------------------------------- | ------- |
|
|
414
|
+
| `CATENA_SECRET_KEY` | Agent P-256 secret key (64 hex). Selects no profile. | none |
|
|
415
|
+
| `CATENA_PROFILE` | Credential profile name. | none |
|
|
393
416
|
|
|
394
417
|
## Discovering options
|
|
395
418
|
|