Skip to content

feat: Support for RFC 9651 types in signature parameters - #201

Merged
dadrus merged 8 commits into
mainfrom
feat/rfc9651_support
Nov 7, 2026
Merged

dadrus merged 8 commits into
mainfrom
feat/rfc9651_support

Conversation

@dadrus

@dadrus dadrus commented Nov 7, 2026

Copy link
Copy Markdown
Owner

This change adds support for the Display String and Date Structured Fields types introduced by RFC 9651 in HTTP Message Signatures extension parameters.

Applications can now explicitly use httpsig.DisplayString and time.Time with httpsig.WithParameter(). Both types are also supported by the Accept-Signature header builder and parser.

Potential breaking change: Previously, decoded Display Strings were returned as ordinary Go strings. They are now returned as httpsig.DisplayString, which may require adjustments in applications relying on type assertions.

Please note: HMS implementations based on RFC 8941 may not accept these types, so interoperability depends on the capabilities of the communicating parties.

@dadrus dadrus changed the title feat: Support for [RFC 9651](https://www.rfc-editor.org/rfc/rfc9651.html) types in signature parameters feat: Support for RFC 9651types in signature parameters Nov 7, 2026
@codecov

codecov Bot commented Nov 7, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 94.11765% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 97.98%. Comparing base (8c7ee2d) to head (636c0a6).
⚠️ Report is 1 commits behind head on main.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
verification_policy.go 88.88% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #201      +/-   ##
==========================================
- Coverage   98.02%   97.98%   -0.05%     
==========================================
  Files          23       23              
  Lines        1624     1635      +11     
==========================================
+ Hits         1592     1602      +10     
- Misses         32       33       +1     

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

@dadrus dadrus changed the title feat: Support for RFC 9651types in signature parameters feat: Support for RFC 9651 types in signature parameters Nov 7, 2026
@dadrus
dadrus merged commit baf75fb into main Nov 7, 2026
10 checks passed
@dadrus
dadrus deleted the feat/rfc9651_support branch November 7, 2026 19:21
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.

1 participant