mayros approvals
Manage exec approvals for the local host, gateway host, or a node host.
By default, commands target the local approvals file on disk. Use --gateway to target the gateway, or --node to target a specific node.
Related:
- Exec approvals: Exec approvals
- Nodes: Nodes
Common commands
bashmayros approvals get mayros approvals get --node <id|name|ip> mayros approvals get --gateway
Replace approvals from a file
bashmayros approvals set --file ./exec-approvals.json mayros approvals set --node <id|name|ip> --file ./exec-approvals.json mayros approvals set --gateway --file ./exec-approvals.json
Allowlist helpers
bashmayros approvals allowlist add "~/Projects/**/bin/rg" mayros approvals allowlist add --agent main --node <id|name|ip> "/usr/bin/uptime" mayros approvals allowlist add --agent "*" "/usr/bin/uname" mayros approvals allowlist remove "~/Projects/**/bin/rg"
Notes
--nodeuses the same resolver asmayros nodes(id, name, ip, or id prefix).--agentdefaults to"*", which applies to all agents.- The node host must advertise
system.execApprovals.get/set(macOS app or headless node host). - Approvals files are stored per host at
~/.mayros/exec-approvals.json.