Skip to content
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

Mark tracing statements across the codebase as CVM_ALLOWED or CVM_CONFIDENTIAL #852

Open
smalis-msft opened this issue Feb 13, 2025 · 0 comments
Assignees
Labels
snp SNP specific bugs or features tdx TDX specific bugs or features

Comments

@smalis-msft
Copy link
Contributor

smalis-msft commented Feb 13, 2025

By default, when operating within a CVM, OpenHCL will block all of its internal tracing statements from reaching the host. This is necessary to prevent the accidental disclosure of sensitive information to the host. However this creates a debugging challenge, as our logs are one of the only signals we can get out of a CVM. To solve this we have a marker, CVM_ALLOWED, that can be added to a tracing statement to attest that it contains information that is safe to disclose to the host. We need to go through all of our tracing statements and determine which are safe to log, which are not, and annotate them appropriately.

(We also have a CVM_CONFIDENTIAL marker to mark statements that contain sensitive information that should not go to the host, however this is the same as the default behavior, and thus is a functional no-op. It is intended just to provide a signal that the tracing statement has been audited.)

See the documentation in the cvm_tracing crate and this guide section for more information.

@smalis-msft smalis-msft added snp SNP specific bugs or features tdx TDX specific bugs or features labels Feb 13, 2025
@mebersol mebersol self-assigned this Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
snp SNP specific bugs or features tdx TDX specific bugs or features
Projects
None yet
Development

No branches or pull requests

2 participants