Skip to content

fix(database): create alert events/metas with owner on MySQL#4507

Open
pepordev wants to merge 1 commit into
crowdsecurity:masterfrom
pepordev:fix/mysql-appsec-alert-metas
Open

fix(database): create alert events/metas with owner on MySQL#4507
pepordev wants to merge 1 commit into
crowdsecurity:masterfrom
pepordev:fix/mysql-appsec-alert-metas

Conversation

@pepordev

Copy link
Copy Markdown

Pre-creating events/metas and linking via AddEvents/AddMetas fails on MySQL with alert_metas/alert_events constraint errors during AppSec alert ingestion. Insert each row with SetOwnerID after the alert is saved.

Fixes #4506

This has been tested in our environment

Pre-creating events/metas and linking via AddEvents/AddMetas fails on
MySQL with alert_metas/alert_events constraint errors during AppSec
alert ingestion. Insert each row with SetOwnerID after the alert is saved.

Signed-off-by: Pedro Parra Ortega <parraortega.pedro@gmail.com>
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.

MySQL: AppSec alert insert fails on O2M edge linking (alert_metas / alert_events)

1 participant