Files
agent-zero/plugins/_whatsapp_integration/default_config.yaml
Alessandro 4766b114ae Require explicit WhatsApp administrators for settings changes
Accepted WhatsApp senders could persistently relax their own tool policy
and toggle instance-wide plugins using ordinary chat authorization.

Add a separate admin_numbers allowlist, empty by default, and derive
administrative access from the normalized sender of each inbound message.
Keep allowed-number and group checks in force. Require administration at
the WhatsApp plugin-toggle and tool-policy mutation boundaries while
preserving read-only menus and ordinary chat controls.

Gate built-in profile creation and browser-runtime changes before shared
command execution. Use the shared argument parser for profile creation
checks and preserve existing profile selection and custom overrides.
Expose the administrator list in settings and document the new defaults.

Add regressions for denied writes, real policy persistence and runtime
decisions, normalized sender identities, revocation, administrative
commands, and independent frontend access-list editing.

Validation:
- Conda framework: 165 tests and 62 subtests passed.
- Docker framework: 12 focused tests and 32 subtests passed.
- Node bridge and configuration store: all 4 tests passed.
- WebUI: administrator field renders, parses and clears independently.
- JavaScript syntax and git diff checks passed.
- Restarted the bound Docker instance and verified HTTP 200.

Live WhatsApp delivery was not exercised. Synthetic events and disposable
policy files cover the authorization paths without changing live access
lists or sending test messages to WhatsApp users.
2026-11-01 07:28:02 +01:00

15 lines
548 B
YAML

enabled: false
mode: self-chat
# dedicated: separate phone number — people message it directly
# self-chat: personal number — you can message yourself, and the agent can also handle messages sent to your number
bridge_port: 3100
poll_interval_seconds: 3
allow_group: false
# allow_group: respond in group chats when mentioned or replied to
allowed_numbers: []
# Example: ["34652029134", "1234567890"]
admin_numbers: []
# Allowed senders permitted to change administrative settings. Empty = no administrators.
project: ""
agent_instructions: ""