feat: add HTTP audit middleware#152
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. 🗂️ Base branches to auto review (1)
Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Add go-libs/v5 alongside existing v2, and fix deprecated API calls introduced by transitive dependency upgrades: - bun.In() -> bun.List() - r.AddNoPublisherHandler() -> r.AddConsumerHandler() Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Wire go-libs v5 httpaudit middleware into the webhooks HTTP router to publish audit events via Watermill. Replace per-module v2 publish FX wiring with a shared v5 messagingfx.PublishModuleFromFlags so the publisher is always available for both audit and the optional worker. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
7223bd4 to
ae4abf2
Compare
|
Changes merged into upgrade PR #153 |
Summary
httpaudit.Middlewareinto the webhooks HTTP router to publish audit events via Watermillmessagingfx.PublishModuleFromFlags(go-libs v5) as the shared publisher provider, replacing the per-module v2publish.FXModuleFromFlagsin the workerloggerV5Adapterso the v5 messaging module can reuse the existing v2 loggerTest plan
go build ./...passes (done locally)go vet ./...passes (done locally)Depends on: formancehq/go-libs#604
🤖 Generated with Claude Code