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

Expose a function that tells us if our enclave runs in debug mode #7

Open
NullHypothesis opened this issue Aug 12, 2022 · 2 comments
Open
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@NullHypothesis
Copy link
Contributor

NullHypothesis commented Aug 12, 2022

One way to go about this is to ask for an attestation document and check if its PCR values are set. An enclave that's launched in debug mode has all its PCR values zeroed out. Perhaps there's a smarter way to do that, without having to rely on the PCR side effect.

This would let us set the Config.Debug key automatically without the user having to rebuild the application to access debug logs.

@NullHypothesis NullHypothesis added enhancement New feature or request good first issue Good for newcomers labels Aug 12, 2022
@NullHypothesis NullHypothesis transferred this issue from brave/nitriding May 1, 2023
@jatanloya
Copy link
Contributor

I did some research and could only find the PCR approach. Can I help with that approach?

@rillian
Copy link
Contributor

rillian commented Dec 12, 2023

If you haven't found a simpler way to check, I think proceeding with a check of the PCR values is fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants