1
1
mirror of https://github.com/go-gitea/gitea synced 2025-01-24 16:44:28 +00:00
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
..
2021-05-16 19:58:26 +08:00
2020-06-15 16:46:01 -04:00
2021-04-19 18:25:08 -04:00
2020-04-05 07:20:50 +01:00
2019-12-15 16:57:34 -05:00
2021-04-05 08:41:22 +01:00
2020-04-05 07:20:50 +01:00
2021-04-19 18:25:08 -04:00
2021-05-01 22:51:03 -04:00
2020-04-05 07:20:50 +01:00
2020-08-16 23:07:38 -04:00
2020-03-02 00:05:44 +02:00
2020-04-05 07:20:50 +01:00
2019-06-12 15:41:28 -04:00