Skip to content

Implement mitigation 4 of TM #189

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

Merged
merged 1 commit into from
Jun 23, 2020
Merged

Conversation

hug-dev
Copy link
Member

@hug-dev hug-dev commented Jun 22, 2020

Adds trace logging whenever requests, responses, mappings or commands
are sent or received.

Signed-off-by: Hugues de Valon [email protected]

Adds trace logging whenever requests, responses, mappings or commands
are sent or received.

Signed-off-by: Hugues de Valon <[email protected]>
@hug-dev hug-dev added the security Issues related to the security and privacy of the service label Jun 22, 2020
@hug-dev hug-dev self-assigned this Jun 22, 2020
response
};

// Serialise the response into bytes
// Write bytes to stream
match response.write_to_stream(&mut stream) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apologies for not asking this earlier, but why not just put a trace!("dispatch_request egress"); just before this match? Or did you not want to write it if the dispatcher wasn't called?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes so that it is only written when the dispatcher has been called.

Comment on lines +88 to +97
if crate::utils::GlobalConfig::log_error_details() {
if let Some(app_name_string) = app_name.clone() {
info!(
"New request received from application name \"{}\"",
app_name_string
)
} else {
info!("New request received without authentication")
}
};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice 👌

@@ -209,6 +206,12 @@ impl OnDiskKeyInfoManager {
))?,
) {
Ok(key_triple) => {
if crate::utils::GlobalConfig::log_error_details() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should rename the flag to log_details

@hug-dev hug-dev merged commit 726eb4e into parallaxsecond:master Jun 23, 2020
@hug-dev hug-dev deleted the tm-proofs branch June 23, 2020 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
security Issues related to the security and privacy of the service
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants