Added vTPM get HCL report contains user defined data #57
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added vTPM get HCL report which allows to include user defined data in retrieved report
How to use
Sample usage based on az-cvm-vtpm/az-tdx-vtpm/src/main.rs:
Testing done
Tested on virtual machine spawned in Azure by invoking below steps:
az-cvm-vtpm/az-tdx-vtpm/src/main.rs
user_hash_64bytes HEX: "814ab097d964bd9186367309a7afb584681a4f53ce23e3850dfc0d7db9bf21c303e9b9f509489afc1d04697584431651af6ecf06d284a13807edc6d6dcdfa675"
Command:
sudo tpm2_nvread -C o 0x01400001
Result:
json { "keys":[], "vm-configuration":{}, "user-data":"814AB097D964BD9186367309A7AFB584681A4F53CE23E3850DFC0D7DB9BF21C303E9B9F509489AFC1D04697584431651AF6ECF06D284A13807EDC6D6DCDFA675" }