-
Notifications
You must be signed in to change notification settings - Fork 258
KNOX-3102 - Complete Auditing in RemoteAuthProvider #999
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -70,8 +71,11 @@ public class RemoteAuthFilter implements Filter { | |||
private static final String CONFIG_USER_HEADER = "remote.auth.user.header"; | |||
private static final String CONFIG_GROUP_HEADER = "remote.auth.group.header"; | |||
private static final String DEFAULT_CONFIG_USER_HEADER = "X-Knox-Actor-ID"; | |||
private static final String DEFAULT_CONFIG_GROUP_HEADER = "X-Knox-Actor-Groups-*"; | |||
private static final String DEFAULT_CONFIG_GROUP_HEADER = "X-Knox-Actor-Groups-1"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this property X-Knox-Actor-Groups-*
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmmm - yes. I think I hit CMD+Z too many times. :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good :)
What changes were proposed in this pull request?
The initial implementation of the RemoteAuthProvider only has the initial access level audit. We need to add not only the result of the authentication attempt but also add the correlation id for the audit entries to the call to the remote auth service so that the audit logs can be correlated.
How was this patch tested?
Added new unit tests and ran all existing tests.
Manually tested with a single instance and traced the call from through the initial topology and the "remote" endpoint. Note the correlation id is the same for all of the entries. This will follow across instances as well.