Skip to content

Introduce a permission to destroy only snapshots, not datasets #11524

Description

@emtiu

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:

  1. Consider an environment in which users might want to take snapshots, but not create or destroy any datsets (such as: there's one dataset per home directory for all users). Here, we might want to allow users to maintain snapshots on their own (in order to save space, or maintain a tidy set of snapshots). This is currently not possible without also granting the permission to destroy datasets, which is undesirable.
  2. destroysnaps might bring more peace of mind to anxious users (like myself): We could allow 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: FeatureFeature request or new feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions