You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by ni...@apache.org on 2024/09/23 16:29:56 UTC

(hbase) branch branch-2 updated: HBASE-28868 Add missing permission check for updateRSGroupConfig in branch-2 (#6277)

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

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


The following commit(s) were added to refs/heads/branch-2 by this push:
     new cf9c1d5a027 HBASE-28868 Add missing permission check for updateRSGroupConfig in branch-2 (#6277)
cf9c1d5a027 is described below

commit cf9c1d5a0276000d9e2e6f56aed162adc5484a25
Author: Nihal Jain <ni...@apache.org>
AuthorDate: Mon Sep 23 21:59:51 2024 +0530

    HBASE-28868 Add missing permission check for updateRSGroupConfig in branch-2 (#6277)
    
    Signed-off-by: Duo Zhang <zh...@apache.org>
---
 .../main/java/org/apache/hadoop/hbase/rsgroup/RSGroupAdminEndpoint.java  | 1 +
 1 file changed, 1 insertion(+)

diff --git a/hbase-rsgroup/src/main/java/org/apache/hadoop/hbase/rsgroup/RSGroupAdminEndpoint.java b/hbase-rsgroup/src/main/java/org/apache/hadoop/hbase/rsgroup/RSGroupAdminEndpoint.java
index 7b22b8a3061..0d5188ce735 100644
--- a/hbase-rsgroup/src/main/java/org/apache/hadoop/hbase/rsgroup/RSGroupAdminEndpoint.java
+++ b/hbase-rsgroup/src/main/java/org/apache/hadoop/hbase/rsgroup/RSGroupAdminEndpoint.java
@@ -447,6 +447,7 @@ public class RSGroupAdminEndpoint implements MasterCoprocessor, MasterObserver {
         if (master.getMasterCoprocessorHost() != null) {
           master.getMasterCoprocessorHost().preUpdateRSGroupConfig(groupName, configuration);
         }
+        checkPermission("updateRSGroupConfig");
         groupAdminServer.updateRSGroupConfig(groupName, configuration);
         if (master.getMasterCoprocessorHost() != null) {
           master.getMasterCoprocessorHost().postUpdateRSGroupConfig(groupName, configuration);