Skip to content

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

Merged
merged 2 commits into from
May 23, 2025

Conversation

smalis-msft
Copy link
Contributor

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.

@smalis-msft smalis-msft requested a review from a team as a code owner May 22, 2025 19:19
@github-actions github-actions bot added the Guide label May 22, 2025
@smalis-msft smalis-msft added the backport_2505 Change should be backported to the release/2505 branch label May 22, 2025
@@ -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> {
Copy link
Collaborator

Choose a reason for hiding this comment

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

confidential_event_filter

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())

Copy link
Contributor Author

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.

Copy link
Collaborator

@mebersol mebersol left a comment

Choose a reason for hiding this comment

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

:shipit:

@smalis-msft smalis-msft merged commit 257fd70 into microsoft:main May 23, 2025
28 checks passed
@smalis-msft smalis-msft deleted the cvm-tracing-flip branch May 23, 2025 04:16
smalis-msft added a commit to smalis-msft/openvmm that referenced this pull request May 23, 2025
…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.
smalis-msft added a commit that referenced this pull request May 28, 2025
)

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.
@benhillis
Copy link
Member

Backported in #1406

@benhillis benhillis added backported_2505 PR that has been backported to release/2505 and removed backport_2505 Change should be backported to the release/2505 branch labels May 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport_2505_approved backported_2505 PR that has been backported to release/2505 Guide
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants