[GH-ISSUE #493] Integration: Webhook URL validation blocking Valid (for me) URLs #366

Closed
opened 2026-02-25 23:42:11 +03:00 by kerem · 2 comments
Owner

Originally created by @jamesbiederbeck on GitHub (Mar 12, 2021).
Original GitHub issue: https://github.com/healthchecks/healthchecks/issues/493

I'm hosting healtchecks in docker. I also hosting my notification service (gotify) in docker, meaning it can be reached with just the hostname of the container, no TLD ending. I'm trying to use the webhook integration to post notifications to it.

For various reasons, the easiest way to reach gotify, which is tightly firewalled, is by making a request to the URL http://gotify/somepath. Because the host portion of the url does not have a dot in it, it fails validation.

To state the problem differently, is there a way to not have to use a FQDN for the URL field in the webhook integration settings page?

Can this validation be relaxed, or otherwise bypassed?

Originally created by @jamesbiederbeck on GitHub (Mar 12, 2021). Original GitHub issue: https://github.com/healthchecks/healthchecks/issues/493 I'm hosting healtchecks in docker. I also hosting my notification service (gotify) in docker, meaning it can be reached with just the hostname of the container, no TLD ending. I'm trying to use the webhook integration to post notifications to it. For various reasons, the easiest way to reach gotify, which is tightly firewalled, is by making a request to the URL http://gotify/somepath. Because the host portion of the url does not have a dot in it, it fails validation. To state the problem differently, is there a way to not have to use a FQDN for the URL field in the webhook integration settings page? Can this validation be relaxed, or otherwise bypassed?
kerem closed this issue 2026-02-25 23:42:11 +03:00
Author
Owner

@cuu508 commented on GitHub (Mar 15, 2021):

Can this validation be relaxed, or otherwise bypassed?

One way to bypass the validation is to edit the URL in Django admin.

  1. In the "Add Webhook" form enter a valid, but wrong URL, e.g. https://example.org/somepath
  2. Go to /admin/api/channel/, and set the right URL there, it will let you save any URL you enter
<!-- gh-comment-id:799377730 --> @cuu508 commented on GitHub (Mar 15, 2021): > Can this validation be relaxed, or otherwise bypassed? One way to bypass the validation is to edit the URL in Django admin. 1. In the "Add Webhook" form enter a valid, but wrong URL, e.g. https://example.org/somepath 2. Go to `/admin/api/channel/`, and set the right URL there, it will let you save any URL you enter
Author
Owner

@jamesbiederbeck commented on GitHub (Mar 15, 2021):

Awesome thanks, @cuu508!

<!-- gh-comment-id:799561237 --> @jamesbiederbeck commented on GitHub (Mar 15, 2021): Awesome thanks, @cuu508!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/healthchecks#366
No description provided.