Created 07-05-2018 08:49 AM
I'm trying to configure Apache Nifi 1.6 with client site certificate to authenticate users. It works, a can log in but I don't have admin privileges.
How I generated cert:
docker run -v $PWD:/data apache/nifi-toolkit tls-toolkit standalone -o /data -n 'nifi.local' -C 'CN=admin, L=Bmore, ST=MD, O=Apache, OU=NiFi, C=US'
How I started Nifi instance:
docker run --name nifi \ -v /path/to/certs/:/opt/certs/ \ -p 443:8443 \ -e AUTH=tls \ -e KEYSTORE_PATH=/opt/certs/keystore.jks \ -e KEYSTORE_TYPE=JKS \ -e KEYSTORE_PASSWORD=tQAouUIDCe9k0+j4hBxTfJ4dHDgOw2LQbdfQpKmCKuQ \ -e TRUSTSTORE_PATH=/opt/certs/truststore.jks \ -e TRUSTSTORE_PASSWORD=L8rTW2VUEoXQvAWbhf1JEkCKZ/B80ac21sRF5tFqfOg \ -e TRUSTSTORE_TYPE=JKS \ -e INITIAL_ADMIN_IDENTITY='CN=admin, L=Bmore, ST=MD, O=Apache, OU=NiFi, C=US' \ -e NIFI_WEB_PROXY_HOST=nifi.local \ apache/nifi:latest
I can log in but I don't have admin privileges. Everything is inactive and I can't do anything as in the image below. What could be the reason?
Kindly have a look and advise.
Created 07-05-2018 02:56 PM
It looks like you need to give your admin user permissions to modify the root process group.
You can see how this is done in the "Setup NiFi Access Policies for Sys_Admin" section of this HCC article:
More documentation on setting access policies can be found in the NiFi Administration Guide, specifically the section on Multi-Tenant Authorization:
https://nifi.apache.org/docs/nifi-docs/html/administration-guide.html#multi-tenant-authorization
Created 07-05-2018 02:56 PM
It looks like you need to give your admin user permissions to modify the root process group.
You can see how this is done in the "Setup NiFi Access Policies for Sys_Admin" section of this HCC article:
More documentation on setting access policies can be found in the NiFi Administration Guide, specifically the section on Multi-Tenant Authorization:
https://nifi.apache.org/docs/nifi-docs/html/administration-guide.html#multi-tenant-authorization
Created 07-06-2018 08:14 AM
Thanks for your quick answer it resolved my problem 🙂
Created 07-06-2018 01:47 PM
Glad your issue was resolved. To help others who run into the same problem, could you please select the Accept link for the answer that I provided? Thanks!