Skip to content

Add webhook verifier replay regression tests - #190

Merged
josiahking merged 1 commit into
2.xfrom
feature/11-9-4-webhook-verifier-regression
Dec 3, 2026
Merged

josiahking merged 1 commit into
2.xfrom
feature/11-9-4-webhook-verifier-regression

Conversation

@josiahking

Copy link
Copy Markdown
Owner

Summary

Expand webhook verifier regression coverage to ensure unsuccessful verification cannot consume replay claims.

  • Cover exceptions thrown during signing-key resolution and empty resolved secrets.
  • Reject altered request bodies and expired signed timestamps before replay-store access.
  • Verify that a subsequent valid delivery succeeds and duplicate delivery is rejected.
  • Preserve existing regression tests and production behavior.

Validation

  • Webhooks test suite: 33 tests, 153 assertions.
  • Root PHPUnit: 2,096 tests, 11,290 assertions, 14 skipped.
  • Architecture and Documentation policy: 369 tests, 49,360 assertions, 3 skipped.
  • Root PHPStan: no errors.
  • PHP syntax and coding-style checks passed.

Scope

Test-only change. No production code, dependency, configuration or public API changes.

The replay-store fixture verifies verifier behavior without asserting atomicity guarantees for external replay-store implementations.

@josiahking josiahking self-assigned this Dec 3, 2026
@josiahking
josiahking merged commit 29db308 into 2.x Dec 3, 2026
9 checks passed
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