Review Board 1.7.22


HIVE-5155: Support secure proxy user access to HiveServer2

Review Request #13845 - Created Aug. 27, 2013 and updated

Prasad Mujumdar
trunk
HIVE-5155
Reviewers
hive
brocknoland, carl, thejas
hive-git
Delegation token support -
Enable delegation token connection for HiveServer2
Enhance the TCLIService interface to support delegation token requests
Support passing the delegation token connection type via JDBC URL and Beeline option

Direct proxy access -
Define new proxy user property
Shim interfaces to validate proxy access for a given user

Note that the diff doesn't include thrift generated code.
Since this requires kerberos setup, its tested by a standalone test program that runs various existing and new secure connection scenarios. The test code is attached to the ticket at https://issues.apache.org/jira/secure/attachment/12600119/ProxyAuth.java
beeline/pom.xml
Revision 02bfaaa New Change
[20] 142 lines
[+20]
143
  </profiles>
143
  </profiles>
144

    
   
144

   
145
  <build>
145
  <build>
146
    <sourceDirectory>${basedir}/src/java</sourceDirectory>
146
    <sourceDirectory>${basedir}/src/java</sourceDirectory>
147
    <testSourceDirectory>${basedir}/src/test</testSourceDirectory>
147
    <testSourceDirectory>${basedir}/src/test</testSourceDirectory>

    
   
148
    <plugins>

    
   
149
      <plugin>

    
   
150
        <groupId>org.apache.maven.plugins</groupId>

    
   
151
        <artifactId>maven-jar-plugin</artifactId>

    
   
152
        <executions>

    
   
153
          <execution>

    
   
154
            <goals>

    
   
155
              <goal>test-jar</goal>

    
   
156
            </goals>

    
   
157
          </execution>

    
   
158
        </executions>

    
   
159
      </plugin>

    
   
160
    </plugins>
148
  </build>
161
  </build>
149

    
   
162

   
150
</project>
163
</project>
beeline/src/java/org/apache/hive/beeline/BeeLine.java
Revision e63a3b0 New Change
 
beeline/src/java/org/apache/hive/beeline/BeeLineOpts.java
Revision 91e20ec New Change
 
beeline/src/java/org/apache/hive/beeline/Commands.java
Revision d2d7fd3 New Change
 
beeline/src/java/org/apache/hive/beeline/DatabaseConnection.java
Revision 94178ef New Change
 
beeline/src/test/org/apache/hive/beeline/ProxyAuthTest.java
New File
 
common/src/java/org/apache/hadoop/hive/conf/HiveConf.java
Revision edc3d38 New Change
 
conf/hive-default.xml.template
Revision a5a85b4 New Change
 
data/files/ProxyAuth.res
New File
 
itests/hive-unit/src/test/java/org/apache/hive/jdbc/TestJdbcDriver2.java
Revision 8210e75 New Change
 
jdbc/src/java/org/apache/hadoop/hive/jdbc/HiveConnection.java
Revision d08e05b New Change
 
jdbc/src/java/org/apache/hive/jdbc/HiveConnection.java
Revision 607fc7a New Change
 
jdbc/src/java/org/apache/hive/jdbc/Utils.java
Revision 608837e New Change
 
service/src/java/org/apache/hive/service/auth/HiveAuthFactory.java
Revision d8ba3aa New Change
 
service/src/java/org/apache/hive/service/auth/KerberosSaslHelper.java
Revision 71dc592 New Change
 
service/src/java/org/apache/hive/service/auth/PlainSaslHelper.java
Revision 15b1675 New Change
 
service/src/java/org/apache/hive/service/cli/CLIService.java
Revision 2b1e712 New Change
 
service/src/java/org/apache/hive/service/cli/CLIServiceClient.java
Revision b9d1489 New Change
 
service/src/java/org/apache/hive/service/cli/EmbeddedCLIServiceClient.java
Revision a31ea94 New Change
 
service/src/java/org/apache/hive/service/cli/ICLIService.java
Revision 621d689 New Change
 
  1. beeline/pom.xml: Loading...
  2. beeline/src/java/org/apache/hive/beeline/BeeLine.java: Loading...
  3. beeline/src/java/org/apache/hive/beeline/BeeLineOpts.java: Loading...
  4. beeline/src/java/org/apache/hive/beeline/Commands.java: Loading...
  5. beeline/src/java/org/apache/hive/beeline/DatabaseConnection.java: Loading...
  6. beeline/src/test/org/apache/hive/beeline/ProxyAuthTest.java: Loading...
  7. common/src/java/org/apache/hadoop/hive/conf/HiveConf.java: Loading...
  8. conf/hive-default.xml.template: Loading...
  9. data/files/ProxyAuth.res: Loading...
  10. itests/hive-unit/src/test/java/org/apache/hive/jdbc/TestJdbcDriver2.java: Loading...
  11. jdbc/src/java/org/apache/hadoop/hive/jdbc/HiveConnection.java: Loading...
  12. jdbc/src/java/org/apache/hive/jdbc/HiveConnection.java: Loading...
  13. jdbc/src/java/org/apache/hive/jdbc/Utils.java: Loading...
  14. service/src/java/org/apache/hive/service/auth/HiveAuthFactory.java: Loading...
  15. service/src/java/org/apache/hive/service/auth/KerberosSaslHelper.java: Loading...
  16. service/src/java/org/apache/hive/service/auth/PlainSaslHelper.java: Loading...
  17. service/src/java/org/apache/hive/service/cli/CLIService.java: Loading...
  18. service/src/java/org/apache/hive/service/cli/CLIServiceClient.java: Loading...
  19. service/src/java/org/apache/hive/service/cli/EmbeddedCLIServiceClient.java: Loading...
  20. service/src/java/org/apache/hive/service/cli/ICLIService.java: Loading...
This diff has been split across 2 pages: 1 2 >