Implement Discord webhook delivery #59

Merged
Twyco merged 3 commits from codex/v0.5-webhook-notification/05-discord-webhook-delivery into main 2026-04-24 16:50:18 +00:00
Owner
No description provided.
Twyco changed target branch from codex/v0.5-webhook-notification/04-generic-webhook-delivery to main 2026-04-24 16:39:01 +00:00
Twyco added 1 commit 2026-04-24 16:39:01 +00:00
Koda requested changes 2026-04-24 16:41:01 +00:00
Koda left a comment
Contributor

Thanks for the implementation — webhook and Discord delivery paths are well covered by tests. I left one should-fix issue inline (mention injection risk in Discord payloads).\n\nBuckets:\n- Blocker: none\n- Should fix: 1\n- Nit/Optional: none

Thanks for the implementation — webhook and Discord delivery paths are well covered by tests. I left one should-fix issue inline (mention injection risk in Discord payloads).\n\nBuckets:\n- Blocker: none\n- Should fix: 1\n- Nit/Optional: none
@@ -229,0 +271,4 @@
->connectTimeout(5)
->timeout(10)
->post($notificationAction->delivery_url, [
'content' => $message,
Contributor

Should fix: Discord receives rendered ticket data from user-controlled fields ($ticket_title, $project_name, $actor_name) as raw content. Without allowed_mentions, values like @everyone / <@&role> will create real pings and enable mention-spam. Please include an explicit allowed_mentions policy (for example { "parse": [] }) or sanitize mention tokens before sending.

**Should fix:** Discord receives rendered ticket data from user-controlled fields (`$ticket_title`, `$project_name`, `$actor_name`) as raw `content`. Without `allowed_mentions`, values like `@everyone` / `<@&role>` will create real pings and enable mention-spam. Please include an explicit `allowed_mentions` policy (for example `{ "parse": [] }`) or sanitize mention tokens before sending.
Contributor

Here is the improvements PR: OpenSource/KanbanGit#61

Here is the improvements PR: https://git.twyco.de/OpenSource/KanbanGit/pulls/61
Twyco added 2 commits 2026-04-24 16:50:10 +00:00
Twyco merged commit 32edc255a3 into main 2026-04-24 16:50:18 +00:00
Twyco deleted branch codex/v0.5-webhook-notification/05-discord-webhook-delivery 2026-04-24 16:50:18 +00:00
Sign in to join this conversation.
No Reviewers
No labels
3 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: PetschStudios/KanbanGit#59