Command Whitelist
Data · CommandWhitelist
The commands an agent may run, per server: the template with its {parameters} marked, what each parameter accepts (fixed values or a pattern), the risk (read only, changes, critical) and whether it needs an approval (by default everything that is not read only). blocked lists patterns refused on every server; actions(command, server) adds row controls. On phones the risk and approval move under the command.
systemctl status {service}Read a service's state- {service}
- nginx | shop | worker
journalctl -u {service} -n {lines}- {service}
- nginx | shop
- {lines}
- 1–500
systemctl restart {service}Restarts the service; requests in flight fail- {service}
- nginx | shop
/srv/shop/deploy.sh {commit}- {commit}
- [0-9a-f]{7,40}
No commands allowed on this server
rm -rf *shutdown ** > /dev/sd*curl * | sh
Props
CommandWhitelist
| Prop | Type | Notes |
|---|---|---|
servers | WhitelistServer[] | Required |
blocked? | string[] | Patterns refused on every server, whatever the list says. |
actions? | (command: WhitelistCommand, server: WhitelistServer) => ReactNode | Row actions (edit, remove), e.g. IconButtons or a Menu. |
className? | string | Extra class on the root element. |
style? | CSSProperties | Inline style on the root element. |