Safe-apply: confirm-or-revert (try / safe-restart equivalent)
#11
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem. There is no rollback command. Shorewall's
safe-restart/try(apply, wait N seconds for operator confirmation, auto-revert on timeout) is
the feature that stops you locking yourself out of a remote box.
stopped_rulesexists in the schema but a timed confirm-or-revert doesn'tappear in the CLI surface.
Proposal.
tomswall try [--timeout 60s]: snapshot live ruleset, differential apply,wait for
tomswall confirm; on timeout or dropped session, restore snapshot.verify the API is still reachable through the new ruleset, and auto-revert
status: revertedif it isn't. That check catches the worstcontrol-plane failure mode — a pushed rule that severs the device from the
API, which today would strand the device on the bad config forever.
Acceptance. Applying a rule that drops the SSH/API path auto-reverts within
the timeout with no console access.