Review Board 1.7.22


Securing passwords in sqoop 1.x

Review Request #9771 - Created March 6, 2013 and updated

Seetharam Venkatesh
trunk
https://issues.apache.org/jira/browse/SQOOP-914
Reviewers
Sqoop
jarcec
sqoop-trunk
An attempt to add a way for users to pass credentials to sqoop in a secure way by storing the password in a file under user's home directory with 400 permissions.
Adds unit tests. All unit tests pass and checkstyle issues fixed.
src/docs/man/common-args.txt
Revision cf9c0c3 New Change
[20] 36 lines
[+20]
37
  Override $HADOOP_MAPRED_HOME
37
  Override $HADOOP_MAPRED_HOME
38

    
   
38

   
39
--help::
39
--help::
40
  Print usage instructions
40
  Print usage instructions
41

    
   
41

   

    
   
42
--password-file (file containing the password)::

    
   
43
  Set authentication password in a file on the users home

    
   
44
  directory with 400 permissions

    
   
45
  (Note: This is very secure and a preferred way of entering credentials)

    
   
46

   
42
--password (password)::
47
--password (password)::
43
  Set authentication password
48
  Set authentication password
44
  (Note: This is very insecure. You should use -P instead.)
49
  (Note: This is very insecure. You should use -P instead.)
45

    
   
50

   
46
-P::
51
-P::
[+20] [20] 10 lines
src/docs/user/common-args.txt
Revision 0554f81 New Change
 
src/docs/user/connecting.txt
Revision 44a5111 New Change
 
src/docs/user/help.txt
Revision 24fbddc New Change
 
src/docs/user/tools.txt
Revision 96bf777 New Change
 
src/java/org/apache/sqoop/SqoopOptions.java
Revision addc889 New Change
 
src/java/org/apache/sqoop/mapreduce/db/DBConfiguration.java
Revision d270bc8 New Change
 
src/java/org/apache/sqoop/tool/BaseSqoopTool.java
Revision 684d4a5 New Change
 
src/java/org/apache/sqoop/util/CredentialsUtil.java
New File
 
src/test/org/apache/sqoop/credentials/TestPassingSecurePassword.java
New File
 
  1. src/docs/man/common-args.txt: Loading...
  2. src/docs/user/common-args.txt: Loading...
  3. src/docs/user/connecting.txt: Loading...
  4. src/docs/user/help.txt: Loading...
  5. src/docs/user/tools.txt: Loading...
  6. src/java/org/apache/sqoop/SqoopOptions.java: Loading...
  7. src/java/org/apache/sqoop/mapreduce/db/DBConfiguration.java: Loading...
  8. src/java/org/apache/sqoop/tool/BaseSqoopTool.java: Loading...
  9. src/java/org/apache/sqoop/util/CredentialsUtil.java: Loading...
  10. src/test/org/apache/sqoop/credentials/TestPassingSecurePassword.java: Loading...