From 3ff2e90cd3289415a1a49ec235f05523b0f2ec34 Mon Sep 17 00:00:00 2001 From: Gao Sun Date: Mon, 7 Nov 2022 16:53:08 +0800 Subject: [PATCH] chore: add changeset for rotate via CLI --- .changeset/unlucky-lizards-agree.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .changeset/unlucky-lizards-agree.md diff --git a/.changeset/unlucky-lizards-agree.md b/.changeset/unlucky-lizards-agree.md new file mode 100644 index 000000000..3e5bf43eb --- /dev/null +++ b/.changeset/unlucky-lizards-agree.md @@ -0,0 +1,13 @@ +--- +"@logto/cli": minor +--- + +## CLI + +### Rotate your private or secret key + +Add a new command `db config rotate ` to support key rotation via CLI. + +When rotating, the CLI will generate a new key and prepend to the corresponding key array. Thus the old key is still valid and the serivce will use the new key for signing. + +Run `logto db config rotate help` for detailed usage.