Skip to content

fix: support ASN.1 encoded distinguished name values - #605

Open
martinvdk wants to merge 1 commit into
notaryproject:mainfrom
martinvdk:fix/asn1-dn-values
Open

martinvdk wants to merge 1 commit into
notaryproject:mainfrom
martinvdk:fix/asn1-dn-values

Conversation

@martinvdk

Copy link
Copy Markdown

See this discussion. I'd like to reenable support for hex-encoded attributes in certificates after support was removed for a CVE in go-asn1-ber. The CVE has since been fixed.

@cshung cshung left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Reviewed the original workaround history and confirmed that the selected ASN.1 dependency contains the upstream allocation fix. The change removes the blanket restriction while preserving the existing subject validation and identity matching.

The full race/coverage suite passed locally on Go 1.27.4 (86.2% statement coverage). Generated EV-style certificates also passed real JWS/COSE signing and verification with matching textual and encoded identities; mismatched and missing constrained attributes were rejected.

Approving the code change. Hosted CI and commit-signature requirements still need to be satisfied before merge.

Signed-off-by: Martin van den Kerkhoff <mvdk@outlook.com>
@martinvdk

Copy link
Copy Markdown
Author

The commit signature is now verified and DCO passes.

@yizha1 yizha1 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM. Thanks @martinvdk

@codecov

codecov Bot commented Dec 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.90%. Comparing base (696b555) to head (9ac35f0).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #605      +/-   ##
==========================================
+ Coverage   82.94%   84.90%   +1.95%     
==========================================
  Files          36       36              
  Lines        2645     2643       -2     
==========================================
+ Hits         2194     2244      +50     
- Misses        310      398      +88     
+ Partials      141        1     -140     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@yizha1

yizha1 commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

@martinvdk can you update branch to the latest? Thanks.

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.

3 participants