I recently lost the security key I store my primary SSH key on, and had to remove that key from all authorized_keys files I had access to. It would be great if Ssh.authorizedKey was revertable, so that this could be done simply by adding a ! before existing Ssh.authorizedKey lines.
This should be easy enough to implement; just implement a property that ensures the file lacks an authorized key (probably using
File.lacksLine
) and then combine the two properties with<!>
to get a RevertableProperty.I'd accept a patch that does that.