You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Robert Levas (JIRA)" <ji...@apache.org> on 2019/04/02 14:38:00 UTC
[jira] [Commented] (AMBARI-25224) Users with Service Administrator
roles should be able to create Alerts in ambari
[ https://issues.apache.org/jira/browse/AMBARI-25224?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16807812#comment-16807812 ]
Robert Levas commented on AMBARI-25224:
---------------------------------------
A decision was made somewhere to only allow Cluster Administrators and Ambari Administrators to create custom alerts. This seems to make sense since the alert is a cluster-related resources, not a service-related resource. Maybe with more granular roles, this might be changed.
I will leave this open in the event someone cares to take a look at it and see if determining the level of alert is feasible before determining the appropriate permission required.
> Users with Service Administrator roles should be able to create Alerts in ambari
> --------------------------------------------------------------------------------
>
> Key: AMBARI-25224
> URL: https://issues.apache.org/jira/browse/AMBARI-25224
> Project: Ambari
> Issue Type: Bug
> Components: ambari-sever
> Affects Versions: 2.7.3
> Reporter: Shubham
> Priority: Major
>
> Problems Statement : Currently i am having service administrator privilage in my cluster. i am trying to create Custom Alert in ambari and its failing with above exception :
>
>
> {code:java}
> curl -u TestUser:admin -i -H 'X-Requested-By:ambari' -X POST -d @alertsjson.txt http://test1:8080/api/v1/clusters/test1/alert_definitions
> HTTP/1.1 100 Continue
> HTTP/1.1 403 Forbidden
> X-Frame-Options: DENY
> X-XSS-Protection: 1; mode=block
> X-Content-Type-Options: nosniff
> Cache-Control: no-store
> Pragma: no-cache
> Set-Cookie: AMBARISESSIONID=9g1ieqg3rijo1tuclt3dxkedl;Path=/;HttpOnly
> Expires: Thu, 01 Jan 1970 00:00:00 GMT
> User: TestUser
> Content-Type: text/plain
> Content-Length: 109
> {
> "status" : 403,
> "message" : "The authenticated user is not authorized to manage cluster-level alerts"
> }
> {code}
> But i feel as i am service administrator i should be able to create a alert.
>
> Currently only Ambari Administrator is able to create alert in ambaril
>
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)