+
Skip to content

Conversation

danko-miladinovic
Copy link
Contributor

What type of PR is this?

This is a update to the VM information that is being saved. It saves the launch TCB for the launched VM so it can be later used in the attestation verification and validation process. The AR contains the field LAUNCH_TCB which contains the TCB value when the VM was launched.

What does this do?

This PR adds the launch TCB value to the new structure VMInfo. The new structure hold information on the launched VM. The launch TCB is later used in the verification and validation process of the attestation report. It validates the launch TCB field of the attestation report.

Which issue(s) does this PR fix/relate to?

No issue.

Have you included tests for your changes?

The tests are the same as before.

Did you document any new/modified feature?

This feature is part of the attestation validation and verification process.

Notes

Copy link

codecov bot commented Dec 11, 2024

Codecov Report

Attention: Patch coverage is 75.80645% with 15 lines in your changes missing coverage. Please review.

Project coverage is 66.31%. Comparing base (10037ad) to head (1f02cc7).
Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
manager/service.go 72.22% 7 Missing and 3 partials ⚠️
manager/attestation_policy.go 71.42% 4 Missing ⚠️
manager/qemu/vsock.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #333      +/-   ##
==========================================
- Coverage   66.40%   66.31%   -0.09%     
==========================================
  Files          53       53              
  Lines        4352     4391      +39     
==========================================
+ Hits         2890     2912      +22     
- Misses       1192     1207      +15     
- Partials      270      272       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

}
ms.mu.Unlock()

cmd := exec.Command("sudo", fmt.Sprintf("%s/attestation_policy", ms.attestationPolicyBinaryPath), "--policy", "196608")
Copy link
Contributor

Choose a reason for hiding this comment

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

run conditionally only for when qemu config is set for SEV or SEV_SNP

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

Copy link
Contributor

@drasko drasko left a comment

Choose a reason for hiding this comment

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

LGTM

@drasko drasko merged commit e48f184 into ultravioletrs:main Dec 11, 2024
2 of 3 checks passed
@danko-miladinovic danko-miladinovic deleted the lTCB branch March 14, 2025 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载