-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
api/cannon: Re-fix local IP check with better error handling (#2124)
* Reapply "api: Enable local IP verification on webhooks (#2118)" (#2123) This reverts commit 5d92474. * api/cannon: Handle not found DNSs * api/cannon: Make DNS resolution errors non fatal * api/cannon: Handle IP hostnames gracefully * api/store: Avoid sql injection on webhook status update * [DEV] Add some debug logging * api/store: Fix updateStatus query Can't parametrize table name * Revert "[DEV] Add some debug logging" This reverts commit 39e9b14. * api: Handle localhost explicitly * api/store/updateStatus: Remove surrounding quotes on params * api/store: Add tests to local webhook logic * Optimize imports
- Loading branch information
Showing
4 changed files
with
222 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters