forgejo/modules/migrations
zeripath 544ef7d394
Encrypt migration credentials at rest (#15895) (#16187)
Backport #15895

Storing these credentials is a liability.

* Encrypt credentials with SECRET_KEY before persisting to task queue table (they need to be persisted due to the nature of the task queue)
  - security in depth: helps when attacker has access to DB only, but not app.ini
* Delete all credentials (even encrypted) from the task table, once the migration is done, for safety
  - security in depth: minimizes leaked data if attacker gains access to snapshot of both DB and app.ini
2021-06-17 22:59:28 +02:00
..
base Encrypt migration credentials at rest (#15895) (#16187) 2021-06-17 22:59:28 +02:00
dump.go Move restore repo to internal router and invoke from command to avoid open the same db file or queues files (#15790) (#15816) 2021-05-10 21:14:59 +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) (#15107) 2021-03-23 10:10:32 +00:00
gitea_downloader_test.go Gitea 2 Gitea migration (#12657) 2020-10-14 07:06:00 +03:00
gitea_uploader.go GitHub: migrate draft releases too (#15884) (#15888) 2021-05-16 09:24:28 +02: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) (#15888) 2021-05-16 09:24:28 +02: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 Improve migrations to support migrating milestones/labels/issues/comments/pullrequests (#6290) 2019-05-07 09:12:51 +08:00
migrate.go Do not convert file path to lowercase (#15023) 2021-03-18 13:58:47 +00: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 Refactor Cron and merge dashboard tasks (#10745) 2020-05-16 19:31:38 -04:00