@geekmidas/cli 10.0.0-alpha.73 → 10.0.0-alpha.75
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/{LegacyStateStore-D_78eaHM.cjs → LegacyStateStore-BFnXUFlx.cjs} +2 -2
- package/dist/{LegacyStateStore-D_78eaHM.cjs.map → LegacyStateStore-BFnXUFlx.cjs.map} +1 -1
- package/dist/{LegacyStateStore-DTo7z924.mjs → LegacyStateStore-cpt3K1vx.mjs} +2 -2
- package/dist/{LegacyStateStore-DTo7z924.mjs.map → LegacyStateStore-cpt3K1vx.mjs.map} +1 -1
- package/dist/{LocalStateStore-CNjgkRk4.mjs → LocalStateStore-RH9F2ZEy.mjs} +2 -2
- package/dist/{LocalStateStore-CNjgkRk4.mjs.map → LocalStateStore-RH9F2ZEy.mjs.map} +1 -1
- package/dist/{LocalStateStore-BhrlQIXD.cjs → LocalStateStore-zQGZ9b4J.cjs} +2 -2
- package/dist/{LocalStateStore-BhrlQIXD.cjs.map → LocalStateStore-zQGZ9b4J.cjs.map} +1 -1
- package/dist/{S3StateStore-oCxRs6HM.cjs → S3StateStore-CT-ZMlQY.cjs} +2 -2
- package/dist/{S3StateStore-oCxRs6HM.cjs.map → S3StateStore-CT-ZMlQY.cjs.map} +1 -1
- package/dist/{S3StateStore-g2P7T_Mo.mjs → S3StateStore-DBeBc0c0.mjs} +2 -2
- package/dist/{S3StateStore-g2P7T_Mo.mjs.map → S3StateStore-DBeBc0c0.mjs.map} +1 -1
- package/dist/{SSMStateStore-DXp0m7XI.cjs → SSMStateStore-HmsH3c4v.cjs} +2 -2
- package/dist/{SSMStateStore-DXp0m7XI.cjs.map → SSMStateStore-HmsH3c4v.cjs.map} +1 -1
- package/dist/{SSMStateStore-CYenunmK.mjs → SSMStateStore-rnzNfOaV.mjs} +2 -2
- package/dist/{SSMStateStore-CYenunmK.mjs.map → SSMStateStore-rnzNfOaV.mjs.map} +1 -1
- package/dist/{SubscriberGenerator-DZk_pKDh.mjs → SubscriberGenerator-5looQ3gB.mjs} +18 -2
- package/dist/SubscriberGenerator-5looQ3gB.mjs.map +1 -0
- package/dist/{SubscriberGenerator-Bixm28fN.cjs → SubscriberGenerator-CajwOa5W.cjs} +29 -1
- package/dist/SubscriberGenerator-CajwOa5W.cjs.map +1 -0
- package/dist/{add-C1ojB2Yy.cjs → add-CHBin8TF.cjs} +2 -2
- package/dist/{add-C1ojB2Yy.cjs.map → add-CHBin8TF.cjs.map} +1 -1
- package/dist/{add-BiPlBUq3.mjs → add-Cvzdw8cf.mjs} +2 -2
- package/dist/{add-BiPlBUq3.mjs.map → add-Cvzdw8cf.mjs.map} +1 -1
- package/dist/{bundler-C35h0WKt.cjs → bundler-_8AEZhrs.cjs} +5 -5
- package/dist/{bundler-C35h0WKt.cjs.map → bundler-_8AEZhrs.cjs.map} +1 -1
- package/dist/{bundler-C2LZoLdP.mjs → bundler-xjp5RwRS.mjs} +5 -5
- package/dist/{bundler-C2LZoLdP.mjs.map → bundler-xjp5RwRS.mjs.map} +1 -1
- package/dist/{cli-DJVL2sL9.cjs → cli-B4ktxAsM.cjs} +3 -3
- package/dist/{cli-DJVL2sL9.cjs.map → cli-B4ktxAsM.cjs.map} +1 -1
- package/dist/{cli-BfdfyTF6.mjs → cli-BTGfA0B7.mjs} +3 -3
- package/dist/{cli-BfdfyTF6.mjs.map → cli-BTGfA0B7.mjs.map} +1 -1
- package/dist/{compose-9II-0IsK.mjs → compose-DdH2JQJD.mjs} +418 -159
- package/dist/compose-DdH2JQJD.mjs.map +1 -0
- package/dist/{compose-CNnw8meq.cjs → compose-UKyv_1yU.cjs} +440 -157
- package/dist/compose-UKyv_1yU.cjs.map +1 -0
- package/dist/{config-RLuR2o9A.d.cts → config-B38YWicj.d.cts} +3 -3
- package/dist/{config-B8OR_TrO.d.mts.map → config-B38YWicj.d.cts.map} +1 -1
- package/dist/{config-B8OR_TrO.d.mts → config-DA0kRTQe.d.mts} +3 -3
- package/dist/{config-RLuR2o9A.d.cts.map → config-DA0kRTQe.d.mts.map} +1 -1
- package/dist/config.d.cts +3 -3
- package/dist/config.d.mts +3 -3
- package/dist/deploy/public.cjs +7 -6
- package/dist/deploy/public.d.cts +14 -3
- package/dist/deploy/public.d.cts.map +1 -1
- package/dist/deploy/public.d.mts +14 -3
- package/dist/deploy/public.d.mts.map +1 -1
- package/dist/deploy/public.mjs +7 -7
- package/dist/{deploy-nmov4j0B.mjs → deploy-CuSsiFIc.mjs} +21 -5
- package/dist/deploy-CuSsiFIc.mjs.map +1 -0
- package/dist/{deploy-BitZLdnY.cjs → deploy-XUZoA1us.cjs} +26 -4
- package/dist/deploy-XUZoA1us.cjs.map +1 -0
- package/dist/{dokploy-Ce_VTytN.cjs → dokploy-Cvgg_pID.cjs} +2 -2
- package/dist/{dokploy-Ce_VTytN.cjs.map → dokploy-Cvgg_pID.cjs.map} +1 -1
- package/dist/{dokploy-CZ1vZt21.mjs → dokploy-DZXTQX10.mjs} +2 -2
- package/dist/{dokploy-CZ1vZt21.mjs.map → dokploy-DZXTQX10.mjs.map} +1 -1
- package/dist/drivers-BdvtCKc7.cjs +200 -0
- package/dist/drivers-BdvtCKc7.cjs.map +1 -0
- package/dist/drivers-Ch1rJitn.mjs +177 -0
- package/dist/drivers-Ch1rJitn.mjs.map +1 -0
- package/dist/{encryption-CmfPICSN.mjs → encryption-JkeMPugf.mjs} +2 -2
- package/dist/{encryption-CmfPICSN.mjs.map → encryption-JkeMPugf.mjs.map} +1 -1
- package/dist/{encryption-CDGRdcMr.cjs → encryption-w-Ehh9DW.cjs} +2 -2
- package/dist/{encryption-CDGRdcMr.cjs.map → encryption-w-Ehh9DW.cjs.map} +1 -1
- package/dist/{engine-B37qBO5W.mjs → engine-CmozkHxq.mjs} +192 -4
- package/dist/engine-CmozkHxq.mjs.map +1 -0
- package/dist/{engine-DL2-PW6m.cjs → engine-zpWBMsQq.cjs} +195 -7
- package/dist/engine-zpWBMsQq.cjs.map +1 -0
- package/dist/{github-C6qF8kHg.cjs → github-BGdJ-Lnm.cjs} +2 -2
- package/dist/{github-C6qF8kHg.cjs.map → github-BGdJ-Lnm.cjs.map} +1 -1
- package/dist/{github-hjHHm7jM.mjs → github-BNngHoId.mjs} +2 -2
- package/dist/{github-hjHHm7jM.mjs.map → github-BNngHoId.mjs.map} +1 -1
- package/dist/{index-DHyTqGG3.d.mts → index-B-1lLGzy.d.mts} +2 -2
- package/dist/{index-DHyTqGG3.d.mts.map → index-B-1lLGzy.d.mts.map} +1 -1
- package/dist/{index-Dg-UZ4Hm.d.cts → index-vMidfqhU.d.cts} +2 -2
- package/dist/{index-Dg-UZ4Hm.d.cts.map → index-vMidfqhU.d.cts.map} +1 -1
- package/dist/index.cjs +89 -52
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +86 -49
- package/dist/index.mjs.map +1 -1
- package/dist/{migrate-CFFC3esE.mjs → migrate-BLL1RTAj.mjs} +2 -2
- package/dist/{migrate-CFFC3esE.mjs.map → migrate-BLL1RTAj.mjs.map} +1 -1
- package/dist/{migrate-kA_j1TPK.cjs → migrate-CgjlYeun.cjs} +2 -2
- package/dist/{migrate-kA_j1TPK.cjs.map → migrate-CgjlYeun.cjs.map} +1 -1
- package/dist/openapi.d.cts +1 -1
- package/dist/openapi.d.mts +1 -1
- package/dist/{ready-BIuMw6wH.cjs → ready-BB9xS4S9.cjs} +6 -188
- package/dist/ready-BB9xS4S9.cjs.map +1 -0
- package/dist/{ready-C0U0NYfB.mjs → ready-ZZoNskrr.mjs} +5 -169
- package/dist/ready-ZZoNskrr.mjs.map +1 -0
- package/dist/reconcile/public.d.cts +1 -1
- package/dist/reconcile/public.d.mts +1 -1
- package/dist/{resolve-CV4eQkDa.mjs → resolve-DZNx7rLy.mjs} +3 -3
- package/dist/{resolve-CV4eQkDa.mjs.map → resolve-DZNx7rLy.mjs.map} +1 -1
- package/dist/{resolve-E5RfY0bm.cjs → resolve-fevXn-wZ.cjs} +3 -3
- package/dist/{resolve-E5RfY0bm.cjs.map → resolve-fevXn-wZ.cjs.map} +1 -1
- package/dist/{rollback-C-V-Rf4a.mjs → rollback-CLi5Pln_.mjs} +4 -4
- package/dist/{rollback-C-V-Rf4a.mjs.map → rollback-CLi5Pln_.mjs.map} +1 -1
- package/dist/{rollback-QGwomD64.cjs → rollback-Dw-FW3X2.cjs} +4 -4
- package/dist/{rollback-QGwomD64.cjs.map → rollback-Dw-FW3X2.cjs.map} +1 -1
- package/dist/{runtime-CWYLIeCU.d.mts → runtime-BzZD5HHi.d.cts} +2 -2
- package/dist/{runtime-CWYLIeCU.d.mts.map → runtime-BzZD5HHi.d.cts.map} +1 -1
- package/dist/{runtime-CmuQOT6A.d.cts → runtime-Cm6J6L7n.d.mts} +2 -2
- package/dist/{runtime-CmuQOT6A.d.cts.map → runtime-Cm6J6L7n.d.mts.map} +1 -1
- package/dist/{sniffer-BFmdZpZ2.mjs → sniffer-BmCvVyhq.mjs} +59 -7
- package/dist/sniffer-BmCvVyhq.mjs.map +1 -0
- package/dist/{sniffer-C-T7dSMN.cjs → sniffer-bMzrX4cO.cjs} +75 -5
- package/dist/{sniffer-C-T7dSMN.cjs.map → sniffer-bMzrX4cO.cjs.map} +1 -1
- package/dist/{state-DtS2HEfi.mjs → state-BrWIOce_.mjs} +60 -293
- package/dist/state-BrWIOce_.mjs.map +1 -0
- package/dist/{state-DMjFPOhf.cjs → state-kA4Fkufx.cjs} +70 -321
- package/dist/state-kA4Fkufx.cjs.map +1 -0
- package/dist/target/public.cjs +1 -1
- package/dist/target/public.d.cts +2 -2
- package/dist/target/public.d.mts +2 -2
- package/dist/target/public.mjs +1 -1
- package/dist/{types-BLdCL4fB.d.mts → types-Dp9lgx_S.d.mts} +6 -2
- package/dist/{types-BLdCL4fB.d.mts.map → types-Dp9lgx_S.d.mts.map} +1 -1
- package/dist/{types-DwCQCkC-.d.cts → types-TzCChNrA.d.cts} +6 -2
- package/dist/{types-DwCQCkC-.d.cts.map → types-TzCChNrA.d.cts.map} +1 -1
- package/dist/vitest.cjs +1 -1
- package/dist/vitest.mjs +1 -1
- package/dist/workspace/index.d.cts +2 -2
- package/dist/workspace/index.d.mts +2 -2
- package/package.json +17 -17
- package/dist/SubscriberGenerator-Bixm28fN.cjs.map +0 -1
- package/dist/SubscriberGenerator-DZk_pKDh.mjs.map +0 -1
- package/dist/compose-9II-0IsK.mjs.map +0 -1
- package/dist/compose-CNnw8meq.cjs.map +0 -1
- package/dist/deploy-BitZLdnY.cjs.map +0 -1
- package/dist/deploy-nmov4j0B.mjs.map +0 -1
- package/dist/engine-B37qBO5W.mjs.map +0 -1
- package/dist/engine-DL2-PW6m.cjs.map +0 -1
- package/dist/ready-BIuMw6wH.cjs.map +0 -1
- package/dist/ready-C0U0NYfB.mjs.map +0 -1
- package/dist/sniffer-BFmdZpZ2.mjs.map +0 -1
- package/dist/state-DMjFPOhf.cjs.map +0 -1
- package/dist/state-DtS2HEfi.mjs.map +0 -1
|
@@ -19,6 +19,58 @@ function normalizeRoutes(routes) {
|
|
|
19
19
|
return Array.isArray(routes) ? routes : [routes];
|
|
20
20
|
}
|
|
21
21
|
//#endregion
|
|
22
|
+
//#region src/secrets/encryption.ts
|
|
23
|
+
var encryption_exports = /* @__PURE__ */ require_rolldown_runtime.__exportAll({
|
|
24
|
+
encryptSecrets: () => encryptSecrets,
|
|
25
|
+
generateDefineOptions: () => generateDefineOptions,
|
|
26
|
+
keyFingerprint: () => keyFingerprint
|
|
27
|
+
});
|
|
28
|
+
/** AES-256-GCM configuration */
|
|
29
|
+
const ALGORITHM = "aes-256-gcm";
|
|
30
|
+
const KEY_LENGTH = 32;
|
|
31
|
+
const IV_LENGTH = 12;
|
|
32
|
+
/**
|
|
33
|
+
* Encrypt secrets for embedding in a bundle.
|
|
34
|
+
* Uses AES-256-GCM with a randomly generated ephemeral key.
|
|
35
|
+
*
|
|
36
|
+
* @param secrets - Key-value pairs to encrypt
|
|
37
|
+
* @returns Encrypted payload with ephemeral master key
|
|
38
|
+
*/
|
|
39
|
+
function encryptSecrets(secrets) {
|
|
40
|
+
const masterKey = (0, node_crypto.randomBytes)(KEY_LENGTH);
|
|
41
|
+
const iv = (0, node_crypto.randomBytes)(IV_LENGTH);
|
|
42
|
+
const plaintext = JSON.stringify(secrets);
|
|
43
|
+
const cipher = (0, node_crypto.createCipheriv)(ALGORITHM, masterKey, iv);
|
|
44
|
+
const ciphertext = Buffer.concat([cipher.update(plaintext, "utf-8"), cipher.final()]);
|
|
45
|
+
const authTag = cipher.getAuthTag();
|
|
46
|
+
return {
|
|
47
|
+
encrypted: Buffer.concat([ciphertext, authTag]).toString("base64"),
|
|
48
|
+
iv: iv.toString("hex"),
|
|
49
|
+
masterKey: masterKey.toString("hex")
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Generate the define options for tsdown/esbuild.
|
|
54
|
+
* These will be injected at build time.
|
|
55
|
+
*/
|
|
56
|
+
function generateDefineOptions(payload) {
|
|
57
|
+
return {
|
|
58
|
+
__GKM_ENCRYPTED_CREDENTIALS__: JSON.stringify(payload.encrypted),
|
|
59
|
+
__GKM_CREDENTIALS_IV__: JSON.stringify(payload.iv)
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* A short, one-way name for a master key: the first 8 hex characters of its
|
|
64
|
+
* SHA-256.
|
|
65
|
+
*
|
|
66
|
+
* Printed where the key itself used to be, so a person can tell which key a
|
|
67
|
+
* build used — and match it against the one they hold — without the output
|
|
68
|
+
* carrying a value that decrypts every secret of the stage.
|
|
69
|
+
*/
|
|
70
|
+
function keyFingerprint(masterKey) {
|
|
71
|
+
return (0, node_crypto.createHash)("sha256").update(masterKey).digest("hex").slice(0, 8);
|
|
72
|
+
}
|
|
73
|
+
//#endregion
|
|
22
74
|
//#region src/deploy/events.ts
|
|
23
75
|
/** An error as an event carries it: its name and message, nothing else. */
|
|
24
76
|
function eventError(error) {
|
|
@@ -353,17 +405,17 @@ function isStateStore(value) {
|
|
|
353
405
|
async function createStateStore(options) {
|
|
354
406
|
const { config, workspaceRoot, workspaceName } = options;
|
|
355
407
|
if (!config || config.provider === "local") {
|
|
356
|
-
const { LocalStateStore } = await Promise.resolve().then(() => require("./LocalStateStore-
|
|
408
|
+
const { LocalStateStore } = await Promise.resolve().then(() => require("./LocalStateStore-zQGZ9b4J.cjs")).then((n) => n.LocalStateStore_exports);
|
|
357
409
|
return new LocalStateStore(workspaceRoot);
|
|
358
410
|
}
|
|
359
411
|
if (isStateStore(config.provider)) return config.provider;
|
|
360
412
|
if (isStateProvider(config.provider)) {
|
|
361
|
-
const { LegacyStateStore } = await Promise.resolve().then(() => require("./LegacyStateStore-
|
|
413
|
+
const { LegacyStateStore } = await Promise.resolve().then(() => require("./LegacyStateStore-BFnXUFlx.cjs"));
|
|
362
414
|
return new LegacyStateStore(config.provider, { warn: options.warn });
|
|
363
415
|
}
|
|
364
416
|
if (config.provider === "ssm") {
|
|
365
417
|
if (!workspaceName) throw new StateStoreNeedsWorkspaceName("ssm");
|
|
366
|
-
const { SSMStateStore } = await Promise.resolve().then(() => require("./SSMStateStore-
|
|
418
|
+
const { SSMStateStore } = await Promise.resolve().then(() => require("./SSMStateStore-HmsH3c4v.cjs"));
|
|
367
419
|
const ssm = config;
|
|
368
420
|
return SSMStateStore.create({
|
|
369
421
|
workspaceName,
|
|
@@ -373,7 +425,7 @@ async function createStateStore(options) {
|
|
|
373
425
|
}
|
|
374
426
|
if (config.provider === "s3") {
|
|
375
427
|
if (!workspaceName) throw new StateStoreNeedsWorkspaceName("s3");
|
|
376
|
-
const { S3StateStore } = await Promise.resolve().then(() => require("./S3StateStore-
|
|
428
|
+
const { S3StateStore } = await Promise.resolve().then(() => require("./S3StateStore-CT-ZMlQY.cjs"));
|
|
377
429
|
const s3 = config;
|
|
378
430
|
return S3StateStore.create({
|
|
379
431
|
workspaceName,
|
|
@@ -1644,12 +1696,30 @@ Object.defineProperty(exports, "dokploy_api_exports", {
|
|
|
1644
1696
|
return dokploy_api_exports;
|
|
1645
1697
|
}
|
|
1646
1698
|
});
|
|
1699
|
+
Object.defineProperty(exports, "encryptSecrets", {
|
|
1700
|
+
enumerable: true,
|
|
1701
|
+
get: function() {
|
|
1702
|
+
return encryptSecrets;
|
|
1703
|
+
}
|
|
1704
|
+
});
|
|
1705
|
+
Object.defineProperty(exports, "encryption_exports", {
|
|
1706
|
+
enumerable: true,
|
|
1707
|
+
get: function() {
|
|
1708
|
+
return encryption_exports;
|
|
1709
|
+
}
|
|
1710
|
+
});
|
|
1647
1711
|
Object.defineProperty(exports, "eventError", {
|
|
1648
1712
|
enumerable: true,
|
|
1649
1713
|
get: function() {
|
|
1650
1714
|
return eventError;
|
|
1651
1715
|
}
|
|
1652
1716
|
});
|
|
1717
|
+
Object.defineProperty(exports, "keyFingerprint", {
|
|
1718
|
+
enumerable: true,
|
|
1719
|
+
get: function() {
|
|
1720
|
+
return keyFingerprint;
|
|
1721
|
+
}
|
|
1722
|
+
});
|
|
1653
1723
|
Object.defineProperty(exports, "newLockHolder", {
|
|
1654
1724
|
enumerable: true,
|
|
1655
1725
|
get: function() {
|
|
@@ -1669,4 +1739,4 @@ Object.defineProperty(exports, "sniffAppEnvironment", {
|
|
|
1669
1739
|
}
|
|
1670
1740
|
});
|
|
1671
1741
|
|
|
1672
|
-
//# sourceMappingURL=sniffer-
|
|
1742
|
+
//# sourceMappingURL=sniffer-bMzrX4cO.cjs.map
|