-
Notifications
You must be signed in to change notification settings - Fork 123
cvm_tracing: Allow untagged tracing statements by default #1402
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
@@ -24,9 +24,9 @@ pub const CVM_ALLOWED: Empty = Empty; | |||
/// not be logged out of a confidential environment. | |||
pub const CVM_CONFIDENTIAL: Empty = Empty; | |||
|
|||
/// A tracing filter that will only allow events that are marked as [`CVM_ALLOWED`]. | |||
/// A tracing filter that will block events that are marked as [`CVM_CONFIDENTIAL`]. | |||
pub fn confidential_event_filter<S: Subscriber>() -> impl Filter<S> { |
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.
Should this provide either filter, based on attested settings?
By default, we would have this (even if debugging is off):
FilterFn::new(move |m| m.fields().field("CVM_CONFIDENTIAL").is_none())
and in paranoid mode, still this:
FilterFn::new(move |m| m.fields().field("CVM_ALLOWED").is_some())
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.
We can definitely do something like that, once you're back we should discuss on what the setting should look like.
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.
…1402) After long discussions we have decided to flip the default of our tracing filter, and to allow untagged tracing statements by default. We believe that the risks and costs of being unable to debug incidents in production are too high, and that we can manually scrub our tracing statements to ensure that no sensitive information is leaked. Part of microsoft#852.
) After long discussions we have decided to flip the default of our tracing filter, and to allow untagged tracing statements by default. We believe that the risks and costs of being unable to debug incidents in production are too high, and that we can manually scrub our tracing statements to ensure that no sensitive information is leaked. Cherry-pick of #1402. Part of #852.
Backported in #1406 |
After long discussions we have decided to flip the default of our tracing filter, and to allow untagged tracing statements by default. We believe that the risks and costs of being unable to debug incidents in production are too high, and that we can manually scrub our tracing statements to ensure that no sensitive information is leaked.
Part of #852.