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
Copy file name to clipboardExpand all lines: docs/gateway/configuration-reference.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -709,8 +709,8 @@ Validation and safety notes:
709
709
-`transform` can point to a JS/TS module returning a hook action.
710
710
-`transform.module` must be a relative path and stays within `hooks.transformsDir` (absolute paths and traversal are rejected).
711
711
- Keep `hooks.transformsDir` under `~/.openclaw/hooks/transforms`; workspace skill directories are rejected. If `openclaw doctor` reports this path as invalid, move the transform module into the hooks transforms directory or remove `hooks.transformsDir`.
712
-
-`agentId` routes to a specific agent; unknown IDs fall back to default.
713
-
-`allowedAgentIds`: restricts explicit routing (`*` or omitted = allow all, `[]` = deny all).
712
+
-`agentId` routes to a specific agent; unknown IDs fall back to the default agent.
713
+
-`allowedAgentIds`: restricts effective agent routing, including the default-agent path when `agentId` is omitted (`*` or omitted = allow all, `[]` = deny all).
714
714
-`defaultSessionKey`: optional fixed session key for hook agent runs without explicit `sessionKey`.
715
715
-`allowRequestSessionKey`: allow `/hooks/agent` callers and template-driven mapping session keys to set `sessionKey` (default: `false`).
716
716
-`allowedSessionKeyPrefixes`: optional prefix allowlist for explicit `sessionKey` values (request + mapping), e.g. `["hook:"]`. It becomes required when any mapping or preset uses a templated `sessionKey`.
"Allowlist of accepted session-key prefixes for inbound hook requests when caller-provided keys are enabled. Use narrow prefixes to prevent arbitrary session-key injection.",
1745
1745
"hooks.allowedAgentIds":
1746
-
"Allowlist of agent IDs that hook mappings are allowed to targetwhen selecting execution agents. Use this to constrain automation events to dedicated service agents and reduce blast radius if a hook token is exposed.",
1746
+
"Allowlist of effective agent IDs that hook requests and mappings are allowed to target, including default-agent routing when agentId is omitted. Use this to constrain automation events to dedicated service agents and reduce blast radius if a hook token is exposed.",
1747
1747
"hooks.maxBodyBytes":
1748
1748
"Maximum accepted webhook payload size in bytes before the request is rejected. Keep this bounded to reduce abuse risk and protect memory usage under bursty integrations.",
0 commit comments