Description
Currently only Global admin has the access of cloning a snapshot.
In AccessController,
@Override public void preCloneSnapshot(final ObserverContext<MasterCoprocessorEnvironment> ctx, final SnapshotDescription snapshot, final HTableDescriptor hTableDescriptor) throws IOException { requirePermission(getActiveUser(ctx), "cloneSnapshot " + snapshot.getName(), Action.ADMIN); }
Snapshot owner should be able to clone it, need to add a check like,
SnapshotDescriptionUtils.isSnapshotOwner(snapshot, user)
Attachments
Attachments
Issue Links
- is related to
-
HBASE-11869 Support snapshot owner
- Closed