Skip to content

feat(web-bot-auth): let verify require components and parameters - #209

Open
konippi wants to merge 1 commit into
cloudflare:mainfrom
konippi:feat/verify-required-coverage
Open

konippi wants to merge 1 commit into
cloudflare:mainfrom
konippi:feat/verify-required-coverage

Conversation

@konippi

@konippi konippi commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

Related to #165.

verify() hard-coded requiredComponents: [], so a deployment that needs more coverage (e.g. content-digest) or a nonce could only check it in validate, after the resolver had already fetched the key.

VerifyOptions now takes requiredComponents and requiredParameters, which are passed to the http-message-sig policy and checked before the resolver runs. requiredParameters only adds to created, expires, keyid and tag.

@clanky-the-clanker

Copy link
Copy Markdown
Contributor

This pull request was not reviewed automatically because its author does not have write access to this repository. A maintainer with write access can start a review by commenting clanky review (or clanker review or @clanky-the-clanker review), optionally followed by instructions (e.g. clanky review focus on the retry logic).

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