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

Always set DEBUG_ENCLAVE to false in IAS prod mode. #852

Merged
merged 1 commit into from
Jul 9, 2021
Merged

Always set DEBUG_ENCLAVE to false in IAS prod mode. #852

merged 1 commit into from
Jul 9, 2021

Conversation

jcape
Copy link
Contributor

@jcape jcape commented Jul 8, 2021

Motivation

Intending to support clients connecting to a "Pre-Production" environment, we were setting DEBUG_ENCLAVE conditionally, based on whether or not debug assertions were enabled. This has the surprising effect of allowing verifiers compiled in debug mode with IAS_MODE=PROD set to allow debug-mode enclaves to verify.

Additionally, now that IAS DEV and "LIV" (PROD) environments both use the same root authority, DEV vs. PROD is sufficient to distinguish whether debug enclaves are supported or not.

We should just remove the conditional and simply make PROD builds always reject debug enclaves, because it removes a footgun.

In this PR

  • Make DEBUG_ENCLAVE always false when not built with the sgx-sim or ias-dev features.

@jcape jcape requested review from a team July 8, 2021 23:46
@jcape jcape self-assigned this Jul 8, 2021
Copy link
Contributor

@cbeck88 cbeck88 left a comment

Choose a reason for hiding this comment

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

thank you!

@jcape jcape merged commit fe13f71 into mobilecoinfoundation:master Jul 9, 2021
@jcape jcape deleted the features/no-prod-debug branch July 9, 2021 19:19
@jcape jcape restored the features/no-prod-debug branch May 3, 2022 02:45
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.

None yet

3 participants