You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2018/07/30 23:05:00 UTC

[jira] [Commented] (AMBARI-24384) Logic and declaration used to determine if Kerberos is enabled for a service

    [ https://issues.apache.org/jira/browse/AMBARI-24384?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16562648#comment-16562648 ] 

Hudson commented on AMBARI-24384:
---------------------------------

SUCCESS: Integrated in Jenkins build Ambari-branch-2.7 #91 (See [https://builds.apache.org/job/Ambari-branch-2.7/91/])
[AMBARI-24384] Logic and declaration used to determine if Kerberos is (rlevas: [https://gitbox.apache.org/repos/asf?p=ambari.git&a=commit&h=1372f03a0b19457467002c8eea5f900b9fbb1e86])
* (edit) ambari-server/src/main/java/org/apache/ambari/server/state/ServiceInfo.java
* (edit) ambari-server/src/test/java/org/apache/ambari/server/state/ServiceTest.java
* (edit) ambari-server/src/test/resources/stacks/HDP/0.1/services/HDFS/metainfo.xml
* (edit) ambari-server/src/test/java/org/apache/ambari/server/state/ServiceInfoTest.java
* (edit) ambari-server/src/main/java/org/apache/ambari/server/controller/internal/ServiceResourceProvider.java
* (edit) ambari-server/src/main/java/org/apache/ambari/server/controller/ServiceResponse.java
* (edit) ambari-server/src/main/java/org/apache/ambari/server/state/Service.java
* (edit) ambari-server/src/main/java/org/apache/ambari/server/state/ServiceImpl.java


> Logic and declaration used to determine if Kerberos is enabled for a service
> ----------------------------------------------------------------------------
>
>                 Key: AMBARI-24384
>                 URL: https://issues.apache.org/jira/browse/AMBARI-24384
>             Project: Ambari
>          Issue Type: Bug
>            Reporter: Robert Levas
>            Assignee: Robert Levas
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 1.5h
>  Remaining Estimate: 0h
>
> Add logic and declaration used to determine if Kerberos is enabled for a service.
> To support a robust method to determine whether Kerberos is enabled or not, a new attribute should be added - {{kerberosEnabledTest}}.  
> The {{kerberosEnabledTest}} attribute is to contain a JSON document that can be _compiled_ into a {{org.apache.commons.collections.Predicate}} (ideally using {{org.apache.ambari.server.collections.PredicateUtils#fromJSON}}).  For example
> {code}
> <sso>
>   <supported>true</supported>
>   <kerberosEnabledTest>
>     {
>       "equals": [
>         "service-properties/kerberos.enabled",
>         "true"
>       ]
>     }
> </kerberosEnabledTest>
> {code}
> {code}
> <sso>
>   <supported>true</supported>
>   <kerberosEnabledTest>
>     {
>       "or": [
>         {
>           "equals": [
>             "oozie-site/oozie.authentication.type",
>             "kerberos"
>           ]
>         },
>         {
>           "equals": [
>             "oozie-site/oozie.authentication.type",
>             "org.apache.hadoop.security.authentication.server.JWTRedirectAuthenticationHandler"
>           ]
>         }
>       ]
>     }
>   </kerberosEnabledTest>
> </sso>
> {code}
> The result of the test, is to be available via the services REST API:
> {code:title=GET /api/v1/clusters/CLUSTERNAME/services/OOZIE}
> {
>   "href" : "http://ambari_host:8080/api/v1/clusters/CLUSTERNAME/services/OOZIE",
>   "ServiceInfo" : {
>     ...
>     "kerberos_enabled" : true,
>     ...
>    },
>    ...
> }
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)