@geekmidas/cli 10.0.0-alpha.166 → 10.0.0-alpha.168
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/{EndpointGenerator-DxrRqfJ3.cjs → EndpointGenerator-C1h_wExz.cjs} +2 -2
- package/dist/{EndpointGenerator-DxrRqfJ3.cjs.map → EndpointGenerator-C1h_wExz.cjs.map} +1 -1
- package/dist/{EndpointGenerator-B5BKAoLz.mjs → EndpointGenerator-CSKhAD6W.mjs} +2 -2
- package/dist/{EndpointGenerator-B5BKAoLz.mjs.map → EndpointGenerator-CSKhAD6W.mjs.map} +1 -1
- package/dist/{GoDaddyProvider-mnY-cdD2.mjs → GoDaddyProvider-CJIYlkUN.mjs} +2 -2
- package/dist/{GoDaddyProvider-mnY-cdD2.mjs.map → GoDaddyProvider-CJIYlkUN.mjs.map} +1 -1
- package/dist/{GoDaddyProvider-DClFHezd.cjs → GoDaddyProvider-CYAlIeML.cjs} +2 -2
- package/dist/{GoDaddyProvider-DClFHezd.cjs.map → GoDaddyProvider-CYAlIeML.cjs.map} +1 -1
- package/dist/{HostingerProvider-BMyz2LnZ.cjs → HostingerProvider-Ceqc_nlG.cjs} +2 -2
- package/dist/{HostingerProvider-BMyz2LnZ.cjs.map → HostingerProvider-Ceqc_nlG.cjs.map} +1 -1
- package/dist/{HostingerProvider-39eSGyBa.mjs → HostingerProvider-Tb0bnTpM.mjs} +2 -2
- package/dist/{HostingerProvider-39eSGyBa.mjs.map → HostingerProvider-Tb0bnTpM.mjs.map} +1 -1
- package/dist/{LegacyStateStore-BJY7ntQk.cjs → LegacyStateStore-Ci-CRqt2.cjs} +2 -2
- package/dist/{LegacyStateStore-BJY7ntQk.cjs.map → LegacyStateStore-Ci-CRqt2.cjs.map} +1 -1
- package/dist/{LegacyStateStore-B2TBaSMq.mjs → LegacyStateStore-DJWY64Jj.mjs} +2 -2
- package/dist/{LegacyStateStore-B2TBaSMq.mjs.map → LegacyStateStore-DJWY64Jj.mjs.map} +1 -1
- package/dist/{LocalStateStore-8LFd-aMA.mjs → LocalStateStore-BFgjv29N.mjs} +2 -2
- package/dist/{LocalStateStore-8LFd-aMA.mjs.map → LocalStateStore-BFgjv29N.mjs.map} +1 -1
- package/dist/{LocalStateStore-BvoEjPi5.cjs → LocalStateStore-Enw_wV7d.cjs} +2 -2
- package/dist/{LocalStateStore-BvoEjPi5.cjs.map → LocalStateStore-Enw_wV7d.cjs.map} +1 -1
- package/dist/{OpenApiTsGenerator-Vaf0pI8u.mjs → OpenApiTsGenerator-5xPn-p65.mjs} +2 -2
- package/dist/{OpenApiTsGenerator-Vaf0pI8u.mjs.map → OpenApiTsGenerator-5xPn-p65.mjs.map} +1 -1
- package/dist/{OpenApiTsGenerator-DOTLKBFf.cjs → OpenApiTsGenerator-CzrLGzC0.cjs} +2 -2
- package/dist/{OpenApiTsGenerator-DOTLKBFf.cjs.map → OpenApiTsGenerator-CzrLGzC0.cjs.map} +1 -1
- package/dist/{S3StateStore-eeA5NXRa.cjs → S3StateStore-B48M3z7L.cjs} +4 -4
- package/dist/{S3StateStore-eeA5NXRa.cjs.map → S3StateStore-B48M3z7L.cjs.map} +1 -1
- package/dist/{S3StateStore-DMzsqfSa.mjs → S3StateStore-Cwfd-ZnJ.mjs} +4 -4
- package/dist/{S3StateStore-DMzsqfSa.mjs.map → S3StateStore-Cwfd-ZnJ.mjs.map} +1 -1
- package/dist/{SSMStateStore-BUv-du0T.cjs → SSMStateStore-CuBe-NK5.cjs} +2 -2
- package/dist/{SSMStateStore-BUv-du0T.cjs.map → SSMStateStore-CuBe-NK5.cjs.map} +1 -1
- package/dist/{SSMStateStore-CE2DTAtT.mjs → SSMStateStore-DYgE98Sm.mjs} +2 -2
- package/dist/{SSMStateStore-CE2DTAtT.mjs.map → SSMStateStore-DYgE98Sm.mjs.map} +1 -1
- package/dist/{SubscriberGenerator-BybB6uez.mjs → SubscriberGenerator-CfZWX0lT.mjs} +6 -6
- package/dist/SubscriberGenerator-CfZWX0lT.mjs.map +1 -0
- package/dist/{SubscriberGenerator-mZpSuSU7.cjs → SubscriberGenerator-DMi4siph.cjs} +5 -5
- package/dist/SubscriberGenerator-DMi4siph.cjs.map +1 -0
- package/dist/{add-Dp0KQNkQ.cjs → add-4AT0LlDK.cjs} +11 -11
- package/dist/add-4AT0LlDK.cjs.map +1 -0
- package/dist/{add-BgCYGJpE.mjs → add-C85tazt0.mjs} +12 -12
- package/dist/add-C85tazt0.mjs.map +1 -0
- package/dist/{apps-DkMR-qvD.cjs → apps-By6pnfzA.cjs} +99 -45
- package/dist/apps-By6pnfzA.cjs.map +1 -0
- package/dist/{apps-CJTOIaz3.mjs → apps-CWGmV2nQ.mjs} +99 -46
- package/dist/apps-CWGmV2nQ.mjs.map +1 -0
- package/dist/{bundler-Dt1ffXl6.mjs → bundler-B9rkNGpK.mjs} +6 -6
- package/dist/{bundler-Dt1ffXl6.mjs.map → bundler-B9rkNGpK.mjs.map} +1 -1
- package/dist/{bundler-CA7KimJ0.cjs → bundler-DPBLrtjT.cjs} +6 -6
- package/dist/{bundler-CA7KimJ0.cjs.map → bundler-DPBLrtjT.cjs.map} +1 -1
- package/dist/{cli-CY1Cp8yN.cjs → cli-BnWRqhwx.cjs} +4 -4
- package/dist/{cli-CY1Cp8yN.cjs.map → cli-BnWRqhwx.cjs.map} +1 -1
- package/dist/{cli-C-fdEb8N.mjs → cli-DgL0QED8.mjs} +4 -4
- package/dist/{cli-C-fdEb8N.mjs.map → cli-DgL0QED8.mjs.map} +1 -1
- package/dist/{compose-SmuCWWUh.cjs → compose-CLM-sqgE.cjs} +76 -11
- package/dist/compose-CLM-sqgE.cjs.map +1 -0
- package/dist/{compose-tX6YTa1U.mjs → compose-CcK-QoYU.mjs} +66 -13
- package/dist/compose-CcK-QoYU.mjs.map +1 -0
- package/dist/{compose-CZGeE6QJ.mjs → compose-DuRBnjxx.mjs} +9 -9
- package/dist/compose-DuRBnjxx.mjs.map +1 -0
- package/dist/{compose-BIm9yNH7.cjs → compose-DwjaxFFK.cjs} +8 -8
- package/dist/compose-DwjaxFFK.cjs.map +1 -0
- package/dist/config.cjs +2 -2
- package/dist/config.mjs +2 -2
- package/dist/{credentialSchemas-mz9QZTYh.mjs → credentialSchemas-BzJiK1nQ.mjs} +4 -4
- package/dist/credentialSchemas-BzJiK1nQ.mjs.map +1 -0
- package/dist/{credentialSchemas-BAklWDna.cjs → credentialSchemas-OVXofU-r.cjs} +3 -3
- package/dist/credentialSchemas-OVXofU-r.cjs.map +1 -0
- package/dist/{credentials-CS3Dr-pv.cjs → credentials-CCCAy3NL.cjs} +7 -7
- package/dist/{credentials-CS3Dr-pv.cjs.map → credentials-CCCAy3NL.cjs.map} +1 -1
- package/dist/{credentials-V3WgiKmZ.mjs → credentials-CeCOEKP3.mjs} +7 -7
- package/dist/{credentials-V3WgiKmZ.mjs.map → credentials-CeCOEKP3.mjs.map} +1 -1
- package/dist/{databases-CrKh5jw6.cjs → databases-CuTL1e7s.cjs} +3 -3
- package/dist/databases-CuTL1e7s.cjs.map +1 -0
- package/dist/{databases-C1qqNxTu.mjs → databases-zN-gEox0.mjs} +4 -4
- package/dist/databases-zN-gEox0.mjs.map +1 -0
- package/dist/deploy/public.cjs +12 -12
- package/dist/deploy/public.d.cts.map +1 -1
- package/dist/deploy/public.d.mts.map +1 -1
- package/dist/deploy/public.mjs +12 -12
- package/dist/{deploy--ia-CGMv.cjs → deploy-Dy5jyciI.cjs} +123 -38
- package/dist/deploy-Dy5jyciI.cjs.map +1 -0
- package/dist/{deploy-BWFFSN5p.mjs → deploy-F6GA-u59.mjs} +124 -39
- package/dist/deploy-F6GA-u59.mjs.map +1 -0
- package/dist/{destroy-CrxF8Dlk.cjs → destroy-B7-8EgCJ.cjs} +9 -9
- package/dist/{destroy-CrxF8Dlk.cjs.map → destroy-B7-8EgCJ.cjs.map} +1 -1
- package/dist/{destroy-ZNiKL3--.mjs → destroy-Gyxrl5yO.mjs} +9 -9
- package/dist/{destroy-ZNiKL3--.mjs.map → destroy-Gyxrl5yO.mjs.map} +1 -1
- package/dist/{discover-CRywE7yc.cjs → discover-39VKSE2i.cjs} +5 -5
- package/dist/discover-39VKSE2i.cjs.map +1 -0
- package/dist/{discover-DbDrCQ8h.mjs → discover-B_PDDaVj.mjs} +6 -6
- package/dist/discover-B_PDDaVj.mjs.map +1 -0
- package/dist/{docker-DhmU416x.mjs → docker-COHyyOkv.mjs} +16 -12
- package/dist/docker-COHyyOkv.mjs.map +1 -0
- package/dist/{docker-BtUjo-J_.cjs → docker-CP4bspkW.cjs} +15 -11
- package/dist/docker-CP4bspkW.cjs.map +1 -0
- package/dist/{dokploy-ComPiFLl.cjs → dokploy-C7ampvzk.cjs} +2 -2
- package/dist/{dokploy-ComPiFLl.cjs.map → dokploy-C7ampvzk.cjs.map} +1 -1
- package/dist/{dokploy-BszAUbbA.mjs → dokploy-DBmB9vWu.mjs} +2 -2
- package/dist/{dokploy-BszAUbbA.mjs.map → dokploy-DBmB9vWu.mjs.map} +1 -1
- package/dist/{eas-zxVAWY6c.cjs → eas-CbnTdz8d.cjs} +3 -3
- package/dist/{eas-zxVAWY6c.cjs.map → eas-CbnTdz8d.cjs.map} +1 -1
- package/dist/{eas-DQudP2g2.mjs → eas-EXRkhGSM.mjs} +3 -3
- package/dist/{eas-DQudP2g2.mjs.map → eas-EXRkhGSM.mjs.map} +1 -1
- package/dist/{encryption-CU5O0Y61.cjs → encryption-CdDDSAu_.cjs} +4 -4
- package/dist/encryption-CdDDSAu_.cjs.map +1 -0
- package/dist/{encryption-BCaweYBJ.mjs → encryption-lLZV2eMs.mjs} +5 -5
- package/dist/encryption-lLZV2eMs.mjs.map +1 -0
- package/dist/{engine-xrlcbr1g.cjs → engine-Cg92m1Xf.cjs} +38 -38
- package/dist/engine-Cg92m1Xf.cjs.map +1 -0
- package/dist/{engine-BzeCK6e8.mjs → engine-ZzUy2czq.mjs} +39 -39
- package/dist/engine-ZzUy2czq.mjs.map +1 -0
- package/dist/{github-Jcrqfzg0.cjs → github-BHqRcUgU.cjs} +8 -8
- package/dist/{github-Jcrqfzg0.cjs.map → github-BHqRcUgU.cjs.map} +1 -1
- package/dist/{github-CHClpJZS.mjs → github-CPpJmNgV.mjs} +8 -8
- package/dist/{github-CHClpJZS.mjs.map → github-CPpJmNgV.mjs.map} +1 -1
- package/dist/{googlePlay-e_tIBr4n.cjs → googlePlay-DRz0ya3q.cjs} +4 -4
- package/dist/{googlePlay-e_tIBr4n.cjs.map → googlePlay-DRz0ya3q.cjs.map} +1 -1
- package/dist/{googlePlay-Dk_pnif9.mjs → googlePlay-Dg-0ASWN.mjs} +4 -4
- package/dist/{googlePlay-Dk_pnif9.mjs.map → googlePlay-Dg-0ASWN.mjs.map} +1 -1
- package/dist/{iam-BKfO7u14.mjs → iam-CLIne3Ny.mjs} +2 -2
- package/dist/{iam-BKfO7u14.mjs.map → iam-CLIne3Ny.mjs.map} +1 -1
- package/dist/{iam-B6WLUf_x.cjs → iam-b4IvC1fm.cjs} +2 -2
- package/dist/{iam-B6WLUf_x.cjs.map → iam-b4IvC1fm.cjs.map} +1 -1
- package/dist/index.cjs +367 -128
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +368 -129
- package/dist/index.mjs.map +1 -1
- package/dist/{local-Dc2h2Ex3.cjs → local-BIrl0ENw.cjs} +3 -3
- package/dist/{local-Dc2h2Ex3.cjs.map → local-BIrl0ENw.cjs.map} +1 -1
- package/dist/{local-DUi3f-WB.mjs → local-Cin6exc0.mjs} +3 -3
- package/dist/{local-DUi3f-WB.mjs.map → local-Cin6exc0.mjs.map} +1 -1
- package/dist/{migrate-BU4eyd7z.cjs → migrate-BtkwylxW.cjs} +7 -7
- package/dist/{migrate-BU4eyd7z.cjs.map → migrate-BtkwylxW.cjs.map} +1 -1
- package/dist/{migrate-CIjcBr96.cjs → migrate-CxI07Ey0.cjs} +3 -3
- package/dist/{migrate-CIjcBr96.cjs.map → migrate-CxI07Ey0.cjs.map} +1 -1
- package/dist/{migrate-BxFCXc7M.mjs → migrate-DEU8I8sQ.mjs} +7 -7
- package/dist/{migrate-BxFCXc7M.mjs.map → migrate-DEU8I8sQ.mjs.map} +1 -1
- package/dist/{migrate-CbpeVxEW.mjs → migrate-DpLMJLCw.mjs} +3 -3
- package/dist/{migrate-CbpeVxEW.mjs.map → migrate-DpLMJLCw.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-or_kXTal.mjs} +13 -13
- package/dist/notes-or_kXTal.mjs.map +1 -0
- package/dist/{notes-DJyFkK13.cjs → notes-rTfi6rfN.cjs} +12 -12
- package/dist/notes-rTfi6rfN.cjs.map +1 -0
- package/dist/openapi.cjs +3 -3
- package/dist/openapi.mjs +3 -3
- package/dist/{projectBucket-CoskwJC5.cjs → projectBucket-CRa1b1Td.cjs} +2 -2
- package/dist/{projectBucket-CoskwJC5.cjs.map → projectBucket-CRa1b1Td.cjs.map} +1 -1
- package/dist/{projectBucket-BPzx0b0t.mjs → projectBucket-Coh5K3-g.mjs} +2 -2
- package/dist/{projectBucket-BPzx0b0t.mjs.map → projectBucket-Coh5K3-g.mjs.map} +1 -1
- package/dist/{publish-LZ1eb-MI.mjs → publish-Bwhywmpz.mjs} +2 -2
- package/dist/{publish-LZ1eb-MI.mjs.map → publish-Bwhywmpz.mjs.map} +1 -1
- package/dist/{publish-DB3-zkpm.cjs → publish-D9Yl4AzW.cjs} +2 -2
- package/dist/{publish-DB3-zkpm.cjs.map → publish-D9Yl4AzW.cjs.map} +1 -1
- package/dist/{ready-BjFMu_1J.mjs → ready-COJHr1Yi.mjs} +9 -9
- package/dist/ready-COJHr1Yi.mjs.map +1 -0
- package/dist/{ready-eVMJIcWn.cjs → ready-DcD0SCnV.cjs} +8 -8
- package/dist/ready-DcD0SCnV.cjs.map +1 -0
- package/dist/reconcile/public.cjs +1 -1
- package/dist/reconcile/public.mjs +1 -1
- package/dist/{resolve-jez3Y1S0.mjs → resolve-B9tboVm2.mjs} +4 -4
- package/dist/{resolve-jez3Y1S0.mjs.map → resolve-B9tboVm2.mjs.map} +1 -1
- package/dist/{resolve-B5_tOTJG.cjs → resolve-BrJUFIUu.cjs} +4 -4
- package/dist/{resolve-B5_tOTJG.cjs.map → resolve-BrJUFIUu.cjs.map} +1 -1
- package/dist/{rollback-BNo1bCLO.cjs → rollback-D48bPMpD.cjs} +7 -7
- package/dist/{rollback-BNo1bCLO.cjs.map → rollback-D48bPMpD.cjs.map} +1 -1
- package/dist/{rollback-BtOfxwo-.mjs → rollback-M6b0z1tp.mjs} +7 -7
- package/dist/{rollback-BtOfxwo-.mjs.map → rollback-M6b0z1tp.mjs.map} +1 -1
- package/dist/{s3-BlPwyu1L.cjs → s3-3iS3jlKU.cjs} +3 -3
- package/dist/{s3-BlPwyu1L.cjs.map → s3-3iS3jlKU.cjs.map} +1 -1
- package/dist/{s3-Bf_75vVl.mjs → s3-CNOSRjqH.mjs} +3 -3
- package/dist/{s3-Bf_75vVl.mjs.map → s3-CNOSRjqH.mjs.map} +1 -1
- package/dist/sandbox/credentials-worker.cjs +2 -2
- package/dist/sandbox/credentials-worker.mjs +2 -2
- package/dist/sandbox/discover-worker.cjs +1 -1
- package/dist/sandbox/discover-worker.mjs +1 -1
- package/dist/sandbox/migrate-worker.cjs +2 -2
- package/dist/sandbox/migrate-worker.mjs +2 -2
- package/dist/{serverSetup-D0Zor2i4.mjs → serverSetup-CzLJ_RV0.mjs} +6 -6
- package/dist/{serverSetup-D0Zor2i4.mjs.map → serverSetup-CzLJ_RV0.mjs.map} +1 -1
- package/dist/{serverSetup-D30vVD6t.cjs → serverSetup-DnOdoucM.cjs} +6 -6
- package/dist/{serverSetup-D30vVD6t.cjs.map → serverSetup-DnOdoucM.cjs.map} +1 -1
- package/dist/{sniffer-Bw00z3I8.cjs → sniffer-C5F7uYQB.cjs} +8 -8
- package/dist/{sniffer-Bw00z3I8.cjs.map → sniffer-C5F7uYQB.cjs.map} +1 -1
- package/dist/{sniffer-DdPDiNmc.mjs → sniffer-yeftYpWK.mjs} +8 -8
- package/dist/{sniffer-DdPDiNmc.mjs.map → sniffer-yeftYpWK.mjs.map} +1 -1
- package/dist/{snsSubscriptions-DBxVTR6Y.mjs → snsSubscriptions-CXRa_bwG.mjs} +3 -3
- package/dist/{snsSubscriptions-DBxVTR6Y.mjs.map → snsSubscriptions-CXRa_bwG.mjs.map} +1 -1
- package/dist/{snsSubscriptions-g7apv_fy.cjs → snsSubscriptions-CXwELBil.cjs} +3 -3
- package/dist/{snsSubscriptions-g7apv_fy.cjs.map → snsSubscriptions-CXwELBil.cjs.map} +1 -1
- package/dist/{sst-DJ22YDEq.mjs → sst-BAQrBaGa.mjs} +6 -6
- package/dist/{sst-DJ22YDEq.mjs.map → sst-BAQrBaGa.mjs.map} +1 -1
- package/dist/{sst-CEs0bMxj.cjs → sst-B_srWo15.cjs} +6 -6
- package/dist/{sst-CEs0bMxj.cjs.map → sst-B_srWo15.cjs.map} +1 -1
- package/dist/{stack-BmG-lKgD.cjs → stack-DaJ9D2Uc.cjs} +20 -20
- package/dist/stack-DaJ9D2Uc.cjs.map +1 -0
- package/dist/{stack-Ds9jjpE1.mjs → stack-t2tN1jYo.mjs} +21 -21
- package/dist/stack-t2tN1jYo.mjs.map +1 -0
- package/dist/{stage-D9dfV1Ey.mjs → stage-B4gqRg7l.mjs} +7 -7
- package/dist/{stage-D9dfV1Ey.mjs.map → stage-B4gqRg7l.mjs.map} +1 -1
- package/dist/{stage-kGc9L3yB.cjs → stage-Clk6oQO_.cjs} +7 -7
- package/dist/{stage-kGc9L3yB.cjs.map → stage-Clk6oQO_.cjs.map} +1 -1
- package/dist/{stages-BL22BLJS.mjs → stages-D1rnfO18.mjs} +2 -2
- package/dist/{stages-BL22BLJS.mjs.map → stages-D1rnfO18.mjs.map} +1 -1
- package/dist/{stages-CN53nNOK.cjs → stages-afi9P-Cd.cjs} +2 -2
- package/dist/{stages-CN53nNOK.cjs.map → stages-afi9P-Cd.cjs.map} +1 -1
- package/dist/target/public.cjs +1 -1
- package/dist/target/public.mjs +1 -1
- package/dist/{terminal-C0A7S7fB.mjs → terminal-D4kY5oz7.mjs} +3 -3
- package/dist/{terminal-C0A7S7fB.mjs.map → terminal-D4kY5oz7.mjs.map} +1 -1
- package/dist/{terminal-DVlIWcUb.cjs → terminal-JAudEZRC.cjs} +3 -3
- package/dist/{terminal-DVlIWcUb.cjs.map → terminal-JAudEZRC.cjs.map} +1 -1
- package/dist/vitest.cjs +1 -1
- package/dist/vitest.mjs +1 -1
- package/dist/workspace/index.cjs +1 -1
- package/dist/workspace/index.mjs +1 -1
- package/dist/{workspace-D4hzz6Xb.mjs → workspace-Gubg8xLJ.mjs} +8 -9
- package/dist/workspace-Gubg8xLJ.mjs.map +1 -0
- package/dist/{workspace-DPSdiv-b.cjs → workspace-p7gmCQVS.cjs} +7 -8
- package/dist/workspace-p7gmCQVS.cjs.map +1 -0
- package/package.json +25 -15
- package/dist/SubscriberGenerator-BybB6uez.mjs.map +0 -1
- package/dist/SubscriberGenerator-mZpSuSU7.cjs.map +0 -1
- package/dist/add-BgCYGJpE.mjs.map +0 -1
- package/dist/add-Dp0KQNkQ.cjs.map +0 -1
- package/dist/apps-CJTOIaz3.mjs.map +0 -1
- package/dist/apps-DkMR-qvD.cjs.map +0 -1
- package/dist/compose-BIm9yNH7.cjs.map +0 -1
- package/dist/compose-CZGeE6QJ.mjs.map +0 -1
- package/dist/compose-SmuCWWUh.cjs.map +0 -1
- package/dist/compose-tX6YTa1U.mjs.map +0 -1
- package/dist/credentialSchemas-BAklWDna.cjs.map +0 -1
- package/dist/credentialSchemas-mz9QZTYh.mjs.map +0 -1
- package/dist/databases-C1qqNxTu.mjs.map +0 -1
- package/dist/databases-CrKh5jw6.cjs.map +0 -1
- package/dist/deploy--ia-CGMv.cjs.map +0 -1
- package/dist/deploy-BWFFSN5p.mjs.map +0 -1
- package/dist/discover-CRywE7yc.cjs.map +0 -1
- package/dist/discover-DbDrCQ8h.mjs.map +0 -1
- package/dist/docker-BtUjo-J_.cjs.map +0 -1
- package/dist/docker-DhmU416x.mjs.map +0 -1
- package/dist/encryption-BCaweYBJ.mjs.map +0 -1
- package/dist/encryption-CU5O0Y61.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/ready-BjFMu_1J.mjs.map +0 -1
- package/dist/ready-eVMJIcWn.cjs.map +0 -1
- package/dist/stack-BmG-lKgD.cjs.map +0 -1
- package/dist/stack-Ds9jjpE1.mjs.map +0 -1
- package/dist/workspace-D4hzz6Xb.mjs.map +0 -1
- package/dist/workspace-DPSdiv-b.cjs.map +0 -1
|
@@ -1,25 +1,25 @@
|
|
|
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-CeCOEKP3.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-Gubg8xLJ.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-CWGmV2nQ.mjs";
|
|
5
5
|
import { o as builtinTarget } from "./define-6poNqm5O.mjs";
|
|
6
|
-
import { at as resolveHost, it as isMainFrontendApp, nt as NoDomainForStage } from "./compose-
|
|
7
|
-
import { s as subscriberRoute } from "./SubscriberGenerator-
|
|
8
|
-
import { _ as withSandbox, b as withOutput, i as discover } from "./discover-
|
|
6
|
+
import { at as resolveHost, it as isMainFrontendApp, nt as NoDomainForStage } from "./compose-DuRBnjxx.mjs";
|
|
7
|
+
import { s as subscriberRoute } from "./SubscriberGenerator-CfZWX0lT.mjs";
|
|
8
|
+
import { _ as withSandbox, b as withOutput, i as discover } from "./discover-B_PDDaVj.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-B9tboVm2.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-or_kXTal.mjs";
|
|
12
|
+
import { w as assertSitePasswords } from "./stack-t2tN1jYo.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-CXRa_bwG.mjs";
|
|
14
|
+
import { t as LocalSandbox } from "./local-Cin6exc0.mjs";
|
|
15
|
+
import { E as eventError, S as createStateStore, v as assertStateOutlivesRun, y as assertStateRoom } from "./sniffer-yeftYpWK.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-CLIne3Ny.mjs";
|
|
17
|
+
import { a as findProjectBucket, i as ensureProjectBucket, o as projectBucketName, r as callerAccountId, s as reconcileProjectBucketLifecycle } from "./projectBucket-Coh5K3-g.mjs";
|
|
18
18
|
import { m as recordDnsResource, s as DeployJournal, u as dnsResourceKey } from "./seeds-Ccn0Ru2T.mjs";
|
|
19
|
-
import { n as assertStageCredentials } from "./credentialSchemas-
|
|
19
|
+
import { n as assertStageCredentials } from "./credentialSchemas-BzJiK1nQ.mjs";
|
|
20
20
|
import { resolve } from "node:path";
|
|
21
21
|
import { createHash, createHmac } from "node:crypto";
|
|
22
|
-
import { INBOX_MESSAGES_PREFIX, bucketExpiry, dependentsOf,
|
|
22
|
+
import { INBOX_MESSAGES_PREFIX, bucketExpiry, dependentsOf, environmentCase, providedKeyFor, receiptRecipients } from "@geekmidas/manifest";
|
|
23
23
|
import * as s3Url from "@geekmidas/storage/s3-url";
|
|
24
24
|
//#region src/target/secrets.ts
|
|
25
25
|
/**
|
|
@@ -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
|
});
|
|
@@ -1408,8 +1408,8 @@ async function ensureBucketEvents(ctx, s3, input) {
|
|
|
1408
1408
|
*/
|
|
1409
1409
|
async function ensureEventsKey(ctx, input) {
|
|
1410
1410
|
const { id, topicArn, region } = input;
|
|
1411
|
-
const key = input.key ??
|
|
1412
|
-
const url = ctx.secrets[input.urlKey ??
|
|
1411
|
+
const key = input.key ?? providedKeyFor(id, "objects", "eventsConnectionString");
|
|
1412
|
+
const url = ctx.secrets[input.urlKey ?? providedKeyFor(id, "objects", "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 [
|
|
1546
|
+
return [providedKeyFor(bucket, "objects", "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:
|
|
1786
|
+
urlKey: providedKeyFor(id, "objects", "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 =
|
|
2095
|
+
const urlKey = providedKeyFor(id, "objects", "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
|
-
|
|
2147
|
-
...watched.has(b.id) ? [
|
|
2148
|
-
...b.servers.map((s) =>
|
|
2149
|
+
providedKeyFor(b.id, "objects", "connectionString"),
|
|
2150
|
+
...watched.has(b.id) ? [providedKeyFor(b.id, "objects", "eventsConnectionString")] : [],
|
|
2151
|
+
...b.servers.map((s) => providedKeyFor(s.id, "file-server", "url"))
|
|
2149
2152
|
]);
|
|
2150
2153
|
},
|
|
2151
2154
|
ensure: ensureS3,
|
|
@@ -2351,7 +2354,7 @@ async function ensureIdentity$1(ctx, { SES, ses }, domain) {
|
|
|
2351
2354
|
async function ensureInbox(ctx, { SES, ses }, events, input) {
|
|
2352
2355
|
const { inbox, domain, region, ruleSet } = input;
|
|
2353
2356
|
const name = inboxBucketId(inbox.id);
|
|
2354
|
-
const urlKey =
|
|
2357
|
+
const urlKey = providedKeyFor(inbox.id, inbox.kind, "url");
|
|
2355
2358
|
const topicArn = await ensureTopic(ctx, events, {
|
|
2356
2359
|
id: inbox.id,
|
|
2357
2360
|
topicName: inboxTopicName(ctx.identity.scope, ctx.stage, inbox.id),
|
|
@@ -2372,7 +2375,7 @@ async function ensureInbox(ctx, { SES, ses }, events, input) {
|
|
|
2372
2375
|
id: inbox.id,
|
|
2373
2376
|
topicArn,
|
|
2374
2377
|
region,
|
|
2375
|
-
key:
|
|
2378
|
+
key: providedKeyFor(inbox.topic, "topic", "publisherConnectionString"),
|
|
2376
2379
|
urlKey
|
|
2377
2380
|
});
|
|
2378
2381
|
const rule = {
|
|
@@ -2467,7 +2470,7 @@ async function verifySes(ctx) {
|
|
|
2467
2470
|
if (inboxes.length === 0) return;
|
|
2468
2471
|
stageDomain(ctx);
|
|
2469
2472
|
for (const inbox of inboxes) {
|
|
2470
|
-
const missing = [
|
|
2473
|
+
const missing = [providedKeyFor(inbox.id, inbox.kind, "url"), providedKeyFor(inbox.topic, "topic", "publisherConnectionString")].filter((key) => ctx.secrets[key] === void 0);
|
|
2471
2474
|
if (missing.length > 0) throw new InboxNotProvisioned(ctx.stage, inbox.id, missing);
|
|
2472
2475
|
}
|
|
2473
2476
|
}
|
|
@@ -2478,7 +2481,7 @@ const sesProvider = {
|
|
|
2478
2481
|
provisioning: SES_PROVISIONING,
|
|
2479
2482
|
credentials: awsProvisioningCredentials,
|
|
2480
2483
|
runtimeKeys(manifest) {
|
|
2481
|
-
return inboxConstructs(manifest).flatMap((inbox) => [
|
|
2484
|
+
return inboxConstructs(manifest).flatMap((inbox) => [providedKeyFor(inbox.id, inbox.kind, "url"), providedKeyFor(inbox.topic, "topic", "publisherConnectionString")]);
|
|
2482
2485
|
},
|
|
2483
2486
|
ensure: ensureSes,
|
|
2484
2487
|
verify: verifySes
|
|
@@ -2601,7 +2604,7 @@ function identityArn(region, account, domain) {
|
|
|
2601
2604
|
* not write — one set by hand, or imported — which it then leaves alone.
|
|
2602
2605
|
*/
|
|
2603
2606
|
function urlSetElsewhere(ctx, email) {
|
|
2604
|
-
const given = ctx.secrets[
|
|
2607
|
+
const given = ctx.secrets[providedKeyFor(email, "email", "url")];
|
|
2605
2608
|
if (given === void 0) return false;
|
|
2606
2609
|
const record = ctx.state.record(`iam-access-key:${email}`);
|
|
2607
2610
|
if (!record) return true;
|
|
@@ -2629,7 +2632,7 @@ function senderOf(ctx, email) {
|
|
|
2629
2632
|
address: ctx.config.from,
|
|
2630
2633
|
ours: true
|
|
2631
2634
|
};
|
|
2632
|
-
const held = ctx.secrets[
|
|
2635
|
+
const held = ctx.secrets[providedKeyFor(email, "email", "from")];
|
|
2633
2636
|
const wrote = ctx.state.record(senderEntry(email).key)?.id;
|
|
2634
2637
|
const domain = ctx.workspace.domains?.[ctx.stage];
|
|
2635
2638
|
const fallback = domain ? `noreply@${domain}` : void 0;
|
|
@@ -2669,7 +2672,7 @@ async function iamClients(credential, region) {
|
|
|
2669
2672
|
async function ensureSesEmail(ctx) {
|
|
2670
2673
|
const owned = emailConstructs(ctx.manifest).filter((email) => {
|
|
2671
2674
|
if (!urlSetElsewhere(ctx, email.id)) return true;
|
|
2672
|
-
ctx.log(` ${email.id}: ${
|
|
2675
|
+
ctx.log(` ${email.id}: ${providedKeyFor(email.id, "email", "url")} is set in the stage's secrets — it sends with that, and nothing is created for it`);
|
|
2673
2676
|
return false;
|
|
2674
2677
|
});
|
|
2675
2678
|
if (owned.length === 0) return;
|
|
@@ -2694,10 +2697,10 @@ async function ensureSesEmail(ctx) {
|
|
|
2694
2697
|
});
|
|
2695
2698
|
await ensureAccessKey(ctx, clients, {
|
|
2696
2699
|
id: email.id,
|
|
2697
|
-
secret: smtpKeySecret(
|
|
2700
|
+
secret: smtpKeySecret(providedKeyFor(email.id, "email", "url"), region),
|
|
2698
2701
|
...user
|
|
2699
2702
|
});
|
|
2700
|
-
const fromKey =
|
|
2703
|
+
const fromKey = providedKeyFor(email.id, "email", "from");
|
|
2701
2704
|
if (ctx.secrets[fromKey] !== from) await ctx.change({
|
|
2702
2705
|
construct: email.id,
|
|
2703
2706
|
resource: fromKey,
|
|
@@ -2762,7 +2765,7 @@ async function noteSandbox(ctx, { SES, ses }, region) {
|
|
|
2762
2765
|
/** The cheap check every deploy runs: each mail construct's keys are in the stage's secrets. */
|
|
2763
2766
|
async function verifySesEmail(ctx) {
|
|
2764
2767
|
for (const email of emailConstructs(ctx.manifest)) {
|
|
2765
|
-
const missing = [
|
|
2768
|
+
const missing = [providedKeyFor(email.id, "email", "url"), providedKeyFor(email.id, "email", "from")].filter((key) => ctx.secrets[key] === void 0);
|
|
2766
2769
|
if (missing.length > 0) throw new EmailNotProvisioned(ctx.stage, email.id, missing);
|
|
2767
2770
|
}
|
|
2768
2771
|
}
|
|
@@ -2783,7 +2786,7 @@ const BUILTIN_PROVIDERS = {
|
|
|
2783
2786
|
provisioning: SES_PROVISIONING,
|
|
2784
2787
|
credentials: awsProvisioningCredentials,
|
|
2785
2788
|
runtimeKeys(manifest) {
|
|
2786
|
-
return emailConstructs(manifest).flatMap((email) => [
|
|
2789
|
+
return emailConstructs(manifest).flatMap((email) => [providedKeyFor(email.id, "email", "url"), providedKeyFor(email.id, "email", "from")]);
|
|
2787
2790
|
},
|
|
2788
2791
|
ensure: ensureSesEmail,
|
|
2789
2792
|
verify: verifySesEmail
|
|
@@ -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(environmentCase(`${id}_url`), providedKeyFor(id, declaration.kind, "connectionString"), (value) => !/^https?:\/\//i.test(value));
|
|
3096
|
+
}
|
|
3097
|
+
for (const [id, declaration] of entries) {
|
|
3098
|
+
if (declaration.kind !== "file-server") continue;
|
|
3099
|
+
move(environmentCase(`${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-F6GA-u59.mjs.map
|