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

aa: Rename Occlum attester to SGX attester and add Gramine support to it #167

Merged
merged 3 commits into from
Jul 25, 2023

Conversation

mythi
Copy link
Contributor

@mythi mythi commented Jun 22, 2023

No description provided.

@mythi mythi requested review from jialez0 and sameo as code owners June 22, 2023 09:24
@mythi mythi force-pushed the sgx-dcap-attester branch 2 times, most recently from a05268d to 6bdc7fb Compare June 22, 2023 09:35
}
}
SgxLibOsType::Gramine => {
std::fs::write("/dev/attestation/user_report_data", report_data_bin)?;
Copy link
Member

Choose a reason for hiding this comment

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

Do we also need occlum_dcap dependency if gramine is the libos? I mean if not, we can avoid bringing occlum_dcap to decrease the footprint.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

we don't need it but I did not want to introduce new features but keep only one "SGX DCAP" feature.

Copy link
Member

Choose a reason for hiding this comment

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

Ok. Let's handle this in future when footprint is actually an obstacle for enclave-cc.

@Xynnn007
Copy link
Member

@mythi
Copy link
Contributor Author

mythi commented Jul 17, 2023

Something went wrong here https://github.com/confidential-containers/guest-components/actions/runs/5343957102/jobs/10178767536#step:7:292

I just rebased to fix merge conflicts. Let's see the results now.

Update: Seems to be OK: https://github.com/confidential-containers/guest-components/actions/runs/5573122545/jobs/10179974921?pr=167

Copy link
Member

@Xynnn007 Xynnn007 left a comment

Choose a reason for hiding this comment

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

lgtm, thanks!

@Xynnn007
Copy link
Member

Hi @mythi Can you rebase this PR?

Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
SGX DCAP Attester checks that the evidence passed in is base64
encoded SHA384 and fails if the base64 decoded input does not
match the expected length.

Therefore, "test".into() won't work and errors. Fix by using
the same hasher as the KBS protocol.

Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
@mythi
Copy link
Contributor Author

mythi commented Jul 25, 2023

Hi @mythi Can you rebase this PR?

done

@Xynnn007 Xynnn007 merged commit 90d2b66 into confidential-containers:main Jul 25, 2023
16 checks passed
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