flagsmith icon indicating copy to clipboard operation
flagsmith copied to clipboard

Refactor feature change webhook into a proper audit-log based integration

Open Zaimwa9 opened this issue 8 months ago • 1 comments

Is your feature request related to a problem?

Context Feature change webhooks are events sent to environment webhooks and have a path and implementation on their own.

We also have audit webhooks that are subscribed to all audit log envents at the organisation level.

Some integrations are audit-log based and operate at project level, which include:

  • DataDog
  • Dynatrace
  • Grafana
  • New Relic
  • Sentry Change Tracking
  • Slack and organisation-level integrations that are also audit log based and sharing the same code paths.

The "audit log webhook" is currently neither and has a custom implementation.

All of this could lead to duplication of code execution.

Investigation Inventorize and estimate the possibility to refactor feature change audit/environment log into a proper audit log based integration

Describe the solution you'd like.

Webhook event triggering should be AuditLog based. The recording of a new AuditLog should be the entrypoint of sending environment-level webhook events

Describe alternatives you've considered

TBD

Additional context

No response

Zaimwa9 avatar Jun 19 '25 16:06 Zaimwa9

@matthewelwell

Zaimwa9 avatar Jun 20 '25 08:06 Zaimwa9