-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduce a permission to destroy only snapshots, not datasets #11524
Comments
Agree, every time I'm recursively destroying snapshots I'm anxious if I forgot the It could also be a nice exempt from |
This seems like a no-brainer and I'd really like to see this. Besides the risky command line stuff, there are lots of snapshot management tools where you really want to give them the least amount of permissions possible. There is a big difference between destroying a snap and a dataset. |
What about bookmarks? Is that implied by the snapshot permission? Or does it need its own? |
Since users here are mainly concerned with the safety of preventing accidental datset destruction while allowing for simple maintenance tasks, I'd say bookmarks could be included under |
Fwiw, the idea of adding granular permission for snapshot destruction was mentioned in @allanjude's talk at the OpenZFS Developer Summit 2022.
|
They need their own as destroying bookmarks can destroy your backup procedure. You don't want users, or accidents, to prevent your backup from working. |
Good point. So |
Has there been any progress on this, or are there particular reasons this seems to be stuck? |
My best guess is that no developers capable of implementing this feature are interested in it. |
The best way to get attention for this feature is to add it to the agenda and discuss it in a monthly OpenZFS Leadership meeting: https://openzfs.org/wiki/OpenZFS_Leadership_Meeting |
the best way to get this feature rolling is to open a half-assed pull request and hope that others come along to point out the flaws and help fix/improve it for inclusion; i do this all the time to good effect. |
Currently, destroying datasets and destroying snapshots are both covered by the
destroy
permission.As per this blogpost and this old bug report, it would be useful to be able to delegate the permission to destroy snapshots, but not datasets. This permissions might be called
destroysnaps
.There's at least two use cases:
destroysnaps
might bring more peace of mind to anxious users (like myself): We couldallow
ourselves to destroy snapshots as a normal user, but leave the destroying of datasets to root, avoiding the horror of being one typo away from accidentally destroying a dataset.The text was updated successfully, but these errors were encountered: