Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-14141

Enforce granular role-based access control for alert functions

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.4.0
    • 2.4.0
    • ambari-server

    Description

      Enforce granular role-based access control for alert functions:

        Cluster
      User
      Service
      Operator
      Service
      Administrator
      Cluster
      Operator
      Cluster
      Administrator
      Administrator
      View alerts (service)
      Enable/disable alerts (service)    
      View alerts (cluster)
      Enable/disable alerts (cluster)        

      Entry points affected: TBD

      Attachments

        1. AMBARI-14141_trunk_01.patch
          208 kB
          Robert Levas
        2. AMBARI-14141_trunk_02.patch
          221 kB
          Robert Levas
        3. AMBARI-14141_trunk_04.patch
          217 kB
          Robert Levas

        Issue Links

          Activity

            hadoopqa Hadoop QA added a comment -

            -1 overall. Here are the results of testing the latest attachment
            http://issues.apache.org/jira/secure/attachment/12777527/AMBARI-14141_trunk_01.patch
            against trunk revision .

            -1 patch. The patch command could not apply the patch.

            Console output: https://builds.apache.org/job/Ambari-trunk-test-patch/4596//console

            This message is automatically generated.

            hadoopqa Hadoop QA added a comment - -1 overall . Here are the results of testing the latest attachment http://issues.apache.org/jira/secure/attachment/12777527/AMBARI-14141_trunk_01.patch against trunk revision . -1 patch . The patch command could not apply the patch. Console output: https://builds.apache.org/job/Ambari-trunk-test-patch/4596//console This message is automatically generated.
            hadoopqa Hadoop QA added a comment -

            -1 overall. Here are the results of testing the latest attachment
            http://issues.apache.org/jira/secure/attachment/12778071/AMBARI-14141_trunk_02.patch
            against trunk revision .

            +1 @author. The patch does not contain any @author tags.

            +1 tests included. The patch appears to include 7 new or modified test files.

            -1 javac. The applied patch generated 61 javac compiler warnings (more than the trunk's current 60 warnings).

            +1 release audit. The applied patch does not increase the total number of release audit warnings.

            -1 core tests. The test build failed in ambari-server

            Test results: https://builds.apache.org/job/Ambari-trunk-test-patch/4613//testReport/
            Javac warnings: https://builds.apache.org/job/Ambari-trunk-test-patch/4613//artifact/trunk/patchprocess/diffJavacWarnings.txt
            Console output: https://builds.apache.org/job/Ambari-trunk-test-patch/4613//console

            This message is automatically generated.

            hadoopqa Hadoop QA added a comment - -1 overall . Here are the results of testing the latest attachment http://issues.apache.org/jira/secure/attachment/12778071/AMBARI-14141_trunk_02.patch against trunk revision . +1 @author . The patch does not contain any @author tags. +1 tests included . The patch appears to include 7 new or modified test files. -1 javac . The applied patch generated 61 javac compiler warnings (more than the trunk's current 60 warnings). +1 release audit . The applied patch does not increase the total number of release audit warnings. -1 core tests . The test build failed in ambari-server Test results: https://builds.apache.org/job/Ambari-trunk-test-patch/4613//testReport/ Javac warnings: https://builds.apache.org/job/Ambari-trunk-test-patch/4613//artifact/trunk/patchprocess/diffJavacWarnings.txt Console output: https://builds.apache.org/job/Ambari-trunk-test-patch/4613//console This message is automatically generated.
            hadoopqa Hadoop QA added a comment -

            -1 overall. Here are the results of testing the latest attachment
            http://issues.apache.org/jira/secure/attachment/12778071/AMBARI-14141_trunk_02.patch
            against trunk revision .

            +1 @author. The patch does not contain any @author tags.

            +1 tests included. The patch appears to include 7 new or modified test files.

            -1 javac. The applied patch generated 61 javac compiler warnings (more than the trunk's current 60 warnings).

            +1 release audit. The applied patch does not increase the total number of release audit warnings.

            -1 core tests. The test build failed in ambari-server

            Test results: https://builds.apache.org/job/Ambari-trunk-test-patch/4616//testReport/
            Javac warnings: https://builds.apache.org/job/Ambari-trunk-test-patch/4616//artifact/trunk/patchprocess/diffJavacWarnings.txt
            Console output: https://builds.apache.org/job/Ambari-trunk-test-patch/4616//console

            This message is automatically generated.

            hadoopqa Hadoop QA added a comment - -1 overall . Here are the results of testing the latest attachment http://issues.apache.org/jira/secure/attachment/12778071/AMBARI-14141_trunk_02.patch against trunk revision . +1 @author . The patch does not contain any @author tags. +1 tests included . The patch appears to include 7 new or modified test files. -1 javac . The applied patch generated 61 javac compiler warnings (more than the trunk's current 60 warnings). +1 release audit . The applied patch does not increase the total number of release audit warnings. -1 core tests . The test build failed in ambari-server Test results: https://builds.apache.org/job/Ambari-trunk-test-patch/4616//testReport/ Javac warnings: https://builds.apache.org/job/Ambari-trunk-test-patch/4616//artifact/trunk/patchprocess/diffJavacWarnings.txt Console output: https://builds.apache.org/job/Ambari-trunk-test-patch/4616//console This message is automatically generated.
            rlevas Robert Levas added a comment -

            Committed to trunk

            commit 66e1595c3f4cda4100d71a41940a18fe3ed36424
            Author: Robert Levas <rlevas@hortonworks.com>
            Date:   Thu Dec 17 12:40:16 2015 -0500
            
            rlevas Robert Levas added a comment - Committed to trunk commit 66e1595c3f4cda4100d71a41940a18fe3ed36424 Author: Robert Levas <rlevas@hortonworks.com> Date: Thu Dec 17 12:40:16 2015 -0500
            hudson Hudson added a comment -

            FAILURE: Integrated in Ambari-trunk-Commit #4062 (See https://builds.apache.org/job/Ambari-trunk-Commit/4062/)
            AMBARI-14141. Enforce granular role-based access control for alert (rlevas: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=66e1595c3f4cda4100d71a41940a18fe3ed36424)

            • ambari-server/src/main/java/org/apache/ambari/server/controller/internal/AlertNoticeResourceProvider.java
            • ambari-server/src/test/java/org/apache/ambari/server/controller/internal/AlertResourceProviderTest.java
            • ambari-server/src/main/resources/Ambari-DDL-MySQL-CREATE.sql
            • ambari-server/src/main/resources/Ambari-DDL-SQLServer-CREATE.sql
            • ambari-server/src/test/java/org/apache/ambari/server/controller/internal/AlertDefinitionResourceProviderTest.java
            • ambari-server/src/main/java/org/apache/ambari/server/controller/internal/AlertResourceProvider.java
            • ambari-server/src/main/resources/Ambari-DDL-Postgres-CREATE.sql
            • ambari-server/src/main/resources/Ambari-DDL-Oracle-CREATE.sql
            • ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog230.java
            • ambari-server/src/main/java/org/apache/ambari/server/controller/internal/AlertHistoryResourceProvider.java
            • ambari-server/src/main/java/org/apache/ambari/server/controller/internal/AlertGroupResourceProvider.java
            • ambari-server/src/main/java/org/apache/ambari/server/controller/internal/AlertResourceProviderUtils.java
            • ambari-server/src/test/java/org/apache/ambari/server/controller/internal/AlertTargetResourceProviderTest.java
            • ambari-server/src/main/java/org/apache/ambari/server/controller/internal/AlertDefinitionResourceProvider.java
            • ambari-server/src/main/java/org/apache/ambari/server/controller/internal/AbstractControllerResourceProvider.java
            • ambari-server/src/test/java/org/apache/ambari/server/security/TestAuthenticationFactory.java
            • ambari-server/src/test/java/org/apache/ambari/server/controller/internal/AlertGroupResourceProviderTest.java
            • ambari-server/src/main/java/org/apache/ambari/server/security/authorization/RoleAuthorization.java
            • ambari-server/src/main/java/org/apache/ambari/server/security/authorization/AmbariAuthorizationFilter.java
            • ambari-server/src/main/java/org/apache/ambari/server/controller/internal/DefaultProviderModule.java
            • ambari-server/src/test/java/org/apache/ambari/server/controller/internal/AlertNoticeResourceProviderTest.java
            • ambari-server/src/test/java/org/apache/ambari/server/controller/internal/AlertHistoryResourceProviderTest.java
            • ambari-server/src/main/java/org/apache/ambari/server/controller/internal/AlertTargetResourceProvider.java
            • ambari-server/src/main/resources/Ambari-DDL-Postgres-EMBEDDED-CREATE.sql
            • ambari-server/src/main/resources/Ambari-DDL-SQLAnywhere-CREATE.sql
            hudson Hudson added a comment - FAILURE: Integrated in Ambari-trunk-Commit #4062 (See https://builds.apache.org/job/Ambari-trunk-Commit/4062/ ) AMBARI-14141 . Enforce granular role-based access control for alert (rlevas: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=66e1595c3f4cda4100d71a41940a18fe3ed36424 ) ambari-server/src/main/java/org/apache/ambari/server/controller/internal/AlertNoticeResourceProvider.java ambari-server/src/test/java/org/apache/ambari/server/controller/internal/AlertResourceProviderTest.java ambari-server/src/main/resources/Ambari-DDL-MySQL-CREATE.sql ambari-server/src/main/resources/Ambari-DDL-SQLServer-CREATE.sql ambari-server/src/test/java/org/apache/ambari/server/controller/internal/AlertDefinitionResourceProviderTest.java ambari-server/src/main/java/org/apache/ambari/server/controller/internal/AlertResourceProvider.java ambari-server/src/main/resources/Ambari-DDL-Postgres-CREATE.sql ambari-server/src/main/resources/Ambari-DDL-Oracle-CREATE.sql ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog230.java ambari-server/src/main/java/org/apache/ambari/server/controller/internal/AlertHistoryResourceProvider.java ambari-server/src/main/java/org/apache/ambari/server/controller/internal/AlertGroupResourceProvider.java ambari-server/src/main/java/org/apache/ambari/server/controller/internal/AlertResourceProviderUtils.java ambari-server/src/test/java/org/apache/ambari/server/controller/internal/AlertTargetResourceProviderTest.java ambari-server/src/main/java/org/apache/ambari/server/controller/internal/AlertDefinitionResourceProvider.java ambari-server/src/main/java/org/apache/ambari/server/controller/internal/AbstractControllerResourceProvider.java ambari-server/src/test/java/org/apache/ambari/server/security/TestAuthenticationFactory.java ambari-server/src/test/java/org/apache/ambari/server/controller/internal/AlertGroupResourceProviderTest.java ambari-server/src/main/java/org/apache/ambari/server/security/authorization/RoleAuthorization.java ambari-server/src/main/java/org/apache/ambari/server/security/authorization/AmbariAuthorizationFilter.java ambari-server/src/main/java/org/apache/ambari/server/controller/internal/DefaultProviderModule.java ambari-server/src/test/java/org/apache/ambari/server/controller/internal/AlertNoticeResourceProviderTest.java ambari-server/src/test/java/org/apache/ambari/server/controller/internal/AlertHistoryResourceProviderTest.java ambari-server/src/main/java/org/apache/ambari/server/controller/internal/AlertTargetResourceProvider.java ambari-server/src/main/resources/Ambari-DDL-Postgres-EMBEDDED-CREATE.sql ambari-server/src/main/resources/Ambari-DDL-SQLAnywhere-CREATE.sql

            People

              rlevas Robert Levas
              rlevas Robert Levas
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: