mithril-security / blindai

Confidential AI deployment with secure enclaves :lock:
https://www.mithrilsecurity.io/
Apache License 2.0
500 stars 35 forks source link

Unclear error message when testing in simulation #83

Closed kbamponsem closed 2 years ago

kbamponsem commented 2 years ago

Description

This PR fixes ambiguous error message when executing integration tests in software (SW) mode.

Describe your changes in detail

if cfg!(SGX_MODE = "SW") {
            return Err(Status::failed_precondition(
                "Attestation is not available. Running in Simulation Mode",
            ));
        }

Type of change

The types of changes must be deduced from the labels of the related issues. Please consider providing these further details.

How Has This Been Tested?

It was tested in a simulation environment and the proper error message was witnessed.

Checklist: