[
https://issues.apache.org/jira/browse/SQOOP-501?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13398756#comment-13398756
]
Cheolsoo Park commented on SQOOP-501:
-------------------------------------
I think that the best way to approach this is to define our own keyboard input
reader class and provide two mode in that class: secure and non-secure.
Currently, my interactive session uses a built-in reader (e.g. BufferredReader
- see SQOOP-494). One problem is that characters that the user types do not
show up until hit enter. So if we can replace BufferedReader with our keyboard
input reader that reads user's input char by char, it will provide better user
experience.
In addition, when collecting sensitive information, we simply turn on secure
mode so that we can mask user's input.
The keyboard input reader class should be able to read a character at a time,
and prints that character (or a mask character) back to stdout, and handle the
backspace char accordingly (i.e. remove a previous char rather than appending
the backpsace char to the end of buffer).
Lastly, I think that this class can be placed in a separate package (perhaps
sqoop.client.shell.util?).
Please let me know if anyone has a better suggestion and also feel free to take
on this jira.
Thanks!
> Infrastructure to support input of sensitive information like passwords in
> the client shell
> -------------------------------------------------------------------------------------------
>
> Key: SQOOP-501
> URL: https://issues.apache.org/jira/browse/SQOOP-501
> Project: Sqoop
> Issue Type: Task
> Reporter: Arvind Prabhakar
> Fix For: 2.0.0
>
>
> For example, a password should be entered in a manner that keeps it secure
> through the input and the remaining session.
--
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