easy-cms 1.31.0 → 1.32.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bin.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  run
4
- } from "./chunk-HLBEIQSJ.js";
4
+ } from "./chunk-5OVDGETV.js";
5
5
 
6
6
  // src/bin.ts
7
7
  process.exitCode = await run(process.argv.slice(2));
@@ -212,6 +212,7 @@ Commands:
212
212
  jobs:run Run due scheduled publishes, jobs, webhook and email retries (also: run-scheduled)
213
213
  search:reindex [slug] Build the search index again from the database
214
214
  audit:resign After a new secret: sign the audit log with it
215
+ secrets:rotate After a new secret: encrypt the Integrations' connections with it
215
216
  backup <file> Copy the database to a SQLite file while the CMS runs
216
217
  backup:decrypt <file> Decrypt a backup made with backups.encryptionKey
217
218
  copy --from <config> Copy all content from another config's database into this one
@@ -433,6 +434,17 @@ async function run(argv, io = defaultIO) {
433
434
  );
434
435
  return 1;
435
436
  }
437
+ case "secrets:rotate": {
438
+ if (cms.config.integrations.length === 0) {
439
+ io.out("No integrations in the config: nothing to encrypt again.");
440
+ return 0;
441
+ }
442
+ const { resealed } = await cms.integrations.rotate();
443
+ io.out(
444
+ `${resealed} connections encrypted with the current secret. previousSecrets can go once every server runs with it.`
445
+ );
446
+ return 0;
447
+ }
436
448
  case "search:reindex": {
437
449
  if (!cms.config.search) {
438
450
  io.err("Set `search` in the config first, e.g. search: memorySearch().");
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  createStandaloneHandler,
3
3
  run,
4
4
  startServer
5
- } from "./chunk-HLBEIQSJ.js";
5
+ } from "./chunk-5OVDGETV.js";
6
6
  export {
7
7
  createStandaloneHandler,
8
8
  run,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easy-cms",
3
- "version": "1.31.0",
3
+ "version": "1.32.0",
4
4
  "description": "Command line tool for Easy CMS",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -21,11 +21,11 @@
21
21
  "node": ">=22.12"
22
22
  },
23
23
  "dependencies": {
24
- "@easy-cms/core": "^1.31.0",
25
- "@easy-cms/admin": "^1.31.0"
24
+ "@easy-cms/core": "^1.32.0",
25
+ "@easy-cms/admin": "^1.32.0"
26
26
  },
27
27
  "devDependencies": {
28
- "@easy-cms/db-sqlite": "^1.31.0"
28
+ "@easy-cms/db-sqlite": "^1.32.0"
29
29
  },
30
30
  "publishConfig": {
31
31
  "access": "public"