Skip to content

crypto: Implement issued check for symcrypt, improve error handling#3444

Open
smalis-msft wants to merge 4 commits intomicrosoft:mainfrom
smalis-msft:x509-issued
Open

crypto: Implement issued check for symcrypt, improve error handling#3444
smalis-msft wants to merge 4 commits intomicrosoft:mainfrom
smalis-msft:x509-issued

Conversation

@smalis-msft
Copy link
Copy Markdown
Contributor

Properly check all of the cases needed to ensure issuance in the symcrypt backend, and add error handling to the openssl backend instead of ignoring them.

Copilot AI review requested due to automatic review settings May 8, 2026 18:40
@smalis-msft smalis-msft requested a review from a team as a code owner May 8, 2026 18:40
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

This PR tightens X.509 chain validation by making the issued() check return Result<bool, X509Error>, enhancing SymCrypt’s “issued by” logic, and surfacing OpenSSL backend errors instead of silently treating them as non-OK.

Changes:

  • Change X509Certificate::issued() and backend implementations to return Result<bool, X509Error>.
  • Implement additional issuer/subject checks in the SymCrypt backend (KeyUsage + AKID/SKID matching).
  • Update JWT certificate-chain validation to propagate issued() errors as a distinct error variant.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

File Description
support/crypto/src/x509/symcrypt.rs Expands SymCrypt “issued by” checks and changes return type to Result.
support/crypto/src/x509/ossl.rs Changes OpenSSL “issued by” to Result and introduces result-code mapping / error handling.
support/crypto/src/x509/mod.rs Updates public API to return Result<bool, X509Error>.
openhcl/underhill_attestation/src/jwt.rs Propagates new issued() errors during cert-chain validation.

Comment thread support/crypto/src/x509/symcrypt.rs Outdated
Comment thread support/crypto/src/x509/symcrypt.rs Outdated
Comment thread support/crypto/src/x509/symcrypt.rs
Comment thread support/crypto/src/x509/ossl.rs Outdated
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 8, 2026

Copilot AI review requested due to automatic review settings May 8, 2026 20:39
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

Comment thread support/crypto/src/x509/symcrypt.rs Outdated
Comment thread openhcl/underhill_attestation/src/jwt.rs
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 8, 2026

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