Skip to content

fix(server): randomize payment challenge issuance - #996

Open
brendanjryan wants to merge 1 commit into
mainfrom
brendanjryan/unique-payment-challenges
Open

brendanjryan wants to merge 1 commit into
mainfrom
brendanjryan/unique-payment-challenges

Conversation

@brendanjryan

Copy link
Copy Markdown
Collaborator

Motivation

Server challenges issued with identical parameters could share an ID. Each issuance should have its own authenticated identity.

Summary

  • Added a fresh nonce to HMAC-bound challenge metadata.
  • Preserved application metadata and stable route checks when validating echoed credentials.
  • Kept native x402 route bindings stable across requests.

Key design considerations

  • Clients continue echoing opaque unchanged; _mppx_nonce is reserved for server issuance.
  • Existing signed credentials remain valid, and low-level Challenge.from remains deterministic.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 3, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-03T00:07:43.960980Z 1945386 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@pkg-pr-new

pkg-pr-new Bot commented Oct 3, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/mppx@996

commit: 3640826

@brendanjryan
brendanjryan force-pushed the brendanjryan/unique-payment-challenges branch from 1945386 to 76cdffe Compare October 3, 2026 00:07

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1945386132

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/server/Mppx.ts
Comment thread src/server/internal/challengeMeta.ts Outdated
@brendanjryan
brendanjryan force-pushed the brendanjryan/unique-payment-challenges branch from 76cdffe to 3640826 Compare October 3, 2026 16:05
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