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

Check TCB version to ensure it is up to date enough #6837

Draft
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

cjen1-msft
Copy link
Contributor

Add checking for the TCB version.
Addresses #6812

TODO

  • Startup population of valid tcb map
  • virtual attestation logic

@@ -508,7 +509,8 @@ namespace ccf
handle->foreach([&response_body](const auto& k, const auto& v) {
if constexpr (
std::is_same_v<typename T::Key, ccf::crypto::Sha256Hash> ||
pal::is_attestation_measurement<typename T::Key>::value)
pal::is_attestation_measurement<typename T::Key>::value ||
std::is_same_v<typename T::Key, ccf::pal::snp::AttestChipModel>)
Copy link
Contributor Author

@cjen1-msft cjen1-msft Feb 24, 2025

Choose a reason for hiding this comment

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

This is quite hacky. The issue is that there isn't an obvious string representation of the AttestChipModel, so it is a json key which then doesn't have obviously correct semantics for this getter.

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.

1 participant