Skip to content

Conversation

pksunkara
Copy link
Member

Fixes PRO-261

Copy link

linear bot commented Jul 2, 2025

@pksunkara pksunkara merged commit 3f6d524 into master Jul 2, 2025
2 checks passed
@pksunkara pksunkara deleted the pavan/events branch July 2, 2025 14:41
Comment on lines +24 to +28
body = json.loads(payload)

# Skip if not `task.created` event
if "type" not in body or body["type"] != "task.created":
return Response(status_code=204)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The webhook signature verification should be performed before examining the event type. For security reasons, it's important to authenticate all incoming requests first before processing their content. Consider moving the event type check after line 31 where the signature has been verified. This ensures that only authenticated requests are processed, even if they're ultimately filtered out by event type.

Spotted by Diamond

Is this helpful? React 👍 or 👎 to let us know.

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