NIFI-14413 - Add User Agent to NiFi User Model#9843
NIFI-14413 - Add User Agent to NiFi User Model#9843arturchyzy wants to merge 1 commit intoapache:mainfrom
Conversation
exceptionfactory
left a comment
There was a problem hiding this comment.
Thanks for adding the User Agent property @arturchyzy.
The general approach looks good, but I noticed a gap related to token authentication. I noticed the StandardJwtAuthenticationConverter also creates a NiFi User, but is not included in these updates. That converter does not have access to the request information, which highlights a potential design issue.
Spring Security has an AuthenticationDetailsSource, with implementations that return additional information about the request. The WebAuthenticationDetails is a useful implementation, which includes the Remote Address. Extending that approach seems like the right abstraction for adding the User Agent. That appears to require some other adjustments to the general implementation strategy, but I think that is what needs to happen.
|
@exceptionfactory I've pushed the changes using AuthenticationDetailsSource. I have to admit it was a bit challenging to track all the authentication types but I think I was able to support all of them. |
exceptionfactory
left a comment
There was a problem hiding this comment.
Thanks for making the adjustments to use the Authentication Details @arturchyzy, the latest version looks good! +1 merging
This closes apache#9843 Signed-off-by: David Handermann <exceptionfactory@apache.org>
Summary
NIFI-14413
Tracking
Please complete the following tracking steps prior to pull request creation.
Issue Tracking
Pull Request Tracking
NIFI-00000NIFI-00000Pull Request Formatting
mainbranchVerification
Please indicate the verification steps performed prior to pull request creation.
Build
mvn clean install -P contrib-checkLicensing
LICENSEandNOTICEfilesDocumentation