Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-20651

JdbcStorageHandler password should be encrypted

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.2.0, 4.0.0-alpha-1
    • StorageHandler
    • None
    • Reviewed

    Description

      Currently, external jdbc table with JdbcStorageHandler store password as "hive.sql.dbcp.password" table property in clear text. We should put it in a keystore file. Here is the proposed change:

      ….
      STORED BY 'org.apache.hive.storage.jdbc.JdbcStorageHandler'
      TBLPROPERTIES (
      "hive.sql.dbcp.password.keystore" = "hdfs:///user/hive/credential/postgres.jceks",
      "hive.sql.dbcp.password.key" = "mydb.password"
      );
      

       
      The jceks file is created with:

      hadoop credential create mydb.password -provider hdfs:///user/hive/credential/postgres.jceks -v secretpassword
      

      User can choose to put all db password in one jceks, or a separate jceks for each db.

      Attachments

        1. HIVE-20651.7.patch
          35 kB
          Daniel Dai
        2. HIVE-20651.6.patch
          35 kB
          Daniel Dai
        3. HIVE-20651.5.patch
          34 kB
          Daniel Dai
        4. HIVE-20651.4.patch
          21 kB
          Daniel Dai
        5. HIVE-20651.3.patch
          34 kB
          Daniel Dai
        6. HIVE-20651.2.patch
          31 kB
          Daniel Dai
        7. HIVE-20651.1.patch
          30 kB
          Daniel Dai

        Issue Links

          Activity

            People

              daijy Daniel Dai
              daijy Daniel Dai
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: