[Feature] CIS Benchmark Hardening Rollback
Describe the feature
Can we have a rollback button, so in case the hardenings make anything worse and unwanted we can rollback to the previous settings?
Use Case
Rollback cis hardenings done via pegaprox, in case anything unwanted happens.
How important is this for you?
Might increase usage of cis hardening as people will more easily activate those if they know they can rollback.
Checklist
- [x] I have searched existing issues and discussions to make sure this hasn't been requested before
Hi @proxforge — fair ask. CIS Benchmark hardenings touch a lot of host-level state (PAM, sysctl, auditd, SSH config, cron, file perms…) and a clean rollback path requires us to (a) snapshot every changed file before write and (b) treat the rollback as its own audited operation rather than a "redo the inverse" guess. Real work, not a one-button feature, but the right architectural shape to aim at.
Tracking this. We're in a no-commitment posture on feature requests at the moment — project's volunteer-run and the queue is honest about that — so no date promises from me.
If hardening rollback is a deal-breaker for adopting the CIS profile in your environment, https://opencollective.com/pegaprox is the lever that moves things from "tracked" to "shipped".
— Marcus
Good news — this shipped! 🎉 Each CIS control now captures a rollback command when it's applied, and there's a Rollback action (a button under Datacenter → Node → Harden PVE Node, backed by the .../hardening/rollback endpoint) that reverts the selected controls if a hardening causes anything unwanted. So you can harden with a safety net and undo per-control.
Closing as done — and thanks, this was exactly the right instinct: the rollback is what makes the hardening safe to actually turn on. 🔒