1
1
mirror of https://github.com/go-gitea/gitea synced 2024-12-26 18:44:27 +00:00
gitea/services/webhook
wxiaoguang 20ae184967
Only allow webhook to send requests to allowed hosts (#17482) (#17510)
Backport #17482

* Only allow webhook to send requests to allowed hosts (backport #17482)

* use ALLOWED_HOST_LIST=* for default to keep the legacy behavior in 1.15.x
2021-11-06 09:23:43 +00:00
..
deliver_test.go Move webhook type from int to string (#13664) 2020-12-08 11:41:14 +01:00
deliver.go Only allow webhook to send requests to allowed hosts (#17482) (#17510) 2021-11-06 09:23:43 +00:00
dingtalk_test.go Add tests for all webhooks (#16214) 2021-06-20 22:12:19 -04:00
dingtalk.go Refactor Webhook + Add X-Hub-Signature (#16176) 2021-06-27 20:21:09 +01:00
discord_test.go Add tests for all webhooks (#16214) 2021-06-20 22:12:19 -04:00
discord.go Refactor Webhook + Add X-Hub-Signature (#16176) 2021-06-27 20:21:09 +01:00
feishu_test.go Add tests for all webhooks (#16214) 2021-06-20 22:12:19 -04:00
feishu.go Refactor Webhook + Add X-Hub-Signature (#16176) 2021-06-27 20:21:09 +01:00
general_test.go Add tests for all webhooks (#16214) 2021-06-20 22:12:19 -04:00
general.go Add tests for all webhooks (#16214) 2021-06-20 22:12:19 -04:00
main_test.go Move webhook type from int to string (#13664) 2020-12-08 11:41:14 +01:00
matrix_test.go Refactor Webhook + Add X-Hub-Signature (#16176) 2021-06-27 20:21:09 +01:00
matrix.go Refactor Webhook + Add X-Hub-Signature (#16176) 2021-06-27 20:21:09 +01:00
msteams_test.go Add tests for all webhooks (#16214) 2021-06-20 22:12:19 -04:00
msteams.go Refactor Webhook + Add X-Hub-Signature (#16176) 2021-06-27 20:21:09 +01:00
payloader.go Move webhook type from int to string (#13664) 2020-12-08 11:41:14 +01:00
slack_test.go Add tests for all webhooks (#16214) 2021-06-20 22:12:19 -04:00
slack.go Refactor Webhook + Add X-Hub-Signature (#16176) 2021-06-27 20:21:09 +01:00
telegram_test.go Add tests for all webhooks (#16214) 2021-06-20 22:12:19 -04:00
telegram.go Refactor Webhook + Add X-Hub-Signature (#16176) 2021-06-27 20:21:09 +01:00
webhook_test.go Move webhook type from int to string (#13664) 2020-12-08 11:41:14 +01:00
webhook.go Refactor Webhook + Add X-Hub-Signature (#16176) 2021-06-27 20:21:09 +01:00