Skip to content

feat: add HTTP audit middleware#143

Merged
gfyrag merged 2 commits into
chore/upgrade-go-libs-v5from
feat/audit-middleware
May 22, 2026
Merged

feat: add HTTP audit middleware#143
gfyrag merged 2 commits into
chore/upgrade-go-libs-v5from
feat/audit-middleware

Conversation

@gfyrag

@gfyrag gfyrag commented May 22, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Wire go-libs/v5 audit HTTP middleware into the auth HTTP router
  • Add messaging infrastructure (publish flags + messagingfx) for audit event publishing
  • Sensitive path /api/auth/oauth/token suppresses response body in audit events

Depends on: formancehq/go-libs#604

🤖 Generated with Claude Code

@coderabbitai

coderabbitai Bot commented May 22, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 209cd01d-0e53-4379-a4e1-b36b677877a1

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/audit-middleware

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

gfyrag and others added 2 commits May 22, 2026 11:02
Wire go-libs/v5 audit middleware into the auth HTTP router and add
messaging infrastructure for audit event publishing.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The messagingfx module from go-libs/v5 requires a v5 logging.Logger
in the DI container. Auth uses go-libs/v3, so we provide one explicitly.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@gfyrag gfyrag force-pushed the feat/audit-middleware branch from ed0e234 to 93355f0 Compare May 22, 2026 09:03
@gfyrag gfyrag changed the base branch from main to chore/upgrade-go-libs-v5 May 22, 2026 09:03
@gfyrag gfyrag marked this pull request as ready for review May 22, 2026 09:33
@gfyrag gfyrag merged commit 93355f0 into chore/upgrade-go-libs-v5 May 22, 2026
6 checks passed
@gfyrag gfyrag deleted the feat/audit-middleware branch May 22, 2026 12:45
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.

3 participants