-
-
Notifications
You must be signed in to change notification settings - Fork 116
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
feat: audit logs #994
base: main
Are you sure you want to change the base?
feat: audit logs #994
Conversation
Co-authored-by: Akshat Agarwal <[email protected]>
pub audit_log_target_username: Option<String>, | ||
pub audit_log_target_password: Option<String>, | ||
pub audit_log_target_tls_verify: bool, | ||
pub audit_log_target_headers: HashMap<String, String>, |
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.
This could just as well be an http::HeaderMap
.get("user-agent") | ||
.and_then(|value| value.to_str().ok()) | ||
.unwrap_or("unknown"), | ||
"id": "user123" |
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.
Why is this hardcoded, and what is the intention behind using user-agent as type?
.unwrap_or("unknown"), | ||
"id": "user123" | ||
}, | ||
"ip-address":&req |
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.
Are you intending to use the addr of the client?
@@ -164,6 +171,31 @@ where | |||
/* ## Section end */ | |||
|
|||
let auth_result: Result<_, Error> = (self.auth_method)(&mut req, self.action); | |||
let body = json!([ |
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.
I will work on the Schema, will get back to you in a week's time
Opening this PR so it makes it easier to discuss adding audit logs to parseable.
Fixes #765.
What kind of events do we want to capture?
Adding any other details to the audit log
This PR has: