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

SNP Validation #2

Open
platten opened this issue Feb 18, 2022 · 2 comments
Open

SNP Validation #2

platten opened this issue Feb 18, 2022 · 2 comments
Assignees
Labels

Comments

@platten
Copy link
Contributor

platten commented Feb 18, 2022

No description provided.

@haraldh
Copy link
Member

haraldh commented Oct 27, 2022

This should be checked against a configurable value. It is the hash of the SNP author key.

        // Check fields not set by Enarx
        for value in report.body.author_key_digest {
            if value != 0 {
                return Err(anyhow!(
                    "snp report author_key_digest field not set by Enarx"
                ));
            }
        }

Also this is the hash of the signing key, signed with the author key and should be tested against a blacklist.

        for value in report.body.id_key_digest {
            if value != 0 {
                return Err(anyhow!("snp report id_key_digest field not set by Enarx"));
            }
        }

@haraldh
Copy link
Member

haraldh commented Oct 27, 2022

Also this security version number should be checked, that it is not lower than a configured value.

        if report.body.guest_svn != 0 {
            return Err(anyhow!("snp report guest_svn field not set by Enarx"));
        }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants