nifi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Milan Das <>
Subject Re: HiveConnectionPool URL with trustStorePasswrd
Date Wed, 14 Mar 2018 19:11:27 GMT
We are going to use a Custom controller and mark the URL as sensitive property. Client don’t
want to make any password visible.





From: Andy LoPresto <>
Reply-To: <>
Date: Monday, March 12, 2018 at 4:00 PM
To: <>
Subject: Re: HiveConnectionPool URL with trustStorePasswrd




I am also not aware of any way to use an encrypted value in the JDBC connection string. In
my understanding, the truststore password is only used to verify the integrity of the truststore
which is used locally (i.e. not transmitted) to accept the remote endpoint’s TLS certificate.


You could probably write a custom controller service replacing HiveConnectionPool [1] which
implemented HiveDBCPService and marked the connection string as a sensitive property, so it
would be encrypted on disk by NiFi and not revealed over the API, but it might be difficult
to use in this way because the entire connection string would be hidden in the UI. You could
also theoretically have separate property descriptors for the connection string and truststore
password and construct the connection string yourself internally, but this is probably overkill.





Andy LoPresto

PGP Fingerprint: 70EC B3E5 98A6 5A3F D3C4  BACE 3C6E F65B 2F7D EF69


On Mar 12, 2018, at 12:27 PM, Pierre Villard <> wrote:


Hi Milan,

As far as I know, there is not. It's the same when you connect with the
beeline client from a node.
Note that you can set the chmod/chown of the truststore file to be only
readable by the user running nifi. It should help preventing unauthorized


2018-03-12 14:49 GMT+01:00 Milan Das <>:

Hello folks,

I am connecting to Hive environment with TLS security on. In order to do
that need to send trustStorePasswrd  in Hive2 URL . As the configuration is
in controller services, not able to find a way to set the
trustStorePassword in encrypted format.

Wondering if there is a way to set trustStorePassword in encrypted format ?

Database ConnectionUrl: jdbc:hive2://ip-xxx-xx-x-xxx.


[image: graph]

*Milan Das*
Sr. System Architect

mobile: +1 678 216 5660 <(678)%20216-5660>

[image: dIn icon] <>


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message