Skip to content

fix: check payments.enabled in callback route middleware#616

Open
Anshumancanrock wants to merge 1 commit intocameri:mainfrom
Anshumancanrock:fix/callback-middleware-check-payments-enabled
Open

fix: check payments.enabled in callback route middleware#616
Anshumancanrock wants to merge 1 commit intocameri:mainfrom
Anshumancanrock:fix/callback-middleware-check-payments-enabled

Conversation

@Anshumancanrock
Copy link
Copy Markdown
Collaborator

Description

The requireProcessor middleware now also checks settings.payments.enabled before allowing callback requests through. Previously it only verified the processor name matched, which meant a relay with payments disabled but a processor configured could still accept callbacks.

Related Issue

Follow-up to #597

Motivation and Context

A relay operator might have payments.enabled: false with a processor still configured (e.g. during setup or after disabling payments). Without this check, callback endpoints would still accept and process requests so the middleware should reject early in that case.

How Has This Been Tested?

  • All 1261 unit tests passing
  • Updated route unit test stub to set enabled: true
  • Updated OpenNode integration test setup to set enabled: true

Types of changes

  • Bug fix

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 8, 2026

🦋 Changeset detected

Latest commit: 5563256

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
nostream Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@coveralls
Copy link
Copy Markdown
Collaborator

coveralls commented May 8, 2026

Coverage Status

coverage: 65.086% (+0.1%) from 64.937% — Anshumancanrock:fix/callback-middleware-check-payments-enabled into cameri:main

@Anshumancanrock Anshumancanrock marked this pull request as draft May 8, 2026 19:42
@Anshumancanrock Anshumancanrock force-pushed the fix/callback-middleware-check-payments-enabled branch from a629acd to 7006b40 Compare May 8, 2026 19:52
@Anshumancanrock Anshumancanrock marked this pull request as ready for review May 8, 2026 19:58
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.

2 participants