<?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: Nifi Security harden:  Missing access policies features to achieve Multi-Tenant Authorization. in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Security-harden-Missing-access-policies-features-to/m-p/376938#M243071</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/85077"&gt;@techNerd&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I don't see a question in your post.&amp;nbsp; I can only assume you are talking about missing "key" policy icon on your NiFi Flow root process group?&amp;nbsp; This indicates your authenticated user is not authorized to view or modify all policies.&amp;nbsp; What is also&amp;nbsp; interesting from your&amp;nbsp; screenshot is that the user identity displayed in upper right corner is a UUID and not "&lt;SPAN&gt;CN=sys_admin, OU=NIFI" from your user certificate.&amp;nbsp; So I think you have multiple issues here with your configuration.&amp;nbsp; Inspect your nifi.properties, login-identity-providers.xml, and authorizations.xml files for configuration issues.&amp;nbsp; Also take note that the file-user-group-provider ONLY creates the users.xml file if it does not already exist during startup. It does not modify an already existing file.&amp;nbsp; &amp;nbsp;The file-access-policy-provider generates the authorizations.xml (different file from authorizers.xml) ONLY if it does not already exist at startup.&amp;nbsp; It will not modify an already existing file.&lt;BR /&gt;&lt;BR /&gt;What version of Apache NiFi is being used?&lt;BR /&gt;Did you maybe leave remnants of the single-user-provider or single-user-authorizer configured?&amp;nbsp; If so remove these two providers from your configuration.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;EM&gt;Below is more info about the "initial admin":&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;The intent of the "Initial Admin" is to give that user just enough authority to function as a NiFi Admin (access the UI, access to view and modify tenants/user, create new users and groups identities (assumes file based authorization configured), access to assign or remove access policies to users/groups, access the NiFi controller settings and give view modify to root process group (if first start up with no pre-existing flow.xml.gz/flow.json.gz in place.).&amp;nbsp; It is not meant to grant the admin to all policies, but admin has ability to add themselves to all policies.&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;There are often clear devisions of responsibility between admins and dataflow designers/engineers.&amp;nbsp; An admin not involved with creating flows would have no need to be able to build flow, access component configurations, view content, view data provenance, etc.&amp;nbsp; So policies of this nature are not assigned as part of initial admin setup.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;If you found any of the suggestions/solutions provided helped you with your issue, please take a moment to login and click "&lt;SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Accept as Solution&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;" on one or more of them that helped.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;BR /&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 27 Sep 2023 13:24:34 GMT</pubDate>
    <dc:creator>MattWho</dc:creator>
    <dc:date>2023-09-27T13:24:34Z</dc:date>
    <item>
      <title>Nifi Security harden:  Missing access policies features to achieve Multi-Tenant Authorization.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Security-harden-Missing-access-policies-features-to/m-p/376917#M243059</link>
      <description>&lt;P&gt;Hi, I would like to enquire about the missing access policies features as I run my nifi instance.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Step that I did:&lt;/P&gt;&lt;P&gt;1) Generate the certificate and key (keystore.jks, truststore.jks, nifi.properties)&amp;nbsp;&lt;/P&gt;&lt;P&gt;Command: .\bin\tls-toolkit.sh standalone -n "localhost"&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) Copy the above 3 cert to ".\nifi-1.23.2\conf"&lt;/P&gt;&lt;P&gt;3) Generate the user's client certificate to authenticate to NiFi&lt;/P&gt;&lt;P&gt;Command:&amp;nbsp;.\bin\tls-toolkit.sh standalone -C "CN=sys_admin, OU=NIFI"&lt;/P&gt;&lt;P&gt;4) Load the client certificate into web browser (EDGE)&lt;/P&gt;&lt;P&gt;5) Populate the Initial Admin Identity&amp;nbsp;&lt;/P&gt;&lt;P&gt;Open authorizers.xml in ".\nifi-1.23.2\conf"&lt;/P&gt;&lt;P&gt;In UserGroupProvider section, replace &amp;lt;property name = "Initial User Identity 1"&amp;gt;&amp;lt;property&amp;gt; to&amp;nbsp;&amp;lt;property name = "Initial User Identity 1"&amp;gt;CN=sys_admin, OU=NIFI&amp;lt;property&amp;gt;&lt;/P&gt;&lt;P&gt;In accessPolicyProvider section, replace &amp;lt;property name = "Initial Admin Identity"&amp;gt;&amp;lt;property&amp;gt; to&amp;nbsp;&amp;lt;property name = "Initial Admin Identity"&amp;gt;CN=sys_admin, OU=NIFI&amp;lt;property&amp;gt;&lt;/P&gt;&lt;P&gt;6) Start NiFi&amp;nbsp;&lt;/P&gt;&lt;P&gt;Command: ,\bin\run-nifi.bat&lt;/P&gt;&lt;P&gt;7) Open Web browser to &lt;A href="https://localhost:9443/nifi" target="_blank"&gt;https://localhost:9443/nifi&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-09-27 140942.png" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/38520i4F6E9E8DF3A0EB40/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2023-09-27 140942.png" alt="Screenshot 2023-09-27 140942.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-09-27 140927.png" style="width: 453px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/38521i045A04F52A177B0C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2023-09-27 140927.png" alt="Screenshot 2023-09-27 140927.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-09-27 141050.png" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/38522i94DDA722DB2F8064/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2023-09-27 141050.png" alt="Screenshot 2023-09-27 141050.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2023 06:37:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-Security-harden-Missing-access-policies-features-to/m-p/376917#M243059</guid>
      <dc:creator>techNerd</dc:creator>
      <dc:date>2023-09-27T06:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi Security harden:  Missing access policies features to achieve Multi-Tenant Authorization.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-Security-harden-Missing-access-policies-features-to/m-p/376938#M243071</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/85077"&gt;@techNerd&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I don't see a question in your post.&amp;nbsp; I can only assume you are talking about missing "key" policy icon on your NiFi Flow root process group?&amp;nbsp; This indicates your authenticated user is not authorized to view or modify all policies.&amp;nbsp; What is also&amp;nbsp; interesting from your&amp;nbsp; screenshot is that the user identity displayed in upper right corner is a UUID and not "&lt;SPAN&gt;CN=sys_admin, OU=NIFI" from your user certificate.&amp;nbsp; So I think you have multiple issues here with your configuration.&amp;nbsp; Inspect your nifi.properties, login-identity-providers.xml, and authorizations.xml files for configuration issues.&amp;nbsp; Also take note that the file-user-group-provider ONLY creates the users.xml file if it does not already exist during startup. It does not modify an already existing file.&amp;nbsp; &amp;nbsp;The file-access-policy-provider generates the authorizations.xml (different file from authorizers.xml) ONLY if it does not already exist at startup.&amp;nbsp; It will not modify an already existing file.&lt;BR /&gt;&lt;BR /&gt;What version of Apache NiFi is being used?&lt;BR /&gt;Did you maybe leave remnants of the single-user-provider or single-user-authorizer configured?&amp;nbsp; If so remove these two providers from your configuration.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;EM&gt;Below is more info about the "initial admin":&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;The intent of the "Initial Admin" is to give that user just enough authority to function as a NiFi Admin (access the UI, access to view and modify tenants/user, create new users and groups identities (assumes file based authorization configured), access to assign or remove access policies to users/groups, access the NiFi controller settings and give view modify to root process group (if first start up with no pre-existing flow.xml.gz/flow.json.gz in place.).&amp;nbsp; It is not meant to grant the admin to all policies, but admin has ability to add themselves to all policies.&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;There are often clear devisions of responsibility between admins and dataflow designers/engineers.&amp;nbsp; An admin not involved with creating flows would have no need to be able to build flow, access component configurations, view content, view data provenance, etc.&amp;nbsp; So policies of this nature are not assigned as part of initial admin setup.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;If you found any of the suggestions/solutions provided helped you with your issue, please take a moment to login and click "&lt;SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Accept as Solution&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;" on one or more of them that helped.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;BR /&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2023 13:24:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-Security-harden-Missing-access-policies-features-to/m-p/376938#M243071</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2023-09-27T13:24:34Z</dc:date>
    </item>
  </channel>
</rss>

