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

Robert Joseph Evans commented on MAPREDUCE-2858:
------------------------------------------------

@Luke,

I would gladly use Hamlet to generate the pages, but I had a difficult time 
finding documentation on how to do it at all.  I can see now after reading 
through HtmlPage that there is a Hamlet constructor that takes a PrintWriter, 
but I am still rather confused with all the generics and subclassing what I 
need to do to make it work properly.  In HtmlPage it is subclassing Hamlet 
along with the _ class and overriding the subView method who's javadocs says.

{quote}
   * Sub-classes should override this to do something interesting.
   * @param cls the sub-view class
{quote}

It appears that the default implementation will print out invalid HTML just 
describing the class that is a sub view, while the HtmlPage implementation will 
actually render the SubView, which I would consider to be interesting.  I 
suppose I don't need SubViews so I probably could just use it directly without 
subclassing, but it seems unsafe to me.

Is there an easier way to use Hamlet then to subclass the various parts of it? 
I wasn't sure how to set up the WebApp bindings correctly if I wanted to use 
that to give me the proxy either.  Would "/:app.id/:check/*" work? I don't see 
wildcards in a path spec like that being used with route anywhere.  If you 
could provide some code/hints that would really be great. 
 
                
> MRv2 WebApp Security
> --------------------
>
>                 Key: MAPREDUCE-2858
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-2858
>             Project: Hadoop Map/Reduce
>          Issue Type: Sub-task
>          Components: applicationmaster, mrv2, security
>    Affects Versions: 0.23.0, 0.24.0
>            Reporter: Luke Lu
>            Assignee: Robert Joseph Evans
>            Priority: Blocker
>             Fix For: 0.23.0
>
>         Attachments: MR-2858-branch-0.23.txt, MR-2858-branch-0.23.txt, 
> MR-2858.txt, MR-2858.txt
>
>
> In MRv2, while the system servers (ResourceManager (RM), NodeManager (NM) and 
> NameNode (NN)) run as "trusted"
> system users, the application masters (AM) run as users who submit the 
> application. While this offers great flexibility
> to run multiple version of mapreduce frameworks (including their UI) on the 
> same Hadoop cluster, it has significant
> implication for the security of webapps (Please do not discuss company 
> specific vulnerabilities here).
> Requirements:
> # Secure authentication for AM (for app/job level ACLs).
> # Webapp security should be optional via site configuration.
> # Support existing pluggable single sign on mechanisms.
> # Should not require per app/user configuration for deployment.
> # Should not require special site-wide DNS configuration for deployment.
> This the top jira for webapp security. A design doc/notes of threat-modeling 
> and counter measures will be posted on the wiki.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to