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

Publish mrenclave #1473

Merged
merged 13 commits into from
Oct 29, 2023
Merged

Publish mrenclave #1473

merged 13 commits into from
Oct 29, 2023

Conversation

clangenb
Copy link
Contributor

@clangenb clangenb commented Oct 23, 2023

  • Create a mrenclave-${{ env.IMAGE_SUFFIX }}.hex containing the mrenclave for each flavor we build, e.g., mrenclave-hw-sidechain-<github-sha>.hex. Closes Get mrenclave at build time #1472
  • add a command mrenclave to the docker image we build, which prints the mrenclave: docker run integritee-service mrenclave

@clangenb clangenb marked this pull request as draft October 23, 2023 06:03
@clangenb clangenb added B1-releasenotes C1-low 📌 Does not elevate a release containing this beyond "low priority" E0-breaksnothing A7-somethingelse labels Oct 23, 2023
@clangenb clangenb requested a review from mosonyi October 27, 2023 11:56
@clangenb clangenb marked this pull request as ready for review October 27, 2023 11:56
Comment on lines +64 to +65
SGX_MODE_LOWERCASE=$(echo "${${{ matrix.sgx_mode }},,}")
echo "IMAGE_SUFFIX=$SGX_MODE_LOWERCASE-${{ matrix.flavor_id }}-${{ github.sha }}" >> $GITHUB_ENV
Copy link
Contributor Author

Choose a reason for hiding this comment

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

A docker image tag must have lower case letters only.

- name: Create Enclave Digest File
run: |
mrenclave_hex=$(docker run integritee-worker-${{ env.IMAGE_SUFFIX }} mrenclave | grep -o -E '[0-9a-fA-F]{64}')
echo "$mrenclave_hex" > mrenclave-${{ env.IMAGE_SUFFIX }}.hex
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I would like to confirm consensus here: We create a mrenclave-${{ env.IMAGE_SUFFIX }}.hex for each flavour we build, which contains the mrenclave, example: mrenclave-hw-sidechain-<github-sha>.hex.

Objections: @brenzi?

Copy link
Contributor

@mosonyi mosonyi left a comment

Choose a reason for hiding this comment

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

Nice job! LGTM

@clangenb clangenb requested a review from brenzi October 27, 2023 12:21
@clangenb
Copy link
Contributor Author

clangenb commented Oct 29, 2023

I merge this for now, so that I can make an upstream merge in OLI's merge. Any amendments can be done later.

@clangenb clangenb merged commit fc7c17b into master Oct 29, 2023
32 checks passed
@clangenb clangenb mentioned this pull request Oct 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A7-somethingelse B1-releasenotes C1-low 📌 Does not elevate a release containing this beyond "low priority" E0-breaksnothing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Get mrenclave at build time
2 participants