You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zeppelin.apache.org by r-kamath <gi...@git.apache.org> on 2017/01/10 13:38:47 UTC

[GitHub] zeppelin pull request #1881: ZEPPELIN-1935 Add jceks stored password support...

GitHub user r-kamath opened a pull request:

    https://github.com/apache/zeppelin/pull/1881

    ZEPPELIN-1935 Add jceks stored password support for jdbc interpreter

    ### What is this PR for?
    Add support for jceks stored password instead of using password in clear text. This security enhancement prevents any user from reading clear passwords from interpreter json using shell/py/spark etc. #1315 is the parent PR which fixed similar a issue in Active Directory (shiro.ini config).
    
    ### What type of PR is it?
    Improvement
    
    ### Todos
    
    ### What is the Jira issue?
    ZEPPELIN-1935
    
    ### How should this be tested?
    Create a keystore file using the hadoop credential commandline, for this the hadoop commons should be in the classpath.
    
    `hadoop credential create jdbc.password -provider jceks://file/user/zeppelin/conf/zeppelin.jceks`
    
    Use the jceks file and the key to configure jdbc interpreter. Example interpreter setting:
    
    ```
    default.driver	org.postgresql.Driver
    default.jceks.credentialKey	jdbc.password
    default.jceks.file	jceks://file/tmp/zeppelin.jceks
    default.url	jdbc:postgresql://rkamath-local-1:5432/
    default.user	rk-user
    ```
    
    ### Screenshots (if appropriate)
    <img width="1392" alt="screen shot 2017-01-10 at 7 02 12 pm" src="https://cloud.githubusercontent.com/assets/2031306/21808016/5e602982-d767-11e6-88f9-3d15b9a7f0b8.png">
    
    
    
    ### Questions:
    * Does the licenses files need update? no
    * Is there breaking changes for older versions? no
    * Does this needs documentation? yes


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/r-kamath/zeppelin ZEPPELIN-1935

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/zeppelin/pull/1881.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1881
    
----
commit d41d56c70d588cf8ecb3f3162d78e3fbe011ddad
Author: Renjith Kamath <re...@gmail.com>
Date:   2017-01-10T13:22:16Z

    ZEPPELIN-1935 Add jceks stored password support for jdbc interpreter

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] zeppelin issue #1881: ZEPPELIN-1935 Add jceks stored password support for jd...

Posted by felixcheung <gi...@git.apache.org>.
Github user felixcheung commented on the issue:

    https://github.com/apache/zeppelin/pull/1881
  
    this is important - is there any backward compatibility concerns with changing the password storage?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] zeppelin pull request #1881: ZEPPELIN-1935 Add jceks stored password support...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/zeppelin/pull/1881


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] zeppelin issue #1881: ZEPPELIN-1935 Add jceks stored password support for jd...

Posted by prabhjyotsingh <gi...@git.apache.org>.
Github user prabhjyotsingh commented on the issue:

    https://github.com/apache/zeppelin/pull/1881
  
    @r-kamath IMO this shouldn't be called "backward compatibility" as these are two ways in which password can provided to interpreter.
    
    Tested locally, works as expected, LGTM!


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] zeppelin issue #1881: ZEPPELIN-1935 Add jceks stored password support for jd...

Posted by r-kamath <gi...@git.apache.org>.
Github user r-kamath commented on the issue:

    https://github.com/apache/zeppelin/pull/1881
  
    @felixcheung JCEKS is used only when the password field is empty. When password and JCEKS properties are empty the connection attempt is made without password.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] zeppelin issue #1881: ZEPPELIN-1935 Add jceks stored password support for jd...

Posted by felixcheung <gi...@git.apache.org>.
Github user felixcheung commented on the issue:

    https://github.com/apache/zeppelin/pull/1881
  
    Got it.
    
    
    



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] zeppelin issue #1881: ZEPPELIN-1935 Add jceks stored password support for jd...

Posted by prabhjyotsingh <gi...@git.apache.org>.
Github user prabhjyotsingh commented on the issue:

    https://github.com/apache/zeppelin/pull/1881
  
    Merging this if no more discussion.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---