refactor(stripe): consume dunite-stripe-core (DEV-514) #443
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/DEV-514-consume-stripe-core"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Adopt the shared
dunite-stripe-corecrate (DEV-514, under the DEV-495 epic) for Stripe webhook signature verification, replacing bunyip's local copy. Third consumer after mokosh; the goal is to stop maintaining the same verifier in three repos.Changes
crates/bunyip-domain/src/services/stripe.rs:verify_webhook_signaturenow delegates todunite_stripe_core::verify_webhook_signature. The crate carries the constant-time comparison bunyip introduced for BUNYIP-107, so behaviour is identical (t=/v1=parse, 300s tolerance, any-v1match). HMAC imports are now test-only.crates/bunyip-domain/Cargo.toml: adddunite-stripe-corepinned to the branch rev that introduces it.dunite-core/dunite-downloadstay atc5730bcbecause dunitemainadvanceddunite-oidcin between (unrelated to bunyip-oidc's pin). Cargo resolves the two dunite revs without issue.Testing
The six existing
verify_webhook_signature_*tests pass (valid, invalid, wrong-but-valid-hex, missing-timestamp, no-v1, old-timestamp).cargo clippy -p bunyip-domain --all-targetsandcargo fmt -p bunyip-domain --checkclean.Merge order
Depends on dunite PR #27. Once it lands, collapse the three dunite pins (
core/download/stripe-core) to the single merged rev.🤖 Generated with Claude Code
https://claude.ai/code/session_01QLd9c7niucrqx68v4AxVss