Encryption: CLI rollback command (#43935)

* Encryption: CLI rollback command

* Update flag reference to 'featuremgmt' pkg

* Update feature toggles usage

* Clean up data keys table after envelope encryption rollback
This commit is contained in:
Joan López de la Franca Beltran
2022-02-03 07:19:18 +01:00
committed by GitHub
parent ce4d8646fd
commit f8105efff3
4 changed files with 238 additions and 12 deletions

View File

@@ -183,6 +183,11 @@ var adminCommands = []*cli.Command{
Usage: "Re-encrypts secrets by decrypting and re-encrypting them with the currently configured encryption. Returns ok unless there is an error. Safe to execute multiple times.",
Action: runRunnerCommand(secretsmigrations.ReEncryptSecrets),
},
{
Name: "rollback",
Usage: "Rolls back secrets to legacy encryption. Returns ok unless there is an error. Safe to execute multiple times.",
Action: runRunnerCommand(secretsmigrations.RollBackSecrets),
},
},
},
}