You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by sh...@apache.org on 2024/02/27 20:11:42 UTC

(hbase) branch branch-2.4 updated: HBASE-28391 Remove the need for ADMIN permissions for listDecommissionedRegionServers (#5695)

This is an automated email from the ASF dual-hosted git repository.

shahrs87 pushed a commit to branch branch-2.4
in repository https://gitbox.apache.org/repos/asf/hbase.git


The following commit(s) were added to refs/heads/branch-2.4 by this push:
     new 9459bd07e11 HBASE-28391 Remove the need for ADMIN permissions for listDecommissionedRegionServers (#5695)
9459bd07e11 is described below

commit 9459bd07e1124c11c23f04c23f28d3a939765a15
Author: Rushabh Shah <sh...@apache.org>
AuthorDate: Tue Feb 27 08:49:34 2024 -0800

    HBASE-28391 Remove the need for ADMIN permissions for listDecommissionedRegionServers (#5695)
    
    (cherry picked from commit 4b552434dbd9950aee28f183caba568c585c6f2a)
---
 .../java/org/apache/hadoop/hbase/security/access/AccessController.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/security/access/AccessController.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/security/access/AccessController.java
index f8ab32973f1..2d5ca86daec 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/security/access/AccessController.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/security/access/AccessController.java
@@ -1186,7 +1186,7 @@ public class AccessController implements MasterCoprocessor, RegionCoprocessor,
   @Override
   public void preListDecommissionedRegionServers(ObserverContext<MasterCoprocessorEnvironment> ctx)
     throws IOException {
-    requirePermission(ctx, "listDecommissionedRegionServers", Action.ADMIN);
+    requirePermission(ctx, "listDecommissionedRegionServers", Action.READ);
   }
 
   @Override