0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-30 23:44:41 +01:00
gitea/modules/migrations
Norwin cb940c4312
Encrypt migration credentials at rest (#15895)
* encrypt migration credentials in task persistence

Not sure this is the best approach, we could encrypt the entire
`PayloadContent` instead. Also instead of clearing individual fields in
payload content, we could just delete the task once it has
(successfully) finished..?

* remove credentials of past migrations

* only run DB migration for completed tasks

* fix binding

* add omitempty

* never serialize unencrypted credentials

* fix import order

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2021-05-31 04:25:47 -04:00
..
base Encrypt migration credentials at rest (#15895) 2021-05-31 04:25:47 -04:00
dump.go Move restore repo to internal router and invoke from command to avoid open the same db file or queues files (#15790) 2021-05-10 15:57:45 +08:00
error.go Add support to migrate from gogs (#14342) 2021-01-21 20:33:58 +01:00
git.go Add support to migrate from gogs (#14342) 2021-01-21 20:33:58 +01:00
gitea_downloader.go [Vendor] update gitea-sdk v0.14.0 (#15103) 2021-03-22 18:03:18 +01:00
gitea_downloader_test.go Gitea 2 Gitea migration (#12657) 2020-10-14 07:06:00 +03:00
gitea_uploader.go Fix get tag when migration (#16014) 2021-05-29 16:04:58 -04:00
gitea_uploader_test.go Dump github/gitlab/gitea repository data to a local directory and restore to gitea (#12244) 2020-12-27 11:34:19 +08:00
github.go GitHub: migrate draft releases too (#15884) 2021-05-15 18:37:17 -04:00
github_test.go Gitea 2 Gitea migration (#12657) 2020-10-14 07:06:00 +03:00
gitlab.go Add support to migrate from gogs (#14342) 2021-01-21 20:33:58 +01:00
gitlab_test.go Gitea 2 Gitea migration (#12657) 2020-10-14 07:06:00 +03:00
gogs.go Add support to migrate from gogs (#14342) 2021-01-21 20:33:58 +01:00
gogs_test.go Add support to migrate from gogs (#14342) 2021-01-21 20:33:58 +01:00
main_test.go
migrate.go Add LFS Migration and Mirror (#14726) 2021-04-08 18:25:57 -04:00
migrate_test.go Do not convert file path to lowercase (#15023) 2021-03-18 13:58:47 +00:00
restore.go Fix repo-restore bug with poster not replaced (#14759) 2021-02-22 11:57:41 +08:00
update.go