Skip to content

Add AWS Nitro#3

Open
drgora wants to merge 6 commits intomainfrom
dr/nitro
Open

Add AWS Nitro#3
drgora wants to merge 6 commits intomainfrom
dr/nitro

Conversation

@drgora
Copy link
Contributor

@drgora drgora commented Mar 13, 2026

The main goal of this PR is to add support for parsing and verifying AWS Nitro attestations.
Given that AWS distributes CRLs in DER format, support for binary CRLs is also added.

For simplicity, we also limit the number of CRLs processed in a single call to 1.

Other than that, mostly cosmetics and refactoring.

@drgora drgora requested review from 95DDB and la10736 March 13, 2026 15:26
Copy link

@la10736 la10736 left a comment

Choose a reason for hiding this comment

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

LGTM

Great job and good shape. Just some comment that you can ignore.


/// Errors that can occur when parsing a Nitro attestation document.
#[derive(Debug)]
pub enum NitroParseError {
Copy link

Choose a reason for hiding this comment

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

Just for the next time. Use thiserror crate could be very useful for error handling in library

Copy link

Choose a reason for hiding this comment

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

Just a detail, some error cases are not tested ... I guess it's ok because generate them is quite a bit synthetic ...

Copy link

Choose a reason for hiding this comment

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

That's just a matter of taste. Integration test should just test the main business functionality and (for a library ) that everything the library user need to use it is correctly exported. Nitro parsing and verification errors maybe can be unit.

Anyway, feel free to ignore this statement at all.

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.

2 participants