Approvals
Some actions are too important to run just because a tool, an AI assistant or an automatic rule asked for them. Jarwis turns these into action plans: a stored proposal with a plain-language summary and the exact steps it would take. Nothing runs until an administrator approves the plan. The Approvals item in the sidebar is the single inbox for all of them.
Where plans come from
| Source | Badge | Example |
|---|---|---|
| MCP clients (Claude, Cursor, other AI assistants) | MCP | Trigger a backup, restore, point-in-time restore, switchover, replica rebuild, Galera recovery, rolling update or maintenance window |
| Runbook autopilot (from an alarm card) | Autopilot | Repair replication, purge old binary logs, retry a failed backup, rejoin a Galera node |
| Advisor and online schema change | — | An index drop suggested by the Schema Advisor, or a destructive ALTER such as DROP COLUMN, waits here before it starts. The change shows as Awaiting approval on the Schema tab |
| PostgreSQL extension manager | — | Changing preload libraries (shared_preload_libraries) needs a rolling restart of the cluster, which waits for approval |
| PostgreSQL major upgrade | — | The live pg_upgrade of a cluster waits for approval after a successful precheck and rehearsal |
| PostgreSQL roles and pg_hba | — | Deleting a role or a pg_hba rule is destructive and waits for approval |
| Certificate rotation | — | Rotating the TLS certificates of a Redis/Valkey, Kafka or MongoDB cluster waits for approval |
| Four-eyes clusters | — | On a four-eyes cluster, restoring a backup, writing SQL or revealing a credential waits for a second admin |
| PostgreSQL DR switchover | — | A planned switchover between linked clusters |
The Approvals screen
Each plan is a card with its summary, where it came from (MCP or Autopilot), who requested it, when, and a status badge. Use the filter chips to switch between Pending (the default), All, Executed, Failed, Rejected and Expired. When nothing is waiting, the screen says No plans here. The list refreshes automatically every 15 seconds.
The steps on a card are labelled by kind:
- Pre-check — a safety check Jarwis already ran when the plan was created (for example that the cluster exists, a recent backup is present or the engine supports the action). A failed pre-check shows A pre-check failed: review it before approving.
- Action — the exact operation that will run on approval.
- Verify and Note — what to check afterwards and any extra context.
Approve or reject
Review
Read the summary and every step. Alarm cards and the Schema tab link straight to the plan.Decide
Click Approve & run and confirm, or Reject. A rejected plan never runs.Follow the result
The card moves to Executed or Failed and records who decided and the outcome. A failed plan shows the error output.
Rules that keep this safe
- Only administrators decide. The buttons appear for users with the admin or owner role, and only in a signed-in console session. An API key or an AI assistant cannot approve a plan through the REST API.
- The plan runs as the approver, with that person's role. Task locks and the audit trail apply exactly as if the person had run the action by hand.
- Plans expire. A plan proposed by an MCP client is valid for 30 minutes; autopilot plans last a few hours. An expired plan moves to Expired and cannot be approved.
- Single use. A plan can be approved only once; a second attempt is refused.
- Command freeze. While the command freeze (kill switch, Settings → Security) is on, no new plans can be created and no plan can be approved; pending plans simply wait until the freeze is lifted or they expire.
- Optional operator approval for MCP. Admins can let operator-scope tokens approve MCP plans through the Let operator tokens approve MCP plans sign-in policy. It is off by default.
- Audit trail. Plan creation by MCP clients, every approval or rejection and the replayed action are recorded in the audit log. Approved changes also appear in the Dashboard's What changed timeline.
See also Automation, AI assistant and Security.