mcgilman commented on issue #4099: NIFI-7170: Add option to disable anonymous 
authentication
URL: https://github.com/apache/nifi/pull/4099#issuecomment-594581175
 
 
   There is no code that prevents a user with the identity of `anonymous`. From 
an authorization perspective, the authorizer should be checking whether the 
user is anonymous [1] which is ultimately driven by [2]. The fact that a real 
user could have an identity of `anonymous` should still be ok. Let me know if 
I'm missing something.
   
   Thanks for the review!
   
   [1] 
https://github.com/apache/nifi/blob/master/nifi-framework-api/src/main/java/org/apache/nifi/authorization/AuthorizationRequest.java#L129
   [2] 
https://github.com/apache/nifi/blob/master/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-authorization/src/main/java/org/apache/nifi/authorization/user/StandardNiFiUser.java#L74

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to