Skip to content

Rewrite http-message-sig with an explicit RFC 9421 API - #135

Open
thibmeu wants to merge 3 commits into
cloudflare:mainfrom
thibmeu:rewrite/http-message-sig-subset
Open

Rewrite http-message-sig with an explicit RFC 9421 API#135
thibmeu wants to merge 3 commits into
cloudflare:mainfrom
thibmeu:rewrite/http-message-sig-subset

Conversation

@thibmeu

@thibmeu thibmeu commented Aug 26, 2026

Copy link
Copy Markdown
Member

This matches #122 more closely, and should allow for a more informed choice about http-message-sig library.

// Before
const headers = await signatureHeaders(request, { signer });
await verify(request, verifier);
// After
const fields = await createSignature(request, {
  signer,
  components: ["@method", "@authority"],
  parameters: { created, keyid, alg },
});

const result = await verifySignature(request, {
  policy,
  resolveVerifier,
});

Changes:

  • explicit components and signature parameters
  • byte-oriented, algorithm-bound signers/verifiers
  • authenticated verification result
  • structured policy and errors
  • sync signing via createSignatureSync

@thibmeu
thibmeu requested a review from AkshatM August 26, 2026 16:10
@thibmeu thibmeu self-assigned this Aug 26, 2026
@thibmeu thibmeu added the enhancement New feature or request label Aug 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants