easy-cms 1.30.1 → 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 +1 -1
- package/dist/{chunk-HLBEIQSJ.js → chunk-5OVDGETV.js} +12 -0
- package/dist/index.js +1 -1
- package/package.json +4 -4
package/dist/bin.js
CHANGED
|
@@ -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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "easy-cms",
|
|
3
|
-
"version": "1.
|
|
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.
|
|
25
|
-
"@easy-cms/admin": "^1.
|
|
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.
|
|
28
|
+
"@easy-cms/db-sqlite": "^1.32.0"
|
|
29
29
|
},
|
|
30
30
|
"publishConfig": {
|
|
31
31
|
"access": "public"
|