fusionauth-issues icon indicating copy to clipboard operation
fusionauth-issues copied to clipboard

Enable Lambdas to process events

Open tobias-blechmann-dumont opened this issue 2 years ago • 1 comments

Enable Lambdas to process events

Problem

I have a simple requirement, that i should notify an external system via an api call about a changing email address. The external system api (as other too) do not understand the format of the event json, thereby it is necessary to have a simple script running somewhere which receives the event (via webhook) and calls the external api.

Solution

It would be nice to just write a simple Lambda which receives the event and do business logic directly in the fusionauth instance.

Alternatives/workarounds

Write a simple script running somewhere receiving the events via webhook

Additional context

--

Related

  • https://github.com/FusionAuth/fusionauth-issues/issues/1914

Community guidelines

All issues filed in this repository must abide by the FusionAuth community guidelines.

How to vote

Please give us a thumbs up or thumbs down as a reaction to help us prioritize this feature. Feel free to comment if you have a particular need or comment on how this feature should work.

tobias-blechmann-dumont avatar Jul 06 '22 13:07 tobias-blechmann-dumont

Thanks for the issue @tobias-blechmann-dumont. The workaround is the currently intended implementation for this use case.

I suppose if we were to add something like this - it could be allow you to bind a Lambda to a webhook definition in place of the URL and a lambda would be the consumer of the event.

robotdan avatar Jul 06 '22 16:07 robotdan

Another good use case for this would be to send events to your SIEM. Most of these 3rd party systems allow for ingestion, but you need to mutate the event a bit to fit their schema.

If we had a lambda function we could use to emit events to 3rd party SIEM systems - the lambda could mutate the request body.

robotdan avatar Oct 11 '23 02:10 robotdan