Created on 10-05-2021 07:25 AM - edited 10-05-2021 07:29 AM
We have a development cluster consists of CDP 7.1.6 with Nifi 1.13.2. The enviromment is Kerberised and use Ranger for the security, and connected to the AD server through sssd service.
We already setup the Flows policies on the ranger, by defining user and group that exisiting in the ranger.
When we try to access the Nifi UI, for user which define on Users of Flows policies, it works properly. But when login using user that define on the Groups of Flows policies, it gives error message: “INFO [NiFi Web Server-225822] o.a.n.w.a.c.AccessDeniedExceptionMapper identity[18330301], groups[] does not have permission to access the requested resource. Unable to view the user interface. Returning Forbidden response.” Nifi could not identified this user group.
Could you please give advice how to resolve this issues, so Nifi could give access to this user, which define in the Groups of Flow policies. Thank you in advance for you help.
Created 10-05-2021 01:07 PM
Hello @edoS
Welcome to the community!
NiFi's provides so many option for user authentication and authorization, setting up exactly what you need can be overwhelming at times.
This is certainly something the Cloudera support could walk you through if you have a support contract with us that covers the NiFi service.
At a high level, here is what you need to understand about the authentication and authorization process in NiFi.
[1] https://nifi.apache.org/docs/nifi-docs/html/administration-guide.html#identity-mapping-properties
[2] https://nifi.apache.org/docs/nifi-docs/html/administration-guide.html#authorizers-setup
[3] https://nifi.apache.org/docs/nifi-docs/html/administration-guide.html#composite-implementations
[4] https://nifi.apache.org/docs/nifi-docs/html/administration-guide.html#fileusergroupprovider
[5] https://nifi.apache.org/docs/nifi-docs/html/administration-guide.html#ldapusergroupprovider
If you found this response assisted with your query, please take a moment to login and click on "Accept as Solution" below this post.
Thank you,
Matt