You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@oozie.apache.org by "Mona Chitnis (JIRA)" <ji...@apache.org> on 2014/01/30 23:10:09 UTC

[jira] [Commented] (OOZIE-1579) Add basic HTTP auth to Oozie CLI

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

Mona Chitnis commented on OOZIE-1579:
-------------------------------------

1. Consider renaming BASIC. BASIC and SIMPLE is becoming confusing now
2. Need to handle removal of a previously obtained .oozie.auth.token on client, if BASIC is chosen. Else, requests will be continued to be sent despite wrong username/pwd

> Add basic HTTP auth to Oozie CLI
> --------------------------------
>
>                 Key: OOZIE-1579
>                 URL: https://issues.apache.org/jira/browse/OOZIE-1579
>             Project: Oozie
>          Issue Type: Bug
>          Components: client
>            Reporter: David Wannemacher
>            Assignee: David Wannemacher
>             Fix For: trunk
>
>         Attachments: OOZIE-1579.trunk.2.patch, OOZIE-1579.trunk.patch
>
>
> This proposed change adds Basic HTTP Auth functionality to the Oozie CLI. This would never be used in a usual Oozie installation because Oozie servers support token-based authentication: Pseudo/Simple Auth and Kerberos.
> Basic HTTP Auth is needed in the Oozie CLI for when the Oozie service is placed behind a gateway that uses Basic HTTP Auth over SSL. It is assumed that the Oozie service is running with authorization turned off, because the gateway is handling authorization. Once the user authenticates himself to the gateway, the request is forwarded through the gateway to the oozie service.
> This had to be implemented outside of the custom authentication framework provided by Oozie because basic auth requires adding a request property to each connection created. It's completely possible that there is a cleaner way of implementing this, if so please let me know!
> Two additions were implemented in the CLI:
> * Indication to use Basic Auth. This is done by specifying BASIC as the argument to the -auth argument.
> * Configuration of Basic Auth.
> ** Introduction of -username and -password command line arguments.
> ** If the auth mode is BASIC, only -username is provided, and the OOZIEPASSWORD environment variable is set, the OOZIEPASSWORD environment variable will be used for the password.
> ** If mode is BASIC and only -username is provided, and OOZIEPASSWORD is undefined, the user will be prompted for the password, and the shell facilities for masking input will be used.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)