Skip to content

Give spooled violations an event id so retries are stored once - #171

Merged
cport1 merged 1 commit into
mainfrom
fix/violation-event-ids
Nov 27, 2026
Merged

cport1 merged 1 commit into
mainfrom
fix/violation-event-ids

Conversation

@cport1

@cport1 cport1 commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

Ingest now stores each violation event id once per organization (WebDecoy/app#2010, deployed). The plugin resends a spooled batch after a timeout even when ingest already saved it, so those retries were stored twice and could trip a second deny.

Each violation now gets eventId (wp_generate_uuid4) when it is spooled. The id lives in the stored payload, so every resend of the row carries the same id. Rows spooled before this release have no id and keep today's behavior.

Tests: 4 new in tests/ViolationEventIdTest.php (the source check fails when the stamping is removed); suite 319 passed; phpcs/phpstan clean. Not released: it can ride the next weekly release.

@cport1
cport1 merged commit bc42e2f into main Nov 27, 2026
5 checks passed
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.

1 participant