@geekmidas/cli 10.0.0-alpha.166 → 10.0.0-alpha.167
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/{GoDaddyProvider-mnY-cdD2.mjs → GoDaddyProvider-Dci0SlN5.mjs} +2 -2
- package/dist/{GoDaddyProvider-mnY-cdD2.mjs.map → GoDaddyProvider-Dci0SlN5.mjs.map} +1 -1
- package/dist/{GoDaddyProvider-DClFHezd.cjs → GoDaddyProvider-o6DJAsBZ.cjs} +2 -2
- package/dist/{GoDaddyProvider-DClFHezd.cjs.map → GoDaddyProvider-o6DJAsBZ.cjs.map} +1 -1
- package/dist/{HostingerProvider-BMyz2LnZ.cjs → HostingerProvider-BzHPhONW.cjs} +2 -2
- package/dist/{HostingerProvider-BMyz2LnZ.cjs.map → HostingerProvider-BzHPhONW.cjs.map} +1 -1
- package/dist/{HostingerProvider-39eSGyBa.mjs → HostingerProvider-Dd5x1zvF.mjs} +2 -2
- package/dist/{HostingerProvider-39eSGyBa.mjs.map → HostingerProvider-Dd5x1zvF.mjs.map} +1 -1
- package/dist/{LegacyStateStore-B2TBaSMq.mjs → LegacyStateStore-CpF6rmZc.mjs} +2 -2
- package/dist/{LegacyStateStore-B2TBaSMq.mjs.map → LegacyStateStore-CpF6rmZc.mjs.map} +1 -1
- package/dist/{LegacyStateStore-BJY7ntQk.cjs → LegacyStateStore-tqY0hM8z.cjs} +2 -2
- package/dist/{LegacyStateStore-BJY7ntQk.cjs.map → LegacyStateStore-tqY0hM8z.cjs.map} +1 -1
- package/dist/{LocalStateStore-8LFd-aMA.mjs → LocalStateStore-Adp96xPy.mjs} +2 -2
- package/dist/{LocalStateStore-8LFd-aMA.mjs.map → LocalStateStore-Adp96xPy.mjs.map} +1 -1
- package/dist/{LocalStateStore-BvoEjPi5.cjs → LocalStateStore-BYMUEGZN.cjs} +2 -2
- package/dist/{LocalStateStore-BvoEjPi5.cjs.map → LocalStateStore-BYMUEGZN.cjs.map} +1 -1
- package/dist/{S3StateStore-DMzsqfSa.mjs → S3StateStore-13Go3hfM.mjs} +4 -4
- package/dist/{S3StateStore-DMzsqfSa.mjs.map → S3StateStore-13Go3hfM.mjs.map} +1 -1
- package/dist/{S3StateStore-eeA5NXRa.cjs → S3StateStore-DjXyhGIP.cjs} +4 -4
- package/dist/{S3StateStore-eeA5NXRa.cjs.map → S3StateStore-DjXyhGIP.cjs.map} +1 -1
- package/dist/{SSMStateStore-CE2DTAtT.mjs → SSMStateStore-CQHUyH-c.mjs} +2 -2
- package/dist/{SSMStateStore-CE2DTAtT.mjs.map → SSMStateStore-CQHUyH-c.mjs.map} +1 -1
- package/dist/{SSMStateStore-BUv-du0T.cjs → SSMStateStore-DspMPho-.cjs} +2 -2
- package/dist/{SSMStateStore-BUv-du0T.cjs.map → SSMStateStore-DspMPho-.cjs.map} +1 -1
- package/dist/{add-Dp0KQNkQ.cjs → add-DsxJ0Knr.cjs} +6 -6
- package/dist/{add-Dp0KQNkQ.cjs.map → add-DsxJ0Knr.cjs.map} +1 -1
- package/dist/{add-BgCYGJpE.mjs → add-Dt8QKSOw.mjs} +6 -6
- package/dist/{add-BgCYGJpE.mjs.map → add-Dt8QKSOw.mjs.map} +1 -1
- package/dist/{apps-DkMR-qvD.cjs → apps-C6s-trVp.cjs} +66 -12
- package/dist/apps-C6s-trVp.cjs.map +1 -0
- package/dist/{apps-CJTOIaz3.mjs → apps-w2sRQKCr.mjs} +66 -13
- package/dist/apps-w2sRQKCr.mjs.map +1 -0
- package/dist/{bundler-CA7KimJ0.cjs → bundler-AzkSRAuu.cjs} +6 -6
- package/dist/{bundler-CA7KimJ0.cjs.map → bundler-AzkSRAuu.cjs.map} +1 -1
- package/dist/{bundler-Dt1ffXl6.mjs → bundler-BCWWne6N.mjs} +6 -6
- package/dist/{bundler-Dt1ffXl6.mjs.map → bundler-BCWWne6N.mjs.map} +1 -1
- package/dist/{cli-C-fdEb8N.mjs → cli-DSGw0Mw-.mjs} +4 -4
- package/dist/{cli-C-fdEb8N.mjs.map → cli-DSGw0Mw-.mjs.map} +1 -1
- package/dist/{cli-CY1Cp8yN.cjs → cli-OGss08bZ.cjs} +4 -4
- package/dist/{cli-CY1Cp8yN.cjs.map → cli-OGss08bZ.cjs.map} +1 -1
- package/dist/{compose-BIm9yNH7.cjs → compose-BqTuzitb.cjs} +5 -5
- package/dist/{compose-BIm9yNH7.cjs.map → compose-BqTuzitb.cjs.map} +1 -1
- package/dist/{compose-tX6YTa1U.mjs → compose-Csegtvq_.mjs} +62 -9
- package/dist/compose-Csegtvq_.mjs.map +1 -0
- package/dist/{compose-SmuCWWUh.cjs → compose-QSBmhr4V.cjs} +73 -8
- package/dist/compose-QSBmhr4V.cjs.map +1 -0
- package/dist/{compose-CZGeE6QJ.mjs → compose-RhuFQmZS.mjs} +5 -5
- package/dist/{compose-CZGeE6QJ.mjs.map → compose-RhuFQmZS.mjs.map} +1 -1
- package/dist/config.cjs +1 -1
- package/dist/config.mjs +1 -1
- package/dist/{credentials-CS3Dr-pv.cjs → credentials-CORvhcrO.cjs} +6 -6
- package/dist/{credentials-CS3Dr-pv.cjs.map → credentials-CORvhcrO.cjs.map} +1 -1
- package/dist/{credentials-V3WgiKmZ.mjs → credentials-D4DUPPPP.mjs} +6 -6
- package/dist/{credentials-V3WgiKmZ.mjs.map → credentials-D4DUPPPP.mjs.map} +1 -1
- package/dist/deploy/public.cjs +11 -11
- package/dist/deploy/public.d.cts.map +1 -1
- package/dist/deploy/public.d.mts.map +1 -1
- package/dist/deploy/public.mjs +11 -11
- package/dist/{deploy--ia-CGMv.cjs → deploy-BwJ7uWXd.cjs} +107 -22
- package/dist/deploy-BwJ7uWXd.cjs.map +1 -0
- package/dist/{deploy-BWFFSN5p.mjs → deploy-DDfnQm8l.mjs} +107 -22
- package/dist/deploy-DDfnQm8l.mjs.map +1 -0
- package/dist/{destroy-ZNiKL3--.mjs → destroy-DKt8S051.mjs} +9 -9
- package/dist/{destroy-ZNiKL3--.mjs.map → destroy-DKt8S051.mjs.map} +1 -1
- package/dist/{destroy-CrxF8Dlk.cjs → destroy-nTNRfdy6.cjs} +9 -9
- package/dist/{destroy-CrxF8Dlk.cjs.map → destroy-nTNRfdy6.cjs.map} +1 -1
- package/dist/{docker-BtUjo-J_.cjs → docker-Dy1ZJUzV.cjs} +11 -7
- package/dist/docker-Dy1ZJUzV.cjs.map +1 -0
- package/dist/{docker-DhmU416x.mjs → docker-Ele34O8z.mjs} +12 -8
- package/dist/{docker-DhmU416x.mjs.map → docker-Ele34O8z.mjs.map} +1 -1
- package/dist/{dokploy-BszAUbbA.mjs → dokploy-BrfA2m5K.mjs} +2 -2
- package/dist/{dokploy-BszAUbbA.mjs.map → dokploy-BrfA2m5K.mjs.map} +1 -1
- package/dist/{dokploy-ComPiFLl.cjs → dokploy-DN2W1YIH.cjs} +2 -2
- package/dist/{dokploy-ComPiFLl.cjs.map → dokploy-DN2W1YIH.cjs.map} +1 -1
- package/dist/{eas-zxVAWY6c.cjs → eas-BRBdxmwe.cjs} +3 -3
- package/dist/{eas-zxVAWY6c.cjs.map → eas-BRBdxmwe.cjs.map} +1 -1
- package/dist/{eas-DQudP2g2.mjs → eas-CO3ogve5.mjs} +3 -3
- package/dist/{eas-DQudP2g2.mjs.map → eas-CO3ogve5.mjs.map} +1 -1
- package/dist/{encryption-CU5O0Y61.cjs → encryption-BZ1zgtF5.cjs} +3 -3
- package/dist/{encryption-CU5O0Y61.cjs.map → encryption-BZ1zgtF5.cjs.map} +1 -1
- package/dist/{encryption-BCaweYBJ.mjs → encryption-CHmfNBAy.mjs} +3 -3
- package/dist/{encryption-BCaweYBJ.mjs.map → encryption-CHmfNBAy.mjs.map} +1 -1
- package/dist/{engine-BzeCK6e8.mjs → engine-B3Gmu8-O.mjs} +13 -13
- package/dist/engine-B3Gmu8-O.mjs.map +1 -0
- package/dist/{engine-xrlcbr1g.cjs → engine-DewbDHOq.cjs} +12 -12
- package/dist/engine-DewbDHOq.cjs.map +1 -0
- package/dist/{github-Jcrqfzg0.cjs → github-DPNgIxdc.cjs} +7 -7
- package/dist/{github-Jcrqfzg0.cjs.map → github-DPNgIxdc.cjs.map} +1 -1
- package/dist/{github-CHClpJZS.mjs → github-DU3iEmJN.mjs} +7 -7
- package/dist/{github-CHClpJZS.mjs.map → github-DU3iEmJN.mjs.map} +1 -1
- package/dist/{googlePlay-e_tIBr4n.cjs → googlePlay-C2jnPqYn.cjs} +4 -4
- package/dist/{googlePlay-e_tIBr4n.cjs.map → googlePlay-C2jnPqYn.cjs.map} +1 -1
- package/dist/{googlePlay-Dk_pnif9.mjs → googlePlay-KPHn9H2f.mjs} +4 -4
- package/dist/{googlePlay-Dk_pnif9.mjs.map → googlePlay-KPHn9H2f.mjs.map} +1 -1
- package/dist/{iam-B6WLUf_x.cjs → iam-C2sf6AUi.cjs} +2 -2
- package/dist/{iam-B6WLUf_x.cjs.map → iam-C2sf6AUi.cjs.map} +1 -1
- package/dist/{iam-BKfO7u14.mjs → iam-CW61VcT3.mjs} +2 -2
- package/dist/{iam-BKfO7u14.mjs.map → iam-CW61VcT3.mjs.map} +1 -1
- package/dist/index.cjs +351 -112
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +351 -112
- package/dist/index.mjs.map +1 -1
- package/dist/{local-Dc2h2Ex3.cjs → local-BxjA0EXj.cjs} +2 -2
- package/dist/{local-Dc2h2Ex3.cjs.map → local-BxjA0EXj.cjs.map} +1 -1
- package/dist/{local-DUi3f-WB.mjs → local-CwR2DW6i.mjs} +2 -2
- package/dist/{local-DUi3f-WB.mjs.map → local-CwR2DW6i.mjs.map} +1 -1
- package/dist/{migrate-BU4eyd7z.cjs → migrate-B0a3WY4X.cjs} +5 -5
- package/dist/{migrate-BU4eyd7z.cjs.map → migrate-B0a3WY4X.cjs.map} +1 -1
- package/dist/{migrate-CIjcBr96.cjs → migrate-CYtM1UBH.cjs} +3 -3
- package/dist/{migrate-CIjcBr96.cjs.map → migrate-CYtM1UBH.cjs.map} +1 -1
- package/dist/{migrate-CbpeVxEW.mjs → migrate-DHWy64pc.mjs} +3 -3
- package/dist/{migrate-CbpeVxEW.mjs.map → migrate-DHWy64pc.mjs.map} +1 -1
- package/dist/{migrate-BxFCXc7M.mjs → migrate-vWy2CUoi.mjs} +5 -5
- package/dist/{migrate-BxFCXc7M.mjs.map → migrate-vWy2CUoi.mjs.map} +1 -1
- package/dist/next.cjs +59 -0
- package/dist/next.cjs.map +1 -0
- package/dist/next.d.cts +44 -0
- package/dist/next.d.cts.map +1 -0
- package/dist/next.d.mts +44 -0
- package/dist/next.d.mts.map +1 -0
- package/dist/next.mjs +58 -0
- package/dist/next.mjs.map +1 -0
- package/dist/{notes-TDHMzdVt.mjs → notes-9bOfe08J.mjs} +7 -7
- package/dist/notes-9bOfe08J.mjs.map +1 -0
- package/dist/{notes-DJyFkK13.cjs → notes-DRdlsCYV.cjs} +6 -6
- package/dist/notes-DRdlsCYV.cjs.map +1 -0
- package/dist/openapi.cjs +1 -1
- package/dist/openapi.mjs +1 -1
- package/dist/{projectBucket-BPzx0b0t.mjs → projectBucket-Cd7sEDhG.mjs} +2 -2
- package/dist/{projectBucket-BPzx0b0t.mjs.map → projectBucket-Cd7sEDhG.mjs.map} +1 -1
- package/dist/{projectBucket-CoskwJC5.cjs → projectBucket-gIQUuhGm.cjs} +2 -2
- package/dist/{projectBucket-CoskwJC5.cjs.map → projectBucket-gIQUuhGm.cjs.map} +1 -1
- package/dist/{publish-DB3-zkpm.cjs → publish-BgDFx08y.cjs} +2 -2
- package/dist/{publish-DB3-zkpm.cjs.map → publish-BgDFx08y.cjs.map} +1 -1
- package/dist/{publish-LZ1eb-MI.mjs → publish-DOxz4mxf.mjs} +2 -2
- package/dist/{publish-LZ1eb-MI.mjs.map → publish-DOxz4mxf.mjs.map} +1 -1
- package/dist/{resolve-B5_tOTJG.cjs → resolve-BhQd4IkT.cjs} +4 -4
- package/dist/{resolve-B5_tOTJG.cjs.map → resolve-BhQd4IkT.cjs.map} +1 -1
- package/dist/{resolve-jez3Y1S0.mjs → resolve-CdDyPOE8.mjs} +4 -4
- package/dist/{resolve-jez3Y1S0.mjs.map → resolve-CdDyPOE8.mjs.map} +1 -1
- package/dist/{rollback-BNo1bCLO.cjs → rollback-Brc-_HBJ.cjs} +6 -6
- package/dist/{rollback-BNo1bCLO.cjs.map → rollback-Brc-_HBJ.cjs.map} +1 -1
- package/dist/{rollback-BtOfxwo-.mjs → rollback-CLBKeSMl.mjs} +6 -6
- package/dist/{rollback-BtOfxwo-.mjs.map → rollback-CLBKeSMl.mjs.map} +1 -1
- package/dist/{s3-BlPwyu1L.cjs → s3-CuLmr6Q9.cjs} +3 -3
- package/dist/{s3-BlPwyu1L.cjs.map → s3-CuLmr6Q9.cjs.map} +1 -1
- package/dist/{s3-Bf_75vVl.mjs → s3-D0BIG_ml.mjs} +3 -3
- package/dist/{s3-Bf_75vVl.mjs.map → s3-D0BIG_ml.mjs.map} +1 -1
- package/dist/{serverSetup-D0Zor2i4.mjs → serverSetup-An1fE9nd.mjs} +6 -6
- package/dist/{serverSetup-D0Zor2i4.mjs.map → serverSetup-An1fE9nd.mjs.map} +1 -1
- package/dist/{serverSetup-D30vVD6t.cjs → serverSetup-BMpzrB1y.cjs} +6 -6
- package/dist/{serverSetup-D30vVD6t.cjs.map → serverSetup-BMpzrB1y.cjs.map} +1 -1
- package/dist/{sniffer-Bw00z3I8.cjs → sniffer-9a8wQeeD.cjs} +7 -7
- package/dist/{sniffer-Bw00z3I8.cjs.map → sniffer-9a8wQeeD.cjs.map} +1 -1
- package/dist/{sniffer-DdPDiNmc.mjs → sniffer-BObBXR5q.mjs} +7 -7
- package/dist/{sniffer-DdPDiNmc.mjs.map → sniffer-BObBXR5q.mjs.map} +1 -1
- package/dist/{snsSubscriptions-g7apv_fy.cjs → snsSubscriptions-BRmEdsks.cjs} +3 -3
- package/dist/{snsSubscriptions-g7apv_fy.cjs.map → snsSubscriptions-BRmEdsks.cjs.map} +1 -1
- package/dist/{snsSubscriptions-DBxVTR6Y.mjs → snsSubscriptions-oUTOkG-s.mjs} +3 -3
- package/dist/{snsSubscriptions-DBxVTR6Y.mjs.map → snsSubscriptions-oUTOkG-s.mjs.map} +1 -1
- package/dist/{sst-CEs0bMxj.cjs → sst-CJQI9GYW.cjs} +5 -5
- package/dist/{sst-CEs0bMxj.cjs.map → sst-CJQI9GYW.cjs.map} +1 -1
- package/dist/{sst-DJ22YDEq.mjs → sst-DVIeKWCH.mjs} +5 -5
- package/dist/{sst-DJ22YDEq.mjs.map → sst-DVIeKWCH.mjs.map} +1 -1
- package/dist/{stack-BmG-lKgD.cjs → stack-2jMvQfLo.cjs} +7 -7
- package/dist/{stack-BmG-lKgD.cjs.map → stack-2jMvQfLo.cjs.map} +1 -1
- package/dist/{stack-Ds9jjpE1.mjs → stack-kcxH-2tZ.mjs} +7 -7
- package/dist/{stack-Ds9jjpE1.mjs.map → stack-kcxH-2tZ.mjs.map} +1 -1
- package/dist/{stage-kGc9L3yB.cjs → stage-AHgVG7H8.cjs} +6 -6
- package/dist/{stage-kGc9L3yB.cjs.map → stage-AHgVG7H8.cjs.map} +1 -1
- package/dist/{stage-D9dfV1Ey.mjs → stage-BQSSMJL4.mjs} +6 -6
- package/dist/{stage-D9dfV1Ey.mjs.map → stage-BQSSMJL4.mjs.map} +1 -1
- package/dist/{stages-BL22BLJS.mjs → stages-BsK1Ro4s.mjs} +2 -2
- package/dist/{stages-BL22BLJS.mjs.map → stages-BsK1Ro4s.mjs.map} +1 -1
- package/dist/{stages-CN53nNOK.cjs → stages-DpF2K3PZ.cjs} +2 -2
- package/dist/{stages-CN53nNOK.cjs.map → stages-DpF2K3PZ.cjs.map} +1 -1
- package/dist/target/public.cjs +1 -1
- package/dist/target/public.mjs +1 -1
- package/dist/{terminal-DVlIWcUb.cjs → terminal-BNjNr7BN.cjs} +2 -2
- package/dist/{terminal-DVlIWcUb.cjs.map → terminal-BNjNr7BN.cjs.map} +1 -1
- package/dist/{terminal-C0A7S7fB.mjs → terminal-DWROY7JE.mjs} +2 -2
- package/dist/{terminal-C0A7S7fB.mjs.map → terminal-DWROY7JE.mjs.map} +1 -1
- package/dist/workspace/index.cjs +1 -1
- package/dist/workspace/index.mjs +1 -1
- package/dist/{workspace-D4hzz6Xb.mjs → workspace-9q4TSHlM.mjs} +7 -8
- package/dist/workspace-9q4TSHlM.mjs.map +1 -0
- package/dist/{workspace-DPSdiv-b.cjs → workspace-Ciw3SnME.cjs} +6 -7
- package/dist/workspace-Ciw3SnME.cjs.map +1 -0
- package/package.json +25 -15
- package/dist/apps-CJTOIaz3.mjs.map +0 -1
- package/dist/apps-DkMR-qvD.cjs.map +0 -1
- package/dist/compose-SmuCWWUh.cjs.map +0 -1
- package/dist/compose-tX6YTa1U.mjs.map +0 -1
- package/dist/deploy--ia-CGMv.cjs.map +0 -1
- package/dist/deploy-BWFFSN5p.mjs.map +0 -1
- package/dist/docker-BtUjo-J_.cjs.map +0 -1
- package/dist/engine-BzeCK6e8.mjs.map +0 -1
- package/dist/engine-xrlcbr1g.cjs.map +0 -1
- package/dist/notes-DJyFkK13.cjs.map +0 -1
- package/dist/notes-TDHMzdVt.mjs.map +0 -1
- package/dist/workspace-D4hzz6Xb.mjs.map +0 -1
- package/dist/workspace-DPSdiv-b.cjs.map +0 -1
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { t as GkmError } from "./errors-D8Gwp5kU.mjs";
|
|
2
|
-
import { M as initStageSecrets, X as deployIdentity, Y as applicationName, a as findRootDomain, bt as gkmHome, d as mxValue, h as createEmptyState, i as extractSubdomain, k as secretsStoreFor, m as createComposeState, o as normalizeDnsConfig, r as storedCredentials } from "./credentials-
|
|
3
|
-
import { $ as SesReceivingUnsupported, G as checkSesConfig, It as isReservedStageKey, J as inboxBucketId, K as checkSesEmailConfig, L as resolveStageTelemetry, N as assertDeployedStage, Q as InboxNotProvisioned, St as RecordedBucketUnreachable, U as stageProvider, W as SES_PROVISIONING, X as EmailNotProvisioned, Y as inboxTopicName, Z as EmailSenderUnknown, _t as BucketProbeFailed, at as suffixedBucketName, dt as S3_PROVISIONING, et as IAM_POLICY_NAME, ft as checkS3Config, gt as BucketOwnedByAnotherProject, ht as BucketNameUnavailable, it as randomSuffix, nt as bucketName, ot as appKey, q as emailUserName, rt as iamUserName, st as derivedApps, u as getAppBuildOrder, ut as fileServerLabel, vt as BucketRegionMismatch, wt as S3RegionRequired, xt as ProvisionedBucketUnreachable, yt as BucketRegionUnknown } from "./workspace-
|
|
4
|
-
import { A as originSecretKey, D as ORIGIN_VERIFY_HEADER, Et as mergeLifecycle, Gt as backupExpiries, Xt as deploysWithCompose, Yt as stageBackups, dt as BACKUPS_URL_KEY, f as constructGlobs, j as processorOriginHost, k as newOriginSecret, qt as backupsPrefix, t as appEnvKeys, ut as BACKUPS_SERVICE, zt as usesTelemetry } from "./apps-
|
|
2
|
+
import { M as initStageSecrets, X as deployIdentity, Y as applicationName, a as findRootDomain, bt as gkmHome, d as mxValue, h as createEmptyState, i as extractSubdomain, k as secretsStoreFor, m as createComposeState, o as normalizeDnsConfig, r as storedCredentials } from "./credentials-D4DUPPPP.mjs";
|
|
3
|
+
import { $ as SesReceivingUnsupported, G as checkSesConfig, It as isReservedStageKey, J as inboxBucketId, K as checkSesEmailConfig, L as resolveStageTelemetry, N as assertDeployedStage, Q as InboxNotProvisioned, St as RecordedBucketUnreachable, U as stageProvider, W as SES_PROVISIONING, X as EmailNotProvisioned, Y as inboxTopicName, Z as EmailSenderUnknown, _t as BucketProbeFailed, at as suffixedBucketName, dt as S3_PROVISIONING, et as IAM_POLICY_NAME, ft as checkS3Config, gt as BucketOwnedByAnotherProject, ht as BucketNameUnavailable, it as randomSuffix, nt as bucketName, ot as appKey, q as emailUserName, rt as iamUserName, st as derivedApps, u as getAppBuildOrder, ut as fileServerLabel, vt as BucketRegionMismatch, wt as S3RegionRequired, xt as ProvisionedBucketUnreachable, yt as BucketRegionUnknown } from "./workspace-9q4TSHlM.mjs";
|
|
4
|
+
import { A as originSecretKey, D as ORIGIN_VERIFY_HEADER, Et as mergeLifecycle, Gt as backupExpiries, Xt as deploysWithCompose, Yt as stageBackups, dt as BACKUPS_URL_KEY, f as constructGlobs, j as processorOriginHost, k as newOriginSecret, qt as backupsPrefix, t as appEnvKeys, ut as BACKUPS_SERVICE, zt as usesTelemetry } from "./apps-w2sRQKCr.mjs";
|
|
5
5
|
import { o as builtinTarget } from "./define-6poNqm5O.mjs";
|
|
6
|
-
import { at as resolveHost, it as isMainFrontendApp, nt as NoDomainForStage } from "./compose-
|
|
6
|
+
import { at as resolveHost, it as isMainFrontendApp, nt as NoDomainForStage } from "./compose-RhuFQmZS.mjs";
|
|
7
7
|
import { s as subscriberRoute } from "./SubscriberGenerator-BybB6uez.mjs";
|
|
8
8
|
import { _ as withSandbox, b as withOutput, i as discover } from "./discover-DbDrCQ8h.mjs";
|
|
9
9
|
import { findWorkspaceRoot, loadWorkspaceConfig, withLoadedConfig } from "./config.mjs";
|
|
10
|
-
import { a as parseTargetOptions, o as resolveTarget } from "./resolve-
|
|
11
|
-
import { a as PROVIDER_KINDS, c as DevServicesNeedServerTarget, f as devServicesUsed, g as stageServiceDeclarations, i as stageProviderNotes, l as ExternalServicesNotConfigured, m as reportDevServices, n as assertStageProvidersEnabled, p as externalServices } from "./notes-
|
|
12
|
-
import { w as assertSitePasswords } from "./stack-
|
|
13
|
-
import { S as awsProvisioningCredentials, a as subscriptionKey, b as awsClientConfig, f as recordTtl, h as settleStackDns, l as dnsCredentials, o as subscriptionResource, v as stageDnsDomains, x as awsEndpoint } from "./snsSubscriptions-
|
|
14
|
-
import { t as LocalSandbox } from "./local-
|
|
15
|
-
import { E as eventError, S as createStateStore, v as assertStateOutlivesRun, y as assertStateRoom } from "./sniffer-
|
|
16
|
-
import { a as identityTags, c as whileKeyIsNew, d as corsRule, f as publicAccessBlock, i as ensureIamUser, l as bucketPolicy, o as issuedJustNow, p as userPolicy, r as ensureAccessKey, s as s3KeySecret, t as TAG_PROJECT, u as canonicalPolicy } from "./iam-
|
|
17
|
-
import { a as findProjectBucket, i as ensureProjectBucket, o as projectBucketName, r as callerAccountId, s as reconcileProjectBucketLifecycle } from "./projectBucket-
|
|
10
|
+
import { a as parseTargetOptions, o as resolveTarget } from "./resolve-CdDyPOE8.mjs";
|
|
11
|
+
import { a as PROVIDER_KINDS, c as DevServicesNeedServerTarget, f as devServicesUsed, g as stageServiceDeclarations, i as stageProviderNotes, l as ExternalServicesNotConfigured, m as reportDevServices, n as assertStageProvidersEnabled, p as externalServices } from "./notes-9bOfe08J.mjs";
|
|
12
|
+
import { w as assertSitePasswords } from "./stack-kcxH-2tZ.mjs";
|
|
13
|
+
import { S as awsProvisioningCredentials, a as subscriptionKey, b as awsClientConfig, f as recordTtl, h as settleStackDns, l as dnsCredentials, o as subscriptionResource, v as stageDnsDomains, x as awsEndpoint } from "./snsSubscriptions-oUTOkG-s.mjs";
|
|
14
|
+
import { t as LocalSandbox } from "./local-CwR2DW6i.mjs";
|
|
15
|
+
import { E as eventError, S as createStateStore, v as assertStateOutlivesRun, y as assertStateRoom } from "./sniffer-BObBXR5q.mjs";
|
|
16
|
+
import { a as identityTags, c as whileKeyIsNew, d as corsRule, f as publicAccessBlock, i as ensureIamUser, l as bucketPolicy, o as issuedJustNow, p as userPolicy, r as ensureAccessKey, s as s3KeySecret, t as TAG_PROJECT, u as canonicalPolicy } from "./iam-CW61VcT3.mjs";
|
|
17
|
+
import { a as findProjectBucket, i as ensureProjectBucket, o as projectBucketName, r as callerAccountId, s as reconcileProjectBucketLifecycle } from "./projectBucket-Cd7sEDhG.mjs";
|
|
18
18
|
import { m as recordDnsResource, s as DeployJournal, u as dnsResourceKey } from "./seeds-Ccn0Ru2T.mjs";
|
|
19
19
|
import { n as assertStageCredentials } from "./credentialSchemas-mz9QZTYh.mjs";
|
|
20
20
|
import { resolve } from "node:path";
|
|
@@ -215,7 +215,7 @@ async function ensureStageBackups(input) {
|
|
|
215
215
|
else if (await reconcileProjectBucketLifecycle(clients.s3, bucket, expiries, { dryRun: true })) await ctx.change({
|
|
216
216
|
construct: BACKUPS_SERVICE,
|
|
217
217
|
resource: `bucket ${bucket}`,
|
|
218
|
-
change: `lifecycle: ${expiries.map((e) =>
|
|
218
|
+
change: `lifecycle: ${expiries.map((e) => `runs in ${e.prefix.slice(0, -1)} after ${e.days} days`).join(", ")}`
|
|
219
219
|
}, async () => {
|
|
220
220
|
await reconcileProjectBucketLifecycle(clients.s3, bucket, expiries);
|
|
221
221
|
});
|
|
@@ -1409,7 +1409,7 @@ async function ensureBucketEvents(ctx, s3, input) {
|
|
|
1409
1409
|
async function ensureEventsKey(ctx, input) {
|
|
1410
1410
|
const { id, topicArn, region } = input;
|
|
1411
1411
|
const key = input.key ?? provideKey(id, "eventsConnectionString");
|
|
1412
|
-
const url = ctx.secrets[input.urlKey ?? provideKey(id, "
|
|
1412
|
+
const url = ctx.secrets[input.urlKey ?? provideKey(id, "connectionString")];
|
|
1413
1413
|
let parsed;
|
|
1414
1414
|
try {
|
|
1415
1415
|
parsed = url ? s3Url.parse(url) : void 0;
|
|
@@ -1538,9 +1538,12 @@ async function ensurePushSubscriptions(ctx, input) {
|
|
|
1538
1538
|
* bucket (or a file server over it) itself is one too. Nothing is written
|
|
1539
1539
|
* down: add a site that calls the API and the next provision run allows it.
|
|
1540
1540
|
*/
|
|
1541
|
-
/**
|
|
1541
|
+
/**
|
|
1542
|
+
* The keys a reader of this bucket holds: its connection, and each server's
|
|
1543
|
+
* address over it.
|
|
1544
|
+
*/
|
|
1542
1545
|
function bucketKeys(manifest, bucket) {
|
|
1543
|
-
return [provideKey(bucket, "
|
|
1546
|
+
return [provideKey(bucket, "connectionString"), ...Object.entries(manifest).filter(([, d]) => d.kind === "file-server" && d.of === bucket).map(([id]) => providedKeyFor(id, "file-server", "url"))];
|
|
1544
1547
|
}
|
|
1545
1548
|
function bucketOrigins(input) {
|
|
1546
1549
|
const { manifest, workspace, stage } = input;
|
|
@@ -1780,7 +1783,7 @@ async function ensureBucket(ctx, stageClients, construct, watchers) {
|
|
|
1780
1783
|
id,
|
|
1781
1784
|
secret: s3KeySecret(ctx, clients, {
|
|
1782
1785
|
bucket,
|
|
1783
|
-
urlKey: provideKey(id, "
|
|
1786
|
+
urlKey: provideKey(id, "connectionString")
|
|
1784
1787
|
}),
|
|
1785
1788
|
...user
|
|
1786
1789
|
});
|
|
@@ -1800,7 +1803,7 @@ async function ensureBucket(ctx, stageClients, construct, watchers) {
|
|
|
1800
1803
|
const bucketUrl = bucketPublicUrl(bucket, clients.region, clients.endpoint);
|
|
1801
1804
|
for (const server of construct.servers) {
|
|
1802
1805
|
const publicUrl = cdn?.urls[server.id] ?? bucketUrl;
|
|
1803
|
-
const key =
|
|
1806
|
+
const key = providedKeyFor(server.id, "file-server", "url");
|
|
1804
1807
|
const entry = {
|
|
1805
1808
|
key: `file-server:${server.id}`,
|
|
1806
1809
|
type: "url"
|
|
@@ -2089,7 +2092,7 @@ function canonicalCors(rule) {
|
|
|
2089
2092
|
async function verifyS3(ctx) {
|
|
2090
2093
|
const S3 = await import("@aws-sdk/client-s3");
|
|
2091
2094
|
for (const { id } of bucketConstructs(ctx.manifest)) {
|
|
2092
|
-
const urlKey = provideKey(id, "
|
|
2095
|
+
const urlKey = provideKey(id, "connectionString");
|
|
2093
2096
|
const url = ctx.secrets[urlKey];
|
|
2094
2097
|
if (url === void 0) continue;
|
|
2095
2098
|
const address = s3Url.parse(url);
|
|
@@ -2143,9 +2146,9 @@ const s3Provider = {
|
|
|
2143
2146
|
runtimeKeys(manifest) {
|
|
2144
2147
|
const watched = bucketWatchers(manifest);
|
|
2145
2148
|
return bucketConstructs(manifest).flatMap((b) => [
|
|
2146
|
-
provideKey(b.id, "
|
|
2149
|
+
provideKey(b.id, "connectionString"),
|
|
2147
2150
|
...watched.has(b.id) ? [provideKey(b.id, "eventsConnectionString")] : [],
|
|
2148
|
-
...b.servers.map((s) =>
|
|
2151
|
+
...b.servers.map((s) => providedKeyFor(s.id, "file-server", "url"))
|
|
2149
2152
|
]);
|
|
2150
2153
|
},
|
|
2151
2154
|
ensure: ensureS3,
|
|
@@ -3051,6 +3054,56 @@ async function readOnlyState(store, stage) {
|
|
|
3051
3054
|
};
|
|
3052
3055
|
}
|
|
3053
3056
|
//#endregion
|
|
3057
|
+
//#region src/secrets/bucketKeys.ts
|
|
3058
|
+
/**
|
|
3059
|
+
* The keys a bucket and a file server used to be stored under, moved to the
|
|
3060
|
+
* ones they are read from now.
|
|
3061
|
+
*
|
|
3062
|
+
* A bucket's connection was `<ID>_URL` and is `<ID>_CONNECTION_STRING`; a file
|
|
3063
|
+
* server's public address was `<ID>_SERVER_URL` and is `<ID>_URL`. A deployed
|
|
3064
|
+
* stage still holds the old names: written there by its provider, or set by
|
|
3065
|
+
* hand on an `external` one. Both are moved, in that order, the first time
|
|
3066
|
+
* the stage is deployed after the rename — the bucket's first, because the
|
|
3067
|
+
* name it leaves is the one the file server's address moves into.
|
|
3068
|
+
*
|
|
3069
|
+
* Moved rather than reissued: the provider reads its access key back out of
|
|
3070
|
+
* the stored connection, so finding nothing under the new name would issue
|
|
3071
|
+
* the bucket a second key.
|
|
3072
|
+
*/
|
|
3073
|
+
/**
|
|
3074
|
+
* `custom` with each old bucket and file-server key moved to its new name,
|
|
3075
|
+
* and what was moved. A key whose new name is already set is left where it
|
|
3076
|
+
* is: the new one is what is read, and the old one is somebody's to delete.
|
|
3077
|
+
*/
|
|
3078
|
+
function moveBucketKeys(manifest, custom) {
|
|
3079
|
+
const next = { ...custom };
|
|
3080
|
+
const moved = [];
|
|
3081
|
+
const move = (from, to, when = (_) => true) => {
|
|
3082
|
+
const value = next[from];
|
|
3083
|
+
if (from === to || value === void 0 || next[to] !== void 0) return;
|
|
3084
|
+
if (!when(value)) return;
|
|
3085
|
+
next[to] = value;
|
|
3086
|
+
delete next[from];
|
|
3087
|
+
moved.push({
|
|
3088
|
+
from,
|
|
3089
|
+
to
|
|
3090
|
+
});
|
|
3091
|
+
};
|
|
3092
|
+
const entries = Object.entries(manifest);
|
|
3093
|
+
for (const [id, declaration] of entries) {
|
|
3094
|
+
if (declaration.kind !== "objects") continue;
|
|
3095
|
+
move(provideKey(id, "url"), provideKey(id, "connectionString"), (value) => !/^https?:\/\//i.test(value));
|
|
3096
|
+
}
|
|
3097
|
+
for (const [id, declaration] of entries) {
|
|
3098
|
+
if (declaration.kind !== "file-server") continue;
|
|
3099
|
+
move(provideKey(id, "url"), providedKeyFor(id, "file-server", "url"));
|
|
3100
|
+
}
|
|
3101
|
+
return {
|
|
3102
|
+
custom: next,
|
|
3103
|
+
moved
|
|
3104
|
+
};
|
|
3105
|
+
}
|
|
3106
|
+
//#endregion
|
|
3054
3107
|
//#region src/secrets/stale.ts
|
|
3055
3108
|
/**
|
|
3056
3109
|
* Stored secrets an older gkm generated that now shadow a derived value.
|
|
@@ -3345,6 +3398,7 @@ async function runDeploy(source, request, ctx) {
|
|
|
3345
3398
|
});
|
|
3346
3399
|
throw error;
|
|
3347
3400
|
}
|
|
3401
|
+
await moveStoredBucketKeys(phaseCtx, ctx.dryRun);
|
|
3348
3402
|
await provisionResources(phaseCtx, request, ctx, store, emit);
|
|
3349
3403
|
};
|
|
3350
3404
|
if (ctx.dryRun) {
|
|
@@ -3456,6 +3510,37 @@ async function provisionResources(phaseCtx, request, ctx, store, emit) {
|
|
|
3456
3510
|
throw error;
|
|
3457
3511
|
}
|
|
3458
3512
|
}
|
|
3513
|
+
/**
|
|
3514
|
+
* The stage's bucket and file-server keys moved to the names they are read
|
|
3515
|
+
* from (`moveBucketKeys`), before its providers or its readiness check read
|
|
3516
|
+
* them. A dry run moves them in what it reads, and writes nothing.
|
|
3517
|
+
*/
|
|
3518
|
+
async function moveStoredBucketKeys(phaseCtx, dryRun) {
|
|
3519
|
+
const secrets = phaseCtx.secrets;
|
|
3520
|
+
const stored = await secrets.read();
|
|
3521
|
+
if (!stored) return;
|
|
3522
|
+
const { custom, moved } = moveBucketKeys(phaseCtx.manifest, stored.custom);
|
|
3523
|
+
if (moved.length === 0) return;
|
|
3524
|
+
for (const { from, to } of moved) phaseCtx.logger.info(`🔑 ${from} → ${to}${dryRun ? " (dry run: not written)" : ""}`);
|
|
3525
|
+
if (!dryRun) {
|
|
3526
|
+
await secrets.write({
|
|
3527
|
+
...stored,
|
|
3528
|
+
custom,
|
|
3529
|
+
updatedAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
3530
|
+
});
|
|
3531
|
+
return;
|
|
3532
|
+
}
|
|
3533
|
+
phaseCtx.secrets = {
|
|
3534
|
+
...secrets,
|
|
3535
|
+
async read() {
|
|
3536
|
+
const current = await secrets.read();
|
|
3537
|
+
return current ? {
|
|
3538
|
+
...current,
|
|
3539
|
+
custom: moveBucketKeys(phaseCtx.manifest, current.custom).custom
|
|
3540
|
+
} : current;
|
|
3541
|
+
}
|
|
3542
|
+
};
|
|
3543
|
+
}
|
|
3459
3544
|
/** What a dry run reads for a key its providers would write. */
|
|
3460
3545
|
const PLANNED_BY_THE_DEPLOY = "s3://planned-by-this-deploy";
|
|
3461
3546
|
/**
|
|
@@ -3758,4 +3843,4 @@ async function load(input, sandbox) {
|
|
|
3758
3843
|
//#endregion
|
|
3759
3844
|
export { UnknownDeployApps as a, defaultCdnClients as c, TargetBuildsNothing as i, backupsUserName as l, NoDeployableApps as n, defaultClients as o, RollbackFailed as r, cdnName as s, deploy as t };
|
|
3760
3845
|
|
|
3761
|
-
//# sourceMappingURL=deploy-
|
|
3846
|
+
//# sourceMappingURL=deploy-DDfnQm8l.mjs.map
|