You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit fd1662f
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/cli/secrets.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -117,7 +117,7 @@ Notes:
117
117
118
118
### Exec provider safety
119
119
120
-
Homebrew installs often expose symlinked binaries under `/opt/homebrew/bin/*`. Set `allowSymlinkCommand: true` only when needed for trusted package-manager paths, paired with `trustedDirs` (for example `["/opt/homebrew"]`). On Windows, if ACL verification is unavailable for a provider path, OpenClaw fails closed; for trusted paths only, set `allowInsecurePath: true` on that provider to bypass the path security check.
120
+
Package managers often expose symlinked command paths. Resolve the real binary path (for example with `realpath "$(command -v vault)"`) and configure that absolute, non-symlink path; use `trustedDirs` to restrict executables to approved directories. On Windows, provider paths fail closed when ACL verification is unavailable, with no provider-level bypass.
Copy file name to clipboardExpand all lines: docs/gateway/configuration-reference.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1169,10 +1169,10 @@ Validation:
1169
1169
Notes:
1170
1170
1171
1171
-`file` provider supports `mode: "json"` and `mode: "singleValue"` (`id` must be `"value"` in singleValue mode).
1172
-
- File and exec provider paths fail closed when Windows ACL verification is unavailable. Set `allowInsecurePath: true` only for trusted paths that cannot be verified.
1172
+
- File and exec provider paths fail closed when Windows ACL verification is unavailable. Use paths whose ACLs OpenClaw can verify; there is no provider-level bypass.
1173
1173
-`exec` provider requires an absolute `command` path and uses protocol payloads on stdin/stdout.
1174
-
-By default, symlink command paths are rejected. Set `allowSymlinkCommand: true` to allow symlink paths while validating the resolved target path.
1175
-
- If `trustedDirs` is configured, the trusted-dir check applies to the resolved target path.
1174
+
-Symlink command paths are rejected. Configure the resolved absolute binary path instead.
1175
+
- If `trustedDirs` is configured, the command path must be inside an approved directory.
1176
1176
-`exec` child environment is minimal by default; pass required variables explicitly with `passEnv`.
1177
1177
- Secret refs are resolved at activation time into an in-memory snapshot, then request paths read the snapshot only.
1178
1178
- Active-surface filtering applies during activation: unresolved refs on enabled surfaces fail startup/reload, while inactive surfaces are skipped with diagnostics.
Copy file name to clipboardExpand all lines: docs/gateway/secrets.md
+7-9Lines changed: 7 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -206,16 +206,16 @@ Define providers under `secrets.providers`:
206
206
-`mode: "json"` (default) expects a JSON object payload and resolves `id` as a JSON pointer.
207
207
-`mode: "singleValue"` expects ref id `"value"` and returns the raw file contents (trailing newline stripped).
208
208
- Path must pass ownership/permission checks; `timeoutMs` (default 5000) and `maxBytes` (default 1 MiB) bound the read.
209
-
- Windows fail-closed: if ACL verification is unavailable for the path, resolution fails. For trusted paths only, set `allowInsecurePath: true` on that provider to bypass the check.
209
+
- Windows fail-closed: if ACL verification is unavailable for the path, resolution fails. Move the secret to a path whose ACLs OpenClaw can verify; there is no provider-level bypass.
210
210
211
211
</Accordion>
212
212
213
213
<Accordiontitle="Exec provider">
214
214
- Runs the configured absolute binary path directly, no shell.
215
-
-By default `command` must be a regular file, not a symlink. Set `allowSymlinkCommand: true` to allow symlink command paths (for example Homebrew shims), and pair it with `trustedDirs` (for example `["/opt/homebrew"]`) so only package-manager paths qualify.
215
+
-`command` must be a regular file, not a symlink. For package-manager shims, resolve the real binary path (for example with `realpath "$(command -v vault)"`) and configure that absolute path. Use `trustedDirs` to restrict executables to approved directories.
-`jsonOnly` defaults to `true`. With `jsonOnly: false` and a single requested id, plain non-JSON stdout is accepted as that id's value.
218
-
- Windows fail-closed: if ACL verification is unavailable for the command path, resolution fails. For trusted paths only, set `allowInsecurePath: true` on that provider to bypass the check.
218
+
- Windows fail-closed: if ACL verification is unavailable for the command path, resolution fails. Use a command path whose ACLs OpenClaw can verify; there is no provider-level bypass.
219
219
- Plugin-managed exec providers can use `pluginIntegration` instead of a copied `command`/`args`. OpenClaw resolves the current command details from the installed plugin manifest during startup/reload; if the plugin is disabled, removed, untrusted, or no longer declares the integration, active SecretRefs on that provider fail closed.
220
220
221
221
Request payload (stdin):
@@ -376,9 +376,8 @@ For a dedicated 1Password guide covering service accounts, the bundled agent ski
376
376
providers: {
377
377
vault_openai: {
378
378
source: "exec",
379
-
command: "/opt/homebrew/bin/vault",
380
-
allowSymlinkCommand: true, // required for Homebrew symlinked binaries
Copy file name to clipboardExpand all lines: docs/plugins/manifest.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1145,7 +1145,7 @@ At startup/reload, OpenClaw resolves that provider by loading current plugin man
1145
1145
1146
1146
Only `source: "exec"` presets are currently supported. `command` must be `${node}`, and `args[0]` must be a `./` plugin-root-relative resolver script. OpenClaw materializes it at startup/reload to the current Node executable and the absolute in-plugin script path. Node options such as `--require`, `--import`, `--loader`, `--env-file`, `--eval`, and `--print` are not part of the manifest preset contract. Operators who need non-Node commands can configure standalone manual exec providers directly.
1147
1147
1148
-
OpenClaw derives `trustedDirs` for manifest presets from the plugin root and, for `${node}` presets, the current Node executable directory. Manifest-authored `trustedDirs` are ignored. Other exec provider options such as `timeoutMs`, `noOutputTimeoutMs`, `maxOutputBytes`, `jsonOnly`, `env`, `passEnv`, and `allowInsecurePath` pass through to the normal SecretRef exec provider config.
1148
+
OpenClaw derives `trustedDirs` for manifest presets from the plugin root and, for `${node}` presets, the current Node executable directory. Manifest-authored `trustedDirs` are ignored. Other exec provider options such as `timeoutMs`, `noOutputTimeoutMs`, `maxOutputBytes`, `jsonOnly`, `env`, and `passEnv` pass through to the normal SecretRef exec provider config.
objective: Prove that the real doctor CLI validates gateway SecretRefs without leaking, replacing, or silently bypassing configured credentials.
11
+
successCriteria:
12
+
- A resolved environment SecretRef passes doctor validation without exposing its value.
13
+
- An unresolved SecretRef remains configured and ambient gateway token fallback cannot mask the failure.
14
+
- Exec SecretRefs remain gated unless the operator explicitly passes --allow-exec; Windows then proves the current fail-closed ACL diagnostic without executing or leaking the secret.
15
+
- Explicit token generation persists a new token only when no SecretRef owns the field.
objective: Prove that the real doctor CLI diagnoses a foreign TCP listener and a systemd restart limit, then hands recovery to the explicit gateway restart command.
12
+
successCriteria:
13
+
- Doctor reports the configured gateway port when a real foreign TCP listener owns it.
14
+
- Doctor recognizes a real failed systemd unit that exhausted StartLimitBurst and emits restart guidance.
15
+
- Removing the test-owned crash override and running the guided gateway restart restores independently verified gateway status and health.
16
+
- Cleanup removes the exact listener, unit override, installed profile service, and profile state.
summary: On an explicitly enabled systemd host, exercise real TCP port ownership, a named-profile start limit, doctor guidance, explicit gateway restart, independent health verification, and exact-unit cleanup.
0 commit comments