Approvals and dry runs

What runs straight away, what waits for your OK, and how to approve a whole plan once.

Opsaido is built for systems you can’t afford to break: it never changes anything without your approval.

At a glance

KindExamplesApprovalWho can approve
ReadStatus, metrics, logs, searches, read-only commandsNone, runs straight away—
ChangeRestart a service, add a DNS record, install updatesApproval card in the chatRoles with Approve actions
DangerousDelete, power off, reboot, restore, unlock an accountRed approval cardRoles with Approve dangerous actions
Approved planA patch run you rehearsed with a dry runOnce, for the whole planSame as the steps inside it

Each approval card says in plain words what will happen, and shows the exact command or API call.

Read-only commands never ask

Even inside a shell, Opsaido recognises commands that only look, and runs them without a card — plan or no plan.

LinuxWindows (PowerShell)
df -h, free -m, uptimeGet-Service, Get-Process
systemctl status, journalctlGet-EventLog, Get-WinEvent
ls, cat, find, grepGet-ChildItem, Get-Content
apt list --upgradable, apt-get -s upgradeGet-HotFix, Get-DnsServerResourceRecord
pvecm status, qm list, virsh listTest-NetConnection, Resolve-DnsName

Anything that writes — > redirects, rm, Set-*, Restart-* and the like — always asks.

Dry run, then approve once

For bigger jobs, ask for a dry run first:

“Dry run: patch node-2, moving its VMs to the other nodes first.”

  1. Investigate. Opsaido checks the systems involved: what runs where, what can move live, what’s pending.
  2. Rehearse. Every step is rehearsed and listed with the exact commands. Nothing changes.
  3. Approve. You get the plan with Approve plan & run and Cancel plan buttons.
  4. Run. Steps that match the plan run without asking again. A progress bar pinned at the top of the chat shows step 4 of 12.
  5. Stop on any variance. If a step differs from the plan, or fails, it pauses and asks you first.

Approval covers the plan exactly as shown. A different command, another machine or an extra step is a variance, and it always asks.

Plan states

StateWhat it meansWhat you can do
DraftRehearsed and waiting for youApprove plan & run, or Cancel plan
RunningCarrying out the approved stepsWatch the progress bar, or Cancel plan
PausedA step varied or failedApprove the variance, say “continue”, or cancel
FinishedEvery step doneNothing; the plan bar goes away
ExpiredNot finished within 6 hoursAsk for a fresh dry run

If a plan stops halfway and you finish some steps by hand, just say “continue”. Opsaido checks what’s already done, skips it, and marks the plan complete when nothing is left.

Rolling back

AskWhat happens
“Show my last 10 changes”Lists recent changes with who made them and when
“Roll back the DNS change”Prepares the undo and shows it for approval
“What changed on web-01 yesterday?”Searches the audit log for that machine

Every change, approval and rollback is in the audit log.