mirror of
https://github.com/sipeed/picoclaw.git
synced 2026-07-28 01:27:58 +00:00
docs: warn about cron remote wildcard
Document that command_allowed_remotes = ["*"] is potentially dangerous because any remote channel that can talk to PicoClaw can schedule shell commands. Clarify that it should only be used when all enabled remote channels and chats are trusted.
This commit is contained in:
@@ -125,6 +125,10 @@ Entries can be either a channel name or a channel plus chat id:
|
||||
- `telegram:1234567890` allows command jobs only from that exact Telegram chat id.
|
||||
- `*` allows command jobs from every non-empty channel.
|
||||
|
||||
Warning: `*` is potentially dangerous because any remote channel that can talk
|
||||
to PicoClaw can schedule shell commands. Use it only when every enabled remote
|
||||
channel and chat is trusted to request command execution.
|
||||
|
||||
This setting only controls the remote-channel gate. It does not bypass `tools.cron.allow_command`, `command_confirm`, `tools.exec.enabled`, or the exec tool's command safety checks.
|
||||
|
||||
Example:
|
||||
|
||||
@@ -315,7 +315,7 @@ The cron tool is used for scheduling periodic tasks.
|
||||
|---------------------------|----------|---------|----------------------------------------------------------------|
|
||||
| `enabled` | bool | true | Register the agent-facing cron tool |
|
||||
| `allow_command` | bool | true | Allow command jobs without extra confirmation |
|
||||
| `command_allowed_remotes` | string[] | [] | Remote channels or `channel:chat_id` values allowed for command jobs; `*` allows every channel |
|
||||
| `command_allowed_remotes` | string[] | [] | Remote channels or `channel:chat_id` values allowed for command jobs; `*` allows every channel and is dangerous unless all remote channels are trusted |
|
||||
| `exec_timeout_minutes` | int | 5 | Execution timeout in minutes, 0 means no limit |
|
||||
|
||||
For schedule types, execution modes (`deliver`, agent turn, and command jobs), persistence, and the current command-security gates, see [Scheduled Tasks and Cron Jobs](cron.md).
|
||||
|
||||
Reference in New Issue
Block a user