Skip to content

UID2-8382: Validate Nitro attestation signing certificate chain - #654

Merged
swibi-ttd merged 4 commits into
mainfrom
swi-UID2-8382-nitro-leaf-chain
Dec 1, 2026
Merged

swibi-ttd merged 4 commits into
mainfrom
swi-UID2-8382-nitro-leaf-chain

Conversation

@swibi-ttd

@swibi-ttd swibi-ttd commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Tightens validation of AWS Nitro attestation documents to follow the AWS verification process (Verifying the root of trust).

Ticket: UID2-8382

Changes

  • Certificate chain includes the signing certificate. AttestationDocument.getCertPath now builds the path as the document's certificate, followed by the cabundle intermediates, and validates it against the pinned AWS Nitro root.
  • Signing certificate must be an end-entity signing certificate. AttestationRequest.verifyCertChain requires the signing certificate to not be a CA and to have the digitalSignature key usage.
  • Malformed requests return BAD_FORMAT. Well-formed CBOR with an unexpected structure or field type now returns BAD_FORMAT instead of an internal error.

Testing

  • Added NitroCoreAttestationServiceTest, which generates a test CA chain at runtime and exercises NitroCoreAttestationService.attest with signed COSE_Sign1 documents: a valid chain, plus rejection cases for chain, validity, key usage and format.
  • Adds bcpkix-jdk18on as a test-scoped dependency for generating the test certificates.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Ticket: UID2-8382
Branch: swi-UID2-8382-nitro-leaf-chain
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Ticket: UID2-8382
Branch: swi-UID2-8382-nitro-leaf-chain
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Ticket: UID2-8382
Branch: swi-UID2-8382-nitro-leaf-chain
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Ticket: UID2-8382
Branch: swi-UID2-8382-nitro-leaf-chain
@swibi-ttd
swibi-ttd marked this pull request as ready for review November 30, 2026 07:20
@swibi-ttd
swibi-ttd merged commit e94f83b into main Dec 1, 2026
5 of 6 checks passed
@swibi-ttd
swibi-ttd deleted the swi-UID2-8382-nitro-leaf-chain branch December 1, 2026 02:35
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