GitHub user pellmont opened a pull request:
https://github.com/apache/zeppelin/pull/2891
ZEPPELIN-1070: Inject Credentials in any Interpreter-Code
### What is this PR for?
This PR enables a generic syntax for inserting credentials. A username can
be inserted by $[user.entry] where "entry" is the name of the credential. A
password can be inserted by $[password.entry].
To avoid output of the password all occurences of the password-String in
the Interpreter-output will be replaced by "###". This should not be a really
secure feature (since the runner of the notebook knows the password anyway),
but it should avoid accidential exposure of the used passwords by any sort of
interpreter echo.
### What type of PR is it?
Feature
### Todos
* [ ] - Documentation
### What is the Jira issue?
ZEPPELIN-1070 Enable data source authentication in each community
interpreters
### How should this be tested?
* unit tests available
### Screenshots (if appropriate)
### Questions:
* Does the licenses files need update? No
* Is there breaking changes for older versions? The new syntax could break
notebooks which contain the patterns $[user.*] or $[password.*]. But I assume
this pattern is not very common...
* Does this needs documentation? yes, but I didn't find the proper place to
document it yet.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/pellmont/zeppelin ZEPPELIN-1070
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/zeppelin/pull/2891.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 #2891
----
commit 6770a7eebd376518eb3fa8a833add0bee4d9493c
Author: Pascal Pellmont <github@...>
Date: 2018-02-04T11:08:48Z
ZEPPELIN-1070: Inject Credentials in any Interpreter-Code
----
---