<?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 Re: Configuration of HashiCorp Vault Paremeter Context : Error &amp;quot;Cannot login using Kubernetes: permission denied&amp;quot; in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Configuration-of-HashiCorp-Vault-Paremeter-Context-Error/m-p/413539#M254121</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/102022"&gt;@Alf015&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found two thing that may be causing this issue.&amp;nbsp;&lt;BR /&gt;First, the "vault.namespace" should not have the "/" at the end:&amp;nbsp;&lt;BR /&gt;&lt;A href="https://docs.spring.io/spring-vault/docs/2.3.x/reference/html/#vault.core.environment-vault-configuration" target="_blank"&gt;https://docs.spring.io/spring-vault/docs/2.3.x/reference/html/#vault.core.environment-vault-configuration&lt;/A&gt;&lt;/P&gt;&lt;P&gt;On the Paramenter Provider, "key value path" should be only "secret", all the rest is taken from the header.&amp;nbsp;&lt;BR /&gt;&lt;A href="https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-hashicorp-vault-nar/1.28.0/org.apache.nifi.vault.hashicorp.HashiCorpVaultParameterProvider/" target="_blank"&gt;https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-hashicorp-vault-nar/1.28.0/org.apache.nifi.vault.hashicorp.HashiCorpVaultParameterProvider/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try those changes and let us know if this fails.&amp;nbsp;&lt;BR /&gt;If it does, maybe the Debug level for those modules can provide more information:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;logger name="org.apache.nifi.vault" level="DEBUG"/&amp;gt;
&amp;lt;logger name="org.apache.nifi.parameter" level="DEBUG"/&amp;gt;
&amp;lt;logger name="org.springframework.vault" level="DEBUG"/&amp;gt;&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 12 Feb 2026 16:41:27 GMT</pubDate>
    <dc:creator>vafs</dc:creator>
    <dc:date>2026-02-12T16:41:27Z</dc:date>
    <item>
      <title>Configuration of HashiCorp Vault Paremeter Context : Error "Cannot login using Kubernetes: permission denied"</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Configuration-of-HashiCorp-Vault-Paremeter-Context-Error/m-p/412701#M253634</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to use Nifi Hashi Corp Vault Parameter Provider with Kubernetes authentication.&lt;BR /&gt;&amp;nbsp;- Nifi versions is 2.4.0&lt;BR /&gt;&amp;nbsp;- Hashi Corp version is 1.19.5&lt;/P&gt;&lt;P&gt;From my Nifi pod I get to authenticate successfully using the following curl&amp;nbsp;&lt;/P&gt;&lt;P&gt;curl -s -k -X POST -H 'X-Vault-Namespace: DATA/DATAOPE/EC002I002621/' -H 'X-Vault-Request: true' -d '{"jwt": "&amp;lt;content of file /var/run/secrets/kubernetes.io/serviceaccount/token&amp;gt;", "role": "role_k8s_auth_demo_re_ns002i007839"}' &lt;A href="https://hvault.staging.my_company/v1/auth/kubernetes_demo_re_ns002i007839/login" target="_blank" rel="noopener"&gt;https://hvault.staging.my_company/v1/auth/kubernetes_demo_re_ns002i007839/login&lt;/A&gt;&lt;/P&gt;&lt;P&gt;From the pod I then get to make a successful secret retrieval with the follwing curl&lt;/P&gt;&lt;P&gt;curl -H "X-Vault-Request: true" -H "X-Vault-Namespace: DATA/DATAOPE/EC002I002621/" -H "X-Vault-Token: &amp;lt;token retrieved by previous command&amp;gt;" &lt;A href="https://hvault.staging.my_company/v1/secret/data/test" target="_blank" rel="noopener"&gt;https://hvault.staging.my_company/v1/secret/data/test&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I try to make sense of the doc and cannot get to a working configuration&lt;/P&gt;&lt;P&gt;I setup my HashiCorp Vault Client with the following properties direct properties&lt;/P&gt;&lt;P&gt;vault.kubernetes.kubernetes-path&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;kubernetes_demo_re_ns002i007839&lt;BR /&gt;vault.kubernetes.role&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; role_k8s_auth_demo_re_ns002i007839&lt;BR /&gt;vault.namespace&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DATA/DATAOPE/EC002I002621/&lt;BR /&gt;and set up the SSL context service appropriately.&lt;/P&gt;&lt;P&gt;I set up my Parameter Provider with the following direct properties&lt;BR /&gt;key value path :&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;DATA/DATAOPE/EC002I002621/secret/&lt;BR /&gt;version :&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; kv 2&lt;BR /&gt;secret name pattern :&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;.*&lt;/P&gt;&lt;P&gt;I get the following error message :&amp;nbsp;&lt;BR /&gt;Error fetching parameters for ParameterProvider[id=xxxx]:&lt;BR /&gt;Cannot login using Kubernetes: permission denied&lt;/P&gt;&lt;P&gt;Can someone help me sort out what I'm doing wrong ?&lt;BR /&gt;Is there a way to dump the API calls made by the Parameter Provider ?&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;Regards&lt;/P&gt;</description>
      <pubDate>Mon, 20 Oct 2025 13:28:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Configuration-of-HashiCorp-Vault-Paremeter-Context-Error/m-p/412701#M253634</guid>
      <dc:creator>Alf015</dc:creator>
      <dc:date>2025-10-20T13:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: Configuration of HashiCorp Vault Paremeter Context : Error "Cannot login using Kubernetes: permission denied"</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Configuration-of-HashiCorp-Vault-Paremeter-Context-Error/m-p/413539#M254121</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/102022"&gt;@Alf015&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found two thing that may be causing this issue.&amp;nbsp;&lt;BR /&gt;First, the "vault.namespace" should not have the "/" at the end:&amp;nbsp;&lt;BR /&gt;&lt;A href="https://docs.spring.io/spring-vault/docs/2.3.x/reference/html/#vault.core.environment-vault-configuration" target="_blank"&gt;https://docs.spring.io/spring-vault/docs/2.3.x/reference/html/#vault.core.environment-vault-configuration&lt;/A&gt;&lt;/P&gt;&lt;P&gt;On the Paramenter Provider, "key value path" should be only "secret", all the rest is taken from the header.&amp;nbsp;&lt;BR /&gt;&lt;A href="https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-hashicorp-vault-nar/1.28.0/org.apache.nifi.vault.hashicorp.HashiCorpVaultParameterProvider/" target="_blank"&gt;https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-hashicorp-vault-nar/1.28.0/org.apache.nifi.vault.hashicorp.HashiCorpVaultParameterProvider/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try those changes and let us know if this fails.&amp;nbsp;&lt;BR /&gt;If it does, maybe the Debug level for those modules can provide more information:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;logger name="org.apache.nifi.vault" level="DEBUG"/&amp;gt;
&amp;lt;logger name="org.apache.nifi.parameter" level="DEBUG"/&amp;gt;
&amp;lt;logger name="org.springframework.vault" level="DEBUG"/&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 12 Feb 2026 16:41:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Configuration-of-HashiCorp-Vault-Paremeter-Context-Error/m-p/413539#M254121</guid>
      <dc:creator>vafs</dc:creator>
      <dc:date>2026-02-12T16:41:27Z</dc:date>
    </item>
  </channel>
</rss>

