1
1
mirror of https://github.com/go-gitea/gitea synced 2024-11-18 08:04:25 +00:00
gitea/routers
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
..
admin Validate email before inserting/updating (#13475) (#13666) 2020-11-22 12:31:35 -05:00
api/v1 Add Allow-/Block-List for Migrate & Mirrors (#13610) (#13776) 2020-12-01 19:28:34 -05:00
dev Display ui time with customize time location (#7792) 2019-08-15 22:46:21 +08:00
events Add EventSource support (#11235) 2020-05-07 22:49:00 +01:00
org Set opengraph attributes on org pages (#12803) 2020-09-11 07:41:43 +01:00
private Fix a bug when check if owner is active (#13613) 2020-11-18 11:59:24 +02:00
repo ui: show 'owner' tag for real owner (#13689) (#13743) 2020-11-29 14:50:58 +02:00
routes Store task errors following migrations and display them (#13246) (#13287) 2020-10-24 13:02:36 +08:00
user Validate email before inserting/updating (#13475) (#13666) 2020-11-22 12:31:35 -05:00
utils Return the full rejection message and errors in flash errors (#13221) (#13237) 2020-10-21 14:54:19 -04:00
home.go Simplify CheckUnitUser logic (#12854) 2020-09-15 19:49:34 -04:00
init.go Add Allow-/Block-List for Migrate & Mirrors (#13610) (#13776) 2020-12-01 19:28:34 -05:00
install.go Update golangci-lint to version 1.31.0 (#13102) 2020-10-11 21:27:20 +01:00
metrics.go Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
swagger_json.go Add gitea-vet (#10948) 2020-04-05 07:20:50 +01:00