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

Tn/dcap rebased #1103

Merged
merged 34 commits into from
Dec 12, 2022
Merged

Tn/dcap rebased #1103

merged 34 commits into from
Dec 12, 2022

Conversation

Niederb
Copy link
Contributor

@Niederb Niederb commented Nov 22, 2022

This is mostly a rebased version of #847. Please also check the comments there.

  • Add a new feature flag dcap that switches to dcap from ias
  • Additional changes to adapt it to the attestation-handler which was introduced later
  • Some of the code for the verification enclave we probably will not need in the end
  • I was thinking about having two versions (DCAP/IAS) of the AttestationHandler trait but decided against it (for now)
    • Would add additional state handling to the enclave
    • I'm not sure that both, DCAP and IAS, will fit nicely into a single API

- Only change is that dcap is not active (see main.rs)
- Probably will not compile yet
# Conflicts:
#	enclave-runtime/src/initialization/initialization.rs
#	sidechain/consensus/aura/src/slot_proposer.rs
Distinguish between what generates the extrinsic and what generates the certificate
@@ -123,6 +123,7 @@ WORKDIR /usr/local/bin

COPY --from=builder /opt/sgxsdk/lib64 /opt/sgxsdk/lib64
COPY --from=builder /root/work/worker/bin/* ./
COPY --from=builder /lib/x86_64-linux-gnu /lib/x86_64-linux-gnu
Copy link
Contributor Author

@Niederb Niederb Dec 1, 2022

Choose a reason for hiding this comment

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

This copies some additional DCAP libraries, but also many libraries that we don't need. It makes our images quite a bit bigger.
Something I still want to understand and discuss with Felix. I created a follow up issue regarding this #1122

@Niederb
Copy link
Contributor Author

Niederb commented Dec 1, 2022

I think it is ready for a first review. @haerdib Maybe you also want to have a look of how I ruined your branch? 😰 😸

@Niederb Niederb requested a review from clangenb December 1, 2022 06:40
Copy link
Contributor

@clangenb clangenb left a comment

Choose a reason for hiding this comment

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

Cool, I really appreciate how nice and clean this looks, such that I can even understand it without digging too deep into the code. I only have some minor comments.

Copy link
Contributor

@clangenb clangenb left a comment

Choose a reason for hiding this comment

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

Very cool. From my point of view, this is ready to merge!

enclave-runtime/Enclave.edl Outdated Show resolved Hide resolved
# Conflicts:
#	Cargo.lock
#	enclave-runtime/Cargo.lock
#	enclave-runtime/Enclave.edl
@clangenb clangenb added A0-core Affects a core part B1-releasenotes C1-low 📌 Does not elevate a release containing this beyond "low priority" labels Dec 12, 2022
@Niederb Niederb marked this pull request as ready for review December 12, 2022 09:34
@clangenb clangenb added the E3-hardmerge PR introduces a lot changes in a lot of files. Requires some effort to merge or rebase to. label Dec 12, 2022
@clangenb clangenb merged commit bc0b67b into master Dec 12, 2022
This was referenced Dec 12, 2022
@Niederb Niederb deleted the tn/dcap-rebased branch December 13, 2022 06:13
@Niederb Niederb restored the tn/dcap-rebased branch December 13, 2022 06:29
@Niederb Niederb deleted the tn/dcap-rebased branch December 14, 2022 07:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A0-core Affects a core part B1-releasenotes C1-low 📌 Does not elevate a release containing this beyond "low priority" E3-hardmerge PR introduces a lot changes in a lot of files. Requires some effort to merge or rebase to.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants