hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Abhishek Kumar (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HBASE-16311) Audit log for delete snapshot operation is missing in case of snapshot owner deleting the same
Date Mon, 01 Aug 2016 12:51:20 GMT
Abhishek Kumar created HBASE-16311:
--------------------------------------

             Summary: Audit log for delete snapshot operation is missing in case of snapshot
owner deleting the same
                 Key: HBASE-16311
                 URL: https://issues.apache.org/jira/browse/HBASE-16311
             Project: HBase
          Issue Type: Improvement
          Components: snapshots
            Reporter: Abhishek Kumar
            Priority: Minor


1. Audit log seems to be left as a TODO task in AccessController.java:
...................
@Override
  public void preDeleteSnapshot(final ObserverContext<MasterCoprocessorEnvironment>
ctx,
      final SnapshotDescription snapshot) throws IOException {
    if (SnapshotDescriptionUtils.isSnapshotOwner(snapshot, getActiveUser())) {
      // Snapshot owner is allowed to delete the snapshot
      // TODO: We are not logging this for audit
    } else {
      requirePermission("deleteSnapshot", Action.ADMIN);
    }
  }
...................
2. Also, snapshot name is not getting logged in the audit logs.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message