You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@storm.apache.org by "Robert Joseph Evans (JIRA)" <ji...@apache.org> on 2016/01/11 20:05:39 UTC

[jira] [Resolved] (STORM-1150) The authorization mode of Logviewer is not working well when I add other groups for log

     [ https://issues.apache.org/jira/browse/STORM-1150?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Joseph Evans resolved STORM-1150.
----------------------------------------
       Resolution: Fixed
    Fix Version/s: 0.11.0

Thanks [~rujia1019],

I merged this into master.

> The authorization  mode of Logviewer is not working well when I add other groups for log
> ----------------------------------------------------------------------------------------
>
>                 Key: STORM-1150
>                 URL: https://issues.apache.org/jira/browse/STORM-1150
>             Project: Apache Storm
>          Issue Type: Bug
>          Components: storm-core
>    Affects Versions: 0.10.0
>            Reporter: rujia
>            Assignee: rujia
>             Fix For: 0.11.0
>
>
> I add a super group for logviewer with codes :
> (defn authorized-log-user? [user fname conf]
>   (if (or (blank? user) (blank? fname))
>     nil
>     (let [groups (user-groups user)
>           [user-wl group-wl] (get-log-user-group-whitelist conf fname)
>           logs-users (concat (conf LOGS-USERS)
>                              (conf NIMBUS-ADMINS)
>                              user-wl)
>           logs-groups (concat (conf LOGS-GROUPS)
>                               (conf NIMBUS-ADMIN-GROUPS)   //my super group
>                               group-wl)]
>        (or (some #(= % user) logs-users)
>            (< 0 (.size (intersection (set groups) (set group-wl))))))))
> maybe the "(set group-wl)" should be "(set  logs-groups)"?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)