Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(webhooks): Always check for unsafe urls #18360

Merged
merged 5 commits into from
Nov 3, 2023
Merged

Conversation

timgl
Copy link
Collaborator

@timgl timgl commented Nov 2, 2023

Problem

We were only checking for unsafe urls on cloud, but we should probably check self hosted too

Changes

👉 Stay up-to-date with PostHog coding conventions for a smoother review.

How did you test this code?

@timgl timgl requested a review from Twixes November 2, 2023 18:10
@Twixes Twixes requested a review from a team November 3, 2023 11:46
@Twixes Twixes merged commit 22bd594 into master Nov 3, 2023
65 checks passed
@Twixes Twixes deleted the always-check-unsafe branch November 3, 2023 11:58
tomasfarias pushed a commit that referenced this pull request Nov 6, 2023
* fix(webhooks): Always check for unsafe urls

* Roll out the hostname guard fully

The mechanism is now only disabled in local dev.

* Update hooks.test.ts

* Disable URL check in functional tests

---------

Co-authored-by: Michael Matloka <[email protected]>
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.

3 participants