<?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 Rejecting access to web api: Untrusted proxy in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Rejecting-access-to-web-api-Untrusted-proxy/m-p/321900#M228597</link>
    <description>&lt;P&gt;Hello Community,&lt;/P&gt;&lt;P&gt;I'm trying to set-up a secured 3 node NiFi cluster with self-signed certs, generated via Cert-Manager. Nifi is deployed via a Helm chart into AKS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue is, as soon as I set the number of nodes to 3 I get this error. With 1 node, I did not have this issue.&lt;/P&gt;&lt;P&gt;So, all 3 nodes has their own Keystore and a shared Truststore. All&amp;nbsp; 3 nodes' TLS cert is stored in the shared truststore.&lt;/P&gt;&lt;P&gt;I have my authorizers.xml set up:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class="line"&gt;    &lt;SPAN class="nt"&gt;&amp;lt;userGroupProvider&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN class="line"&gt;        &lt;SPAN class="nt"&gt;&amp;lt;identifier&amp;gt;&lt;/SPAN&gt;file-user-group-provider&lt;SPAN class="nt"&gt;&amp;lt;/identifier&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN class="line"&gt;        &lt;SPAN class="nt"&gt;&amp;lt;class&amp;gt;&lt;/SPAN&gt;org.apache.nifi.authorization.FileUserGroupProvider&lt;SPAN class="nt"&gt;&amp;lt;/class&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN class="line"&gt;        &lt;SPAN class="nt"&gt;&amp;lt;property&lt;/SPAN&gt; &lt;SPAN class="na"&gt;name=&lt;/SPAN&gt;&lt;SPAN class="s"&gt;"Users File"&lt;/SPAN&gt;&lt;SPAN class="nt"&gt;&amp;gt;&lt;/SPAN&gt;./auth-conf/users.xml&lt;SPAN class="nt"&gt;&amp;lt;/property&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN class="line"&gt;        &lt;SPAN class="nt"&gt;&amp;lt;property&lt;/SPAN&gt; &lt;SPAN class="na"&gt;name=&lt;/SPAN&gt;&lt;SPAN class="s"&gt;"Legacy Authorized Users File"&lt;/SPAN&gt;&lt;SPAN class="nt"&gt;&amp;gt;&amp;lt;/property&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN class="line"&gt;        &lt;SPAN class="nt"&gt;&amp;lt;property&lt;/SPAN&gt; &lt;SPAN class="na"&gt;name=&lt;/SPAN&gt;&lt;SPAN class="s"&gt;"Initial User Identity 1"&lt;/SPAN&gt;&lt;SPAN class="nt"&gt;&amp;gt;&lt;/SPAN&gt;initial.admin@mail.com&lt;SPAN class="nt"&gt;&amp;lt;/property&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN class="line"&gt;        &lt;SPAN class="nt"&gt;&amp;lt;property&lt;/SPAN&gt; &lt;SPAN class="na"&gt;name=&lt;/SPAN&gt;&lt;SPAN class="s"&gt;"Initial User Identity 3"&lt;/SPAN&gt;&lt;SPAN class="nt"&gt;&amp;gt;&lt;/SPAN&gt;CN=nifi-0&lt;SPAN class="nt"&gt;&amp;lt;/property&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN class="line"&gt;        &lt;SPAN class="nt"&gt;&amp;lt;property&lt;/SPAN&gt; &lt;SPAN class="na"&gt;name=&lt;/SPAN&gt;&lt;SPAN class="s"&gt;"Initial User Identity 4"&lt;/SPAN&gt;&lt;SPAN class="nt"&gt;&amp;gt;&lt;/SPAN&gt;CN=nifi-1&lt;SPAN class="nt"&gt;&amp;lt;/property&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN class="line"&gt;        &lt;SPAN class="nt"&gt;&amp;lt;property&lt;/SPAN&gt; &lt;SPAN class="na"&gt;name=&lt;/SPAN&gt;&lt;SPAN class="s"&gt;"Initial User Identity 5"&lt;/SPAN&gt;&lt;SPAN class="nt"&gt;&amp;gt;&lt;/SPAN&gt;CN=nifi-2&lt;SPAN class="nt"&gt;&amp;lt;/property&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN class="line"&gt;    &lt;SPAN class="nt"&gt;&amp;lt;/userGroupProvider&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN class="line"&gt;    &lt;SPAN class="nt"&gt;&amp;lt;accessPolicyProvider&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN class="line"&gt;        &lt;SPAN class="nt"&gt;&amp;lt;identifier&amp;gt;&lt;/SPAN&gt;file-access-policy-provider&lt;SPAN class="nt"&gt;&amp;lt;/identifier&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN class="line"&gt;        &lt;SPAN class="nt"&gt;&amp;lt;class&amp;gt;&lt;/SPAN&gt;org.apache.nifi.authorization.FileAccessPolicyProvider&lt;SPAN class="nt"&gt;&amp;lt;/class&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN class="line"&gt;        &lt;SPAN class="nt"&gt;&amp;lt;property&lt;/SPAN&gt; &lt;SPAN class="na"&gt;name=&lt;/SPAN&gt;&lt;SPAN class="s"&gt;"User Group Provider"&lt;/SPAN&gt;&lt;SPAN class="nt"&gt;&amp;gt;&lt;/SPAN&gt;file-user-group-provider&lt;SPAN class="nt"&gt;&amp;lt;/property&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN class="line"&gt;        &lt;SPAN class="nt"&gt;&amp;lt;property&lt;/SPAN&gt; &lt;SPAN class="na"&gt;name=&lt;/SPAN&gt;&lt;SPAN class="s"&gt;"Authorizations File"&lt;/SPAN&gt;&lt;SPAN class="nt"&gt;&amp;gt;&lt;/SPAN&gt;./auth-conf/authorizations.xml&lt;SPAN class="nt"&gt;&amp;lt;/property&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN class="line"&gt;        &lt;SPAN class="nt"&gt;&amp;lt;property&lt;/SPAN&gt; &lt;SPAN class="na"&gt;name=&lt;/SPAN&gt;&lt;SPAN class="s"&gt;"Initial Admin Identity"&lt;/SPAN&gt;&lt;SPAN class="nt"&gt;&amp;gt;&lt;/SPAN&gt;initial.admin@mail.com&lt;SPAN class="nt"&gt;&amp;lt;/property&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN class="line"&gt;        &lt;SPAN class="nt"&gt;&amp;lt;property&lt;/SPAN&gt; &lt;SPAN class="na"&gt;name=&lt;/SPAN&gt;&lt;SPAN class="s"&gt;"Node Identity 1"&lt;/SPAN&gt;&lt;SPAN class="nt"&gt;&amp;gt;&lt;/SPAN&gt;CN=nifi-0&lt;SPAN class="nt"&gt;&amp;lt;/property&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN class="line"&gt;        &lt;SPAN class="nt"&gt;&amp;lt;property&lt;/SPAN&gt; &lt;SPAN class="na"&gt;name=&lt;/SPAN&gt;&lt;SPAN class="s"&gt;"Node Identity 2"&lt;/SPAN&gt;&lt;SPAN class="nt"&gt;&amp;gt;&lt;/SPAN&gt;CN=nifi-1&lt;SPAN class="nt"&gt;&amp;lt;/property&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN class="line"&gt;        &lt;SPAN class="nt"&gt;&amp;lt;property&lt;/SPAN&gt; &lt;SPAN class="na"&gt;name=&lt;/SPAN&gt;&lt;SPAN class="s"&gt;"Node Identity 3"&lt;/SPAN&gt;&lt;SPAN class="nt"&gt;&amp;gt;&lt;/SPAN&gt;CN=nifi-2&lt;SPAN class="nt"&gt;&amp;lt;/property&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN class="line"&gt;    &lt;SPAN class="nt"&gt;&amp;lt;/accessPolicyProvider&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;The TLS certs for each node contains the same names: CN=nifi-0, etc.&lt;/P&gt;&lt;P&gt;I've made sure that I have deleted the authorizations.xml and users.xml on my nodes so it will be generated again up to date.&lt;/P&gt;&lt;P&gt;All my nodes has the /proxy policy on all my nodes:&lt;/P&gt;&lt;PRE&gt;&amp;lt;authorizations&amp;gt;&lt;BR /&gt;&amp;lt;policies&amp;gt;&lt;BR /&gt;&amp;lt;policy identifier="f99bccd1-a30e-3e4a-98a2-dbc708edc67f" resource="/flow" action="R"&amp;gt;&lt;BR /&gt;&amp;lt;user identifier="08106046-f063-3605-9480-9afc3f4726d4"/&amp;gt;&lt;BR /&gt;&amp;lt;/policy&amp;gt;&lt;BR /&gt;&amp;lt;policy identifier="17b6f3de-feaf-3539-b938-ee287e625cf3" resource="/data/process-groups/9701352c-a1c0-4cfc-a6bb-92f76382e007" action="R"&amp;gt;&lt;BR /&gt;&amp;lt;user identifier="08106046-f063-3605-9480-9afc3f4726d4"/&amp;gt;&lt;BR /&gt;&amp;lt;user identifier="5d994b80-c1b1-3c50-aa9f-488c1e549c53"/&amp;gt;&lt;BR /&gt;&amp;lt;user identifier="8fa66807-0e9c-3972-b28e-ed8542fec384"/&amp;gt;&lt;BR /&gt;&amp;lt;user identifier="a3a07ec3-6507-3e19-bc6a-c47e0deca8c6"/&amp;gt;&lt;BR /&gt;&amp;lt;/policy&amp;gt;&lt;BR /&gt;&amp;lt;policy identifier="6bf50b6c-d24b-38a4-9c6e-1b9bd888b6ee" resource="/data/process-groups/9701352c-a1c0-4cfc-a6bb-92f76382e007" action="W"&amp;gt;&lt;BR /&gt;&amp;lt;user identifier="08106046-f063-3605-9480-9afc3f4726d4"/&amp;gt;&lt;BR /&gt;&amp;lt;user identifier="5d994b80-c1b1-3c50-aa9f-488c1e549c53"/&amp;gt;&lt;BR /&gt;&amp;lt;user identifier="8fa66807-0e9c-3972-b28e-ed8542fec384"/&amp;gt;&lt;BR /&gt;&amp;lt;user identifier="a3a07ec3-6507-3e19-bc6a-c47e0deca8c6"/&amp;gt;&lt;BR /&gt;&amp;lt;/policy&amp;gt;&lt;BR /&gt;&amp;lt;policy identifier="23d164f5-1bef-3c18-86ee-e1b88fd2845f" resource="/process-groups/9701352c-a1c0-4cfc-a6bb-92f76382e007" action="R"&amp;gt;&lt;BR /&gt;&amp;lt;user identifier="08106046-f063-3605-9480-9afc3f4726d4"/&amp;gt;&lt;BR /&gt;&amp;lt;/policy&amp;gt;&lt;BR /&gt;&amp;lt;policy identifier="d4fd2dc1-5c49-370d-bb81-107b6de0bdcc" resource="/process-groups/9701352c-a1c0-4cfc-a6bb-92f76382e007" action="W"&amp;gt;&lt;BR /&gt;&amp;lt;user identifier="08106046-f063-3605-9480-9afc3f4726d4"/&amp;gt;&lt;BR /&gt;&amp;lt;/policy&amp;gt;&lt;BR /&gt;&amp;lt;policy identifier="b8775bd4-704a-34c6-987b-84f2daf7a515" resource="/restricted-components" action="W"&amp;gt;&lt;BR /&gt;&amp;lt;user identifier="08106046-f063-3605-9480-9afc3f4726d4"/&amp;gt;&lt;BR /&gt;&amp;lt;/policy&amp;gt;&lt;BR /&gt;&amp;lt;policy identifier="627410be-1717-35b4-a06f-e9362b89e0b7" resource="/tenants" action="R"&amp;gt;&lt;BR /&gt;&amp;lt;user identifier="08106046-f063-3605-9480-9afc3f4726d4"/&amp;gt;&lt;BR /&gt;&amp;lt;/policy&amp;gt;&lt;BR /&gt;&amp;lt;policy identifier="15e4e0bd-cb28-34fd-8587-f8d15162cba5" resource="/tenants" action="W"&amp;gt;&lt;BR /&gt;&amp;lt;user identifier="08106046-f063-3605-9480-9afc3f4726d4"/&amp;gt;&lt;BR /&gt;&amp;lt;/policy&amp;gt;&lt;BR /&gt;&amp;lt;policy identifier="ff96062a-fa99-36dc-9942-0f6442ae7212" resource="/policies" action="R"&amp;gt;&lt;BR /&gt;&amp;lt;user identifier="08106046-f063-3605-9480-9afc3f4726d4"/&amp;gt;&lt;BR /&gt;&amp;lt;/policy&amp;gt;&lt;BR /&gt;&amp;lt;policy identifier="ad99ea98-3af6-3561-ae27-5bf09e1d969d" resource="/policies" action="W"&amp;gt;&lt;BR /&gt;&amp;lt;user identifier="08106046-f063-3605-9480-9afc3f4726d4"/&amp;gt;&lt;BR /&gt;&amp;lt;/policy&amp;gt;&lt;BR /&gt;&amp;lt;policy identifier="2e1015cb-0fed-3005-8e0d-722311f21a03" resource="/controller" action="R"&amp;gt;&lt;BR /&gt;&amp;lt;user identifier="08106046-f063-3605-9480-9afc3f4726d4"/&amp;gt;&lt;BR /&gt;&amp;lt;/policy&amp;gt;&lt;BR /&gt;&amp;lt;policy identifier="c6322e6c-4cc1-3bcc-91b3-2ed2111674cf" resource="/controller" action="W"&amp;gt;&lt;BR /&gt;&amp;lt;user identifier="08106046-f063-3605-9480-9afc3f4726d4"/&amp;gt;&lt;BR /&gt;&amp;lt;/policy&amp;gt;&lt;BR /&gt;&amp;lt;policy identifier="287edf48-da72-359b-8f61-da5d4c45a270" resource="/proxy" action="W"&amp;gt;&lt;BR /&gt;&amp;lt;user identifier="5d994b80-c1b1-3c50-aa9f-488c1e549c53"/&amp;gt;&lt;BR /&gt;&amp;lt;user identifier="8fa66807-0e9c-3972-b28e-ed8542fec384"/&amp;gt;&lt;BR /&gt;&amp;lt;user identifier="a3a07ec3-6507-3e19-bc6a-c47e0deca8c6"/&amp;gt;&lt;BR /&gt;&amp;lt;/policy&amp;gt;&lt;BR /&gt;&amp;lt;/policies&amp;gt;&lt;BR /&gt;&amp;lt;/authorizations&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And my users.xml:&lt;/P&gt;&lt;PRE&gt;&amp;lt;tenants&amp;gt;&lt;BR /&gt;&amp;lt;groups/&amp;gt;&lt;BR /&gt;&amp;lt;users&amp;gt;&lt;BR /&gt;&amp;lt;user identifier="08106046-f063-3605-9480-9afc3f4726d4" identity="&lt;SPAN class="line"&gt;initial.admin@mail.com&lt;/SPAN&gt;"/&amp;gt;&lt;BR /&gt;&amp;lt;user identifier="5d994b80-c1b1-3c50-aa9f-488c1e549c53" identity="CN=nifi-0"/&amp;gt;&lt;BR /&gt;&amp;lt;user identifier="8fa66807-0e9c-3972-b28e-ed8542fec384" identity="CN=nifi-1"/&amp;gt;&lt;BR /&gt;&amp;lt;user identifier="a3a07ec3-6507-3e19-bc6a-c47e0deca8c6" identity="CN=nifi-2"/&amp;gt;&lt;BR /&gt;&amp;lt;/users&amp;gt;&lt;BR /&gt;&amp;lt;/tenants&amp;gt;&lt;/PRE&gt;&lt;P&gt;User-log error:&lt;/P&gt;&lt;PRE&gt;2021-08-01 18:35:27,868 INFO [NiFi Web Server-19] o.a.n.w.s.NiFiAuthenticationFilter Attempting request for (&amp;lt;&lt;SPAN class="line"&gt;initial.admin@mail.com&lt;/SPAN&gt;&amp;gt;&amp;lt;CN=nifi-1&amp;gt;) GET https://nifi-2.nifi-headless.test-nifi.svc.cluster.local:9443/nifi-api/flow/current-user (source ip: x.x.x.x)&lt;BR /&gt;2021-08-01 18:35:27,869 WARN [NiFi Web Server-19] o.a.n.w.s.NiFiAuthenticationFilter Rejecting access to web api: Untrusted proxy CN=nifi-1&lt;/PRE&gt;&lt;P&gt;When I try to log-in on the UI:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Insufficient permissions: Untrusted proxy CN=nifi-1 or nifi-2 or nifi-0&lt;/STRONG&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Only other issue which I couldnt figure out yet: &lt;STRONG&gt;Failed to send message to Cluster Coordinator due to: java.net.UnknownHostException: nifi-1.nifi-headless.test-nifi.svc.cluster.local&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;My pods can resolve each-other and the zookeeper pods aswell.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What can be the issue here?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 01 Aug 2021 18:54:57 GMT</pubDate>
    <dc:creator>Noctix</dc:creator>
    <dc:date>2021-08-01T18:54:57Z</dc:date>
  </channel>
</rss>

