<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question NiFi 2.8.0 Support for Retrieving Passwords from HashiCorp Vault KV During Startup in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/NiFi-2-8-0-Support-for-Retrieving-Passwords-from-HashiCorp/m-p/414192#M255200</link>
    <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;I am exploring secret management options in Apache NiFi 2.8.0 and would like to understand whether NiFi supports retrieving passwords directly from HashiCorp Vault KV during startup.&lt;/P&gt;&lt;P&gt;My use case is to store the following properties in Vault KV rather than in nifi.properties:&lt;/P&gt;&lt;P&gt;- nifi.security.keystorePasswd&lt;BR /&gt;- nifi.security.keyPasswd&lt;BR /&gt;- nifi.security.truststorePasswd&lt;/P&gt;&lt;P&gt;The objective is to avoid storing these sensitive values in plain text on the NiFi host while still allowing NiFi to access them during the bootstrap/startup process.&lt;/P&gt;&lt;P&gt;I am specifically interested in startup configuration properties that are required before the application is fully initialized.&lt;/P&gt;&lt;P&gt;Has anyone successfully configured NiFi 2.8.0 to retrieve these passwords directly from HashiCorp Vault KV during startup? If so, are there any recommended approaches, examples, or best practices for this use case?&lt;/P&gt;&lt;P&gt;Any guidance would be appreciated.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Fri, 05 Jun 2026 05:37:38 GMT</pubDate>
    <dc:creator>TechStream</dc:creator>
    <dc:date>2026-06-05T05:37:38Z</dc:date>
    <item>
      <title>NiFi 2.8.0 Support for Retrieving Passwords from HashiCorp Vault KV During Startup</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-2-8-0-Support-for-Retrieving-Passwords-from-HashiCorp/m-p/414192#M255200</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;I am exploring secret management options in Apache NiFi 2.8.0 and would like to understand whether NiFi supports retrieving passwords directly from HashiCorp Vault KV during startup.&lt;/P&gt;&lt;P&gt;My use case is to store the following properties in Vault KV rather than in nifi.properties:&lt;/P&gt;&lt;P&gt;- nifi.security.keystorePasswd&lt;BR /&gt;- nifi.security.keyPasswd&lt;BR /&gt;- nifi.security.truststorePasswd&lt;/P&gt;&lt;P&gt;The objective is to avoid storing these sensitive values in plain text on the NiFi host while still allowing NiFi to access them during the bootstrap/startup process.&lt;/P&gt;&lt;P&gt;I am specifically interested in startup configuration properties that are required before the application is fully initialized.&lt;/P&gt;&lt;P&gt;Has anyone successfully configured NiFi 2.8.0 to retrieve these passwords directly from HashiCorp Vault KV during startup? If so, are there any recommended approaches, examples, or best practices for this use case?&lt;/P&gt;&lt;P&gt;Any guidance would be appreciated.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jun 2026 05:37:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-2-8-0-Support-for-Retrieving-Passwords-from-HashiCorp/m-p/414192#M255200</guid>
      <dc:creator>TechStream</dc:creator>
      <dc:date>2026-06-05T05:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi 2.8.0 Support for Retrieving Passwords from HashiCorp Vault KV During Startup</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-2-8-0-Support-for-Retrieving-Passwords-from-HashiCorp/m-p/414197#M255205</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Apache NiFi 2.8.0 fully supports retrieving sensitive startup properties such as:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;nifi.security.keystorePasswd&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;nifi.security.keyPasswd&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;nifi.security.truststorePasswd&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;directly from HashiCorp Vault KV during bootstrap/startup, so these values do not need to be stored in plain text in nifi.properties.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;HASHICORP_VAULT_KV Sensitive Property Provider&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;This uses the bootstrap-level Vault integration, which resolves secrets very early in the startup process&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;Configure conf/bootstrap-hashicorp-vault.conf (Vault URI, KV path, authentication method — e.g., Token, AppRole, or Certificate).&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Link it in bootstrap.conf&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;nifi.bootstrap.protection.hashicorp.vault.conf=./conf/bootstrap-hashicorp-vault.conf&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Store the passwords in Vault KV (v1) using paths like nifi-kv/default/nifi.security.keystorePasswd&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;Use the NiFi Toolkit encrypt-config tool with the HASHICORP_VAULT_KV protection scheme to replace plaintext values in nifi.properties with Vault references&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;Start NiFi — the bootstrap process will fetch the secrets from Vault&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;A href="https://docs.cloudera.com/cfm/4.11.0/nifi-components-cfm/nifi-docs/toolkit-guide.html" target="_blank"&gt;https://docs.cloudera.com/cfm/4.11.0/nifi-components-cfm/nifi-docs/toolkit-guide.html&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Search for HASHICORP_VAULT_KV — explicitly lists it as a supported scheme with bootstrap config details.&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/156392"&gt;@TechStream&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 05 Jun 2026 10:59:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-2-8-0-Support-for-Retrieving-Passwords-from-HashiCorp/m-p/414197#M255205</guid>
      <dc:creator>RAGHUY</dc:creator>
      <dc:date>2026-06-05T10:59:13Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi 2.8.0 Support for Retrieving Passwords from HashiCorp Vault KV During Startup</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-2-8-0-Support-for-Retrieving-Passwords-from-HashiCorp/m-p/414199#M255207</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/101097"&gt;@RAGHUY&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Thank you for the information.&lt;/P&gt;&lt;P&gt;I have already implemented the HASHICORP_VAULT_KV Sensitive Property Provider configuration as described:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Configured bootstrap-hashicorp-vault.conf&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Added nifi.bootstrap.protection.hashicorp.vault.conf in bootstrap.conf&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Stored the SSL passwords in Vault KV&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Used the encrypt-config toolkit (1.27) with the HASHICORP_VAULT_KV protection scheme to replace the plaintext values in nifi.properties&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;However, NiFi is still failing to start. The bootstrap process appears to resolve the secret reference, but when the server initializes, I get the following error:&lt;/P&gt;&lt;PRE&gt;ERROR [main] org.apache.nifi.web.server.JettyServer Failed to start Server
org.apache.nifi.security.ssl.BuilderConfigurationException: Key Store loading failed
Caused by: java.io.IOException: Keystore was tampered with, or password was incorrect
Caused by: java.security.UnrecoverableKeyException: Password verification failed&lt;/PRE&gt;&lt;P&gt;This suggests that the password being used to load the keystore is either not being resolved correctly from Vault or does not match the actual keystore password.&lt;/P&gt;&lt;P&gt;To verify the Vault secret itself, I manually retrieved the password from Vault and used it with the keystore, and it appears to be correct.&lt;/P&gt;&lt;P&gt;Have you encountered this issue before with the HASHICORP_VAULT_KV protection scheme? Is there a recommended way to verify what value NiFi is resolving from Vault during bootstrap, or any known issues related to keystore/truststore password resolution in NiFi 2.8.0?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jun 2026 11:17:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-2-8-0-Support-for-Retrieving-Passwords-from-HashiCorp/m-p/414199#M255207</guid>
      <dc:creator>TechStream</dc:creator>
      <dc:date>2026-06-05T11:17:55Z</dc:date>
    </item>
  </channel>
</rss>

