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

add advisory list to attestation report #287

Merged
merged 1 commit into from
Sep 18, 2024
Merged

add advisory list to attestation report #287

merged 1 commit into from
Sep 18, 2024

Conversation

thomasten
Copy link
Member

Add TCBAdvisories to the attestation report so that a user can learn why the verified platform has a certain TCBStatus.
Don't let attestation fail when an error occurs while getting the advisory array, but return it in TCBAdvisoriesErr. Let the user decide how to handle the error.

Copy link

netlify bot commented Sep 18, 2024

Deploy Preview for ego-docs canceled.

Name Link
🔨 Latest commit 75c1acb
🔍 Latest deploy log https://app.netlify.com/sites/ego-docs/deploys/66ead62449821700083fc1d9

}
}

if !hasAttributes {
return Report{}, errors.New("missing attributes in report claims")
}
report.TCBAdvisories, report.TCBAdvisoriesErr = getAdvisoriesFromTCBInfo(tcbInfo, tcbInfoIndex)
Copy link
Member

Choose a reason for hiding this comment

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

Will the tcbInfo and tcbIndex fields also be populated if attestation passes successfully?
I guess in that case one also just wouldn't need to check the advisories in the first cases, so should be fine either way

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, they will, but advisoryIDs should be empty like in the first level of the test.

@thomasten thomasten merged commit 71abc7e into master Sep 18, 2024
7 checks passed
@thomasten thomasten deleted the advisories branch September 18, 2024 14:28
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.

2 participants