1
1
mirror of https://github.com/go-gitea/gitea synced 2024-12-26 02:24:27 +00:00
gitea/routers/api/v1/repo
6543 07629bd55c
Add Allow-/Block-List for Migrate & Mirrors (#13610) (#13776)
* add black list and white list support for migrating repositories

* specify log message

* use blocklist/allowlist

* allways use lowercase to match url

* Apply allow/block

* Settings: use existing "migrations" section

* convert domains lower case

* dont store unused value

* Block private addresses for migration by default

* use proposed-upstream func to detect private IP addr

* add own error for blocked migration, add tests, imprufe api

* fix test

* fix-if-localhost-is-ipv4

* rename error & error message

* rename setting options

* Apply suggestions from code review

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
2020-12-01 19:28:34 -05:00
..
blob.go Swagger info corrections (#9441) 2019-12-20 19:07:12 +02:00
branch.go [API] Only Return Json (#13511) (#13565) 2020-11-15 16:29:16 +00:00
collaborators.go Remove page size limit comment from swagger (#11806) 2020-06-09 00:57:38 -04:00
commits.go Not using "ctx.ServerError" in api (#12907) 2020-09-20 21:20:14 +01:00
file.go Add better Swagger description and a example for GetArchive (#12743) 2020-09-06 12:23:47 -04:00
fork.go Not using "ctx.ServerError" in api (#12907) 2020-09-20 21:20:14 +01:00
git_hook.go Swagger info corrections (#9441) 2019-12-20 19:07:12 +02:00
git_ref.go Swagger info corrections (#9441) 2019-12-20 19:07:12 +02:00
hook_test.go API endpoint for testing webhook (#3550) 2018-04-29 14:21:33 +08:00
hook.go Refactor: move Commit To APIFormat Code & Lot of StopWatch related things (#12729) 2020-09-18 20:09:26 +08:00
issue_comment.go API: Fix GetQueryBeforeSince (#13561) 2020-11-19 02:21:21 +00:00
issue_label.go Add Organization Wide Labels (#10814) 2020-04-01 01:14:46 -03:00
issue_reaction.go And there is another one ... (#13350) 2020-10-29 20:48:58 +08:00
issue_stopwatch.go Refactor: move Commit To APIFormat Code & Lot of StopWatch related things (#12729) 2020-09-18 20:09:26 +08:00
issue_subscription.go Remove page size limit comment from swagger (#11806) 2020-06-09 00:57:38 -04:00
issue_tracked_time.go API: Fix GetQueryBeforeSince (#13561) 2020-11-19 02:21:21 +00:00
issue.go Fixed count of filtered issues when api request. (#12275) 2020-09-24 19:30:40 -04:00
key.go Improve error feedback for duplicate deploy keys (#13112) 2020-10-12 14:44:56 +01:00
label.go Not using "ctx.ServerError" in api (#12907) 2020-09-20 21:20:14 +01:00
language.go Add language statistics API endpoint (#11737) 2020-06-07 14:48:41 +03:00
main_test.go API endpoint for testing webhook (#3550) 2018-04-29 14:21:33 +08:00
migrate.go Add Allow-/Block-List for Migrate & Mirrors (#13610) (#13776) 2020-12-01 19:28:34 -05:00
milestone.go Not using "ctx.ServerError" in api (#12907) 2020-09-20 21:20:14 +01:00
mirror.go Refactor api repo dir (#10048) 2020-01-29 13:55:23 +08:00
pull_review.go Not using "ctx.ServerError" in api (#12907) 2020-09-20 21:20:14 +01:00
pull.go Deny wrong pull (#13308) (#13326) 2020-10-27 16:26:07 -04:00
release_attachment.go Attachments: Add extension support, allow all types for releases (#12465) 2020-10-05 01:49:33 -04:00
release_tags.go API: Get release by tags endpoint (#12932) 2020-09-25 20:11:43 +01:00
release.go API: GetReleaseByID return 404 if not found (#12933) 2020-09-24 18:36:56 -04:00
repo_test.go Fixes #5960 - Adds API Endpoint for Repo Edit (#7006) 2019-05-30 11:09:05 -04:00
repo.go Add IsTemplate option in create repo ui and api (#12942) 2020-09-25 13:18:37 +08:00
star.go Remove page size limit comment from swagger (#11806) 2020-06-09 00:57:38 -04:00
status.go Add Access-Control-Expose-Headers (#12446) 2020-08-13 18:18:18 +01:00
subscriber.go Remove page size limit comment from swagger (#11806) 2020-06-09 00:57:38 -04:00
tag.go [API] enable paggination for ListRepoTags (#10454) 2020-02-25 14:07:07 -05:00
topic.go Remove page size limit comment from swagger (#11806) 2020-06-09 00:57:38 -04:00
transfer.go Fix bug preventing transfer to private organization (#12497) 2020-08-16 16:27:08 -04:00
tree.go Remove page size limit comment from swagger (#11806) 2020-06-09 00:57:38 -04:00