forgejo/routers/api/v1/repo
6543 b2435af9be
Add Allow-/Block-List for Migrate & Mirrors (#13610)
* add black list and white list support for migrating repositories

* fix fmt

* fix lint

* fix vendor

* fix modules.txt

* clean diff

* 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

* fix lint

* use proposed-upstream func to detect private IP addr

* a nit

* 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>
2020-11-28 19:37:58 -05:00
..
blob.go
branch.go Add block on official review requests branch protection (#13705) 2020-11-28 21:30:46 +02:00
collaborators.go
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
git_ref.go
hook.go Refactor: move Commit To APIFormat Code & Lot of StopWatch related things (#12729) 2020-09-18 20:09:26 +08:00
hook_test.go
issue.go [API] Add more filters to issues search (#13514) 2020-11-23 20:49:36 +00:00
issue_comment.go API: Fix GetQueryBeforeSince (#13559) 2020-11-14 14:05:40 +00:00
issue_label.go
issue_reaction.go Issue comment reactions should also check pull type (#13349) 2020-10-29 20:48:07 +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 [Refactor] Move APIFormat functions into convert package (#12856) 2020-10-17 00:23:08 -04:00
issue_tracked_time.go API: Fix GetQueryBeforeSince (#13559) 2020-11-14 14:05:40 +00: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
main_test.go
migrate.go Add Allow-/Block-List for Migrate & Mirrors (#13610) 2020-11-28 19:37:58 -05:00
milestone.go Not using "ctx.ServerError" in api (#12907) 2020-09-20 21:20:14 +01:00
mirror.go
pull.go Deny wrong pull (#13308) 2020-10-26 11:05:27 +02:00
pull_review.go Add review request api (#11355) 2020-10-20 14:18:25 -04:00
release.go [Refactor] Move APIFormat functions into convert package (#12856) 2020-10-17 00:23:08 -04:00
release_attachment.go [Refactor] Move APIFormat functions into convert package (#12856) 2020-10-17 00:23:08 -04:00
release_tags.go Delete tag API (#13358) 2020-10-30 20:56:34 -05:00
repo.go Add IsTemplate option in create repo ui and api (#12942) 2020-09-25 13:18:37 +08:00
repo_test.go
star.go
status.go [Refactor] Move APIFormat functions into convert package (#12856) 2020-10-17 00:23:08 -04:00
subscriber.go
tag.go
topic.go
transfer.go Fix bug preventing transfer to private organization (#12497) 2020-08-16 16:27:08 -04:00
tree.go