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

attestation-agent/Attesters: refactor the trait of Attester #284

Merged
merged 1 commit into from
Jul 25, 2023

Conversation

Xynnn007
Copy link
Member

Change the API of get_evidence function to just performing getting evidence via calling the underlying hardware drivers.

Fixes: #283

Please do not merge this until the v0.8.0 cycle.

cc @jialez0 @fitzthum @mkulke please take a look if these changes are good for the architecture/concrete attester implementation.

@Xynnn007 Xynnn007 requested a review from jialez0 as a code owner July 17, 2023 02:17
@Xynnn007 Xynnn007 self-assigned this Jul 17, 2023
Copy link
Contributor

@mkulke mkulke left a comment

Choose a reason for hiding this comment

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

a small remark about the signature, but I agree it makes a lot of sense to move the encoding to the caller site.

attestation-agent/attester/src/snp/mod.rs Show resolved Hide resolved
attestation-agent/attester/src/snp/mod.rs Outdated Show resolved Hide resolved
Change the API of `get_evidence` function to just performing getting
evidence via calling the underlying hardware drivers.

Fixes: confidential-containers#283

Signed-off-by: Xynnn007 <xynnn@linux.alibaba.com>
@Xynnn007
Copy link
Member Author

Rebased upstream to resolve conflicts.

@Xynnn007 Xynnn007 requested a review from mkulke July 25, 2023 14:50
Copy link
Member

@fitzthum fitzthum left a comment

Choose a reason for hiding this comment

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

LGTM. Hopefully this won't cause any mismatch with the validation in the AS. I don't think it will.

@Xynnn007 Xynnn007 merged commit fca99d7 into confidential-containers:main Jul 25, 2023
6 checks passed
@Xynnn007 Xynnn007 deleted the refactor-attester branch July 25, 2023 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Fix the Implementations of Attester
4 participants