@geekmidas/cli 10.0.0-alpha.164 → 10.0.0-alpha.166
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-DSzYpSc3.cjs → GoDaddyProvider-DClFHezd.cjs} +2 -2
- package/dist/{GoDaddyProvider-DSzYpSc3.cjs.map → GoDaddyProvider-DClFHezd.cjs.map} +1 -1
- package/dist/{GoDaddyProvider-BrZ7WtmP.mjs → GoDaddyProvider-mnY-cdD2.mjs} +2 -2
- package/dist/{GoDaddyProvider-BrZ7WtmP.mjs.map → GoDaddyProvider-mnY-cdD2.mjs.map} +1 -1
- package/dist/{HostingerProvider-D7N8GbQm.mjs → HostingerProvider-39eSGyBa.mjs} +2 -2
- package/dist/{HostingerProvider-D7N8GbQm.mjs.map → HostingerProvider-39eSGyBa.mjs.map} +1 -1
- package/dist/{HostingerProvider-DQusFkZJ.cjs → HostingerProvider-BMyz2LnZ.cjs} +2 -2
- package/dist/{HostingerProvider-DQusFkZJ.cjs.map → HostingerProvider-BMyz2LnZ.cjs.map} +1 -1
- package/dist/{LegacyStateStore-B2vZVXVe.mjs → LegacyStateStore-B2TBaSMq.mjs} +3 -3
- package/dist/{LegacyStateStore-B2vZVXVe.mjs.map → LegacyStateStore-B2TBaSMq.mjs.map} +1 -1
- package/dist/{LegacyStateStore-CxQkI3fQ.cjs → LegacyStateStore-BJY7ntQk.cjs} +3 -3
- package/dist/{LegacyStateStore-CxQkI3fQ.cjs.map → LegacyStateStore-BJY7ntQk.cjs.map} +1 -1
- package/dist/{LocalStateStore-ff4XiebR.mjs → LocalStateStore-8LFd-aMA.mjs} +2 -2
- package/dist/{LocalStateStore-ff4XiebR.mjs.map → LocalStateStore-8LFd-aMA.mjs.map} +1 -1
- package/dist/{LocalStateStore-CrrjFgMc.cjs → LocalStateStore-BvoEjPi5.cjs} +2 -2
- package/dist/{LocalStateStore-CrrjFgMc.cjs.map → LocalStateStore-BvoEjPi5.cjs.map} +1 -1
- package/dist/{S3StateStore-62sFppnE.mjs → S3StateStore-DMzsqfSa.mjs} +4 -4
- package/dist/{S3StateStore-62sFppnE.mjs.map → S3StateStore-DMzsqfSa.mjs.map} +1 -1
- package/dist/{S3StateStore-EnatbBd3.cjs → S3StateStore-eeA5NXRa.cjs} +4 -4
- package/dist/{S3StateStore-EnatbBd3.cjs.map → S3StateStore-eeA5NXRa.cjs.map} +1 -1
- package/dist/{SSMStateStore-CYPYh1c7.cjs → SSMStateStore-BUv-du0T.cjs} +2 -2
- package/dist/{SSMStateStore-CYPYh1c7.cjs.map → SSMStateStore-BUv-du0T.cjs.map} +1 -1
- package/dist/{SSMStateStore-BON4jyRR.mjs → SSMStateStore-CE2DTAtT.mjs} +2 -2
- package/dist/{SSMStateStore-BON4jyRR.mjs.map → SSMStateStore-CE2DTAtT.mjs.map} +1 -1
- package/dist/{add-CzoX8swL.mjs → add-BgCYGJpE.mjs} +6 -6
- package/dist/{add-CzoX8swL.mjs.map → add-BgCYGJpE.mjs.map} +1 -1
- package/dist/{add-D65M2URP.cjs → add-Dp0KQNkQ.cjs} +7 -7
- package/dist/{add-D65M2URP.cjs.map → add-Dp0KQNkQ.cjs.map} +1 -1
- package/dist/{apps-Dquc1K9N.mjs → apps-CJTOIaz3.mjs} +4 -5
- package/dist/{apps-Dquc1K9N.mjs.map → apps-CJTOIaz3.mjs.map} +1 -1
- package/dist/{apps-DY82zCeA.cjs → apps-DkMR-qvD.cjs} +22 -23
- package/dist/{apps-DY82zCeA.cjs.map → apps-DkMR-qvD.cjs.map} +1 -1
- package/dist/{bundler-wtMYRk9K.cjs → bundler-CA7KimJ0.cjs} +6 -6
- package/dist/{bundler-wtMYRk9K.cjs.map → bundler-CA7KimJ0.cjs.map} +1 -1
- package/dist/{bundler-9RpLU2H3.mjs → bundler-Dt1ffXl6.mjs} +6 -6
- package/dist/{bundler-9RpLU2H3.mjs.map → bundler-Dt1ffXl6.mjs.map} +1 -1
- package/dist/{cli-D0Tu6u1G.mjs → cli-C-fdEb8N.mjs} +5 -5
- package/dist/{cli-D0Tu6u1G.mjs.map → cli-C-fdEb8N.mjs.map} +1 -1
- package/dist/{cli-CgZuiNWv.cjs → cli-CY1Cp8yN.cjs} +5 -5
- package/dist/{cli-CgZuiNWv.cjs.map → cli-CY1Cp8yN.cjs.map} +1 -1
- package/dist/{compose-DgBUpgXh.cjs → compose-BIm9yNH7.cjs} +6 -6
- package/dist/{compose-DgBUpgXh.cjs.map → compose-BIm9yNH7.cjs.map} +1 -1
- package/dist/{compose-pbLaJlts.mjs → compose-CZGeE6QJ.mjs} +6 -6
- package/dist/{compose-pbLaJlts.mjs.map → compose-CZGeE6QJ.mjs.map} +1 -1
- package/dist/{compose-kEjxTamg.cjs → compose-SmuCWWUh.cjs} +22 -10
- package/dist/compose-SmuCWWUh.cjs.map +1 -0
- package/dist/{compose-BfTrMiAk.mjs → compose-tX6YTa1U.mjs} +22 -10
- package/dist/compose-tX6YTa1U.mjs.map +1 -0
- package/dist/{config-DNoWqavN.d.cts → config-B8gSu59v.d.mts} +3 -3
- package/dist/{config-BxSSAzVi.d.mts.map → config-B8gSu59v.d.mts.map} +1 -1
- package/dist/{config-BxSSAzVi.d.mts → config-u5XdE1Cq.d.cts} +3 -3
- package/dist/{config-DNoWqavN.d.cts.map → config-u5XdE1Cq.d.cts.map} +1 -1
- package/dist/config.cjs +457 -19
- package/dist/config.cjs.map +1 -0
- package/dist/config.d.cts +3 -3
- package/dist/config.d.mts +3 -3
- package/dist/config.mjs +440 -2
- package/dist/config.mjs.map +1 -0
- package/dist/{credentials-Bel6afW2.cjs → credentials-CS3Dr-pv.cjs} +6 -6
- package/dist/{credentials-Bel6afW2.cjs.map → credentials-CS3Dr-pv.cjs.map} +1 -1
- package/dist/{credentials-BgtOz5ec.mjs → credentials-V3WgiKmZ.mjs} +6 -6
- package/dist/{credentials-BgtOz5ec.mjs.map → credentials-V3WgiKmZ.mjs.map} +1 -1
- package/dist/deploy/public.cjs +13 -13
- package/dist/deploy/public.d.cts +4 -4
- package/dist/deploy/public.d.mts +4 -4
- package/dist/deploy/public.mjs +13 -13
- package/dist/{deploy-C4V-nsOF.cjs → deploy--ia-CGMv.cjs} +174 -68
- package/dist/deploy--ia-CGMv.cjs.map +1 -0
- package/dist/{deploy-D-5ib-ah.mjs → deploy-BWFFSN5p.mjs} +166 -60
- package/dist/deploy-BWFFSN5p.mjs.map +1 -0
- package/dist/{destroy-DuQqz53a.cjs → destroy-CrxF8Dlk.cjs} +12 -12
- package/dist/{destroy-DuQqz53a.cjs.map → destroy-CrxF8Dlk.cjs.map} +1 -1
- package/dist/{destroy-CYQCEn4A.mjs → destroy-ZNiKL3--.mjs} +12 -12
- package/dist/{destroy-CYQCEn4A.mjs.map → destroy-ZNiKL3--.mjs.map} +1 -1
- package/dist/{docker-BMReDeMB.cjs → docker-BtUjo-J_.cjs} +9 -8
- package/dist/{docker-BMReDeMB.cjs.map → docker-BtUjo-J_.cjs.map} +1 -1
- package/dist/{docker-BEsTfsFc.mjs → docker-DhmU416x.mjs} +6 -5
- package/dist/{docker-BEsTfsFc.mjs.map → docker-DhmU416x.mjs.map} +1 -1
- package/dist/{dokploy-BuYCnz9U.mjs → dokploy-BszAUbbA.mjs} +2 -2
- package/dist/{dokploy-BuYCnz9U.mjs.map → dokploy-BszAUbbA.mjs.map} +1 -1
- package/dist/{dokploy-BpPAgZ0u.cjs → dokploy-ComPiFLl.cjs} +2 -2
- package/dist/{dokploy-BpPAgZ0u.cjs.map → dokploy-ComPiFLl.cjs.map} +1 -1
- package/dist/{eas-DjVtUdb4.mjs → eas-DQudP2g2.mjs} +3 -3
- package/dist/{eas-DjVtUdb4.mjs.map → eas-DQudP2g2.mjs.map} +1 -1
- package/dist/{eas-H-6ixmsY.cjs → eas-zxVAWY6c.cjs} +6 -6
- package/dist/{eas-H-6ixmsY.cjs.map → eas-zxVAWY6c.cjs.map} +1 -1
- package/dist/{encryption-CR4aMkSK.mjs → encryption-BCaweYBJ.mjs} +4 -4
- package/dist/{encryption-CR4aMkSK.mjs.map → encryption-BCaweYBJ.mjs.map} +1 -1
- package/dist/{encryption-BvCsBp2p.cjs → encryption-CU5O0Y61.cjs} +4 -4
- package/dist/{encryption-BvCsBp2p.cjs.map → encryption-CU5O0Y61.cjs.map} +1 -1
- package/dist/{engine-upEpdhEF.mjs → engine-BzeCK6e8.mjs} +10 -11
- package/dist/{engine-upEpdhEF.mjs.map → engine-BzeCK6e8.mjs.map} +1 -1
- package/dist/{engine-CV2wqRFl.cjs → engine-xrlcbr1g.cjs} +11 -12
- package/dist/{engine-CV2wqRFl.cjs.map → engine-xrlcbr1g.cjs.map} +1 -1
- package/dist/{github-D2l7aqFx.mjs → github-CHClpJZS.mjs} +116 -72
- package/dist/github-CHClpJZS.mjs.map +1 -0
- package/dist/{github-BDOLgdMp.cjs → github-Jcrqfzg0.cjs} +116 -72
- package/dist/github-Jcrqfzg0.cjs.map +1 -0
- package/dist/{googlePlay-DJ2Kv0UX.mjs → googlePlay-Dk_pnif9.mjs} +5 -5
- package/dist/{googlePlay-DJ2Kv0UX.mjs.map → googlePlay-Dk_pnif9.mjs.map} +1 -1
- package/dist/{googlePlay-B3FR1VGL.cjs → googlePlay-e_tIBr4n.cjs} +5 -5
- package/dist/{googlePlay-B3FR1VGL.cjs.map → googlePlay-e_tIBr4n.cjs.map} +1 -1
- package/dist/{iam-BVPpX76R.cjs → iam-B6WLUf_x.cjs} +2 -2
- package/dist/{iam-BVPpX76R.cjs.map → iam-B6WLUf_x.cjs.map} +1 -1
- package/dist/{iam-q9ALh-Y5.mjs → iam-BKfO7u14.mjs} +2 -2
- package/dist/{iam-q9ALh-Y5.mjs.map → iam-BKfO7u14.mjs.map} +1 -1
- package/dist/{index-Dy4ojz5P.d.cts → index-1H93w_H6.d.cts} +2 -2
- package/dist/{index-BC1BLv9Q.d.mts.map → index-1H93w_H6.d.cts.map} +1 -1
- package/dist/{index-BC1BLv9Q.d.mts → index-DFZ0SMwN.d.mts} +2 -2
- package/dist/{index-Dy4ojz5P.d.cts.map → index-DFZ0SMwN.d.mts.map} +1 -1
- package/dist/index.cjs +71 -71
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +65 -65
- package/dist/index.mjs.map +1 -1
- package/dist/{local-COaqGFDc.mjs → local-DUi3f-WB.mjs} +2 -2
- package/dist/{local-COaqGFDc.mjs.map → local-DUi3f-WB.mjs.map} +1 -1
- package/dist/{local-DhAnAhXn.cjs → local-Dc2h2Ex3.cjs} +2 -2
- package/dist/{local-DhAnAhXn.cjs.map → local-Dc2h2Ex3.cjs.map} +1 -1
- package/dist/{migrate-CusdrYsn.cjs → migrate-BU4eyd7z.cjs} +6 -6
- package/dist/{migrate-CusdrYsn.cjs.map → migrate-BU4eyd7z.cjs.map} +1 -1
- package/dist/{migrate-Nt9NOr1s.mjs → migrate-BxFCXc7M.mjs} +6 -6
- package/dist/{migrate-Nt9NOr1s.mjs.map → migrate-BxFCXc7M.mjs.map} +1 -1
- package/dist/{migrate-Hjvo9j_J.cjs → migrate-CIjcBr96.cjs} +4 -4
- package/dist/{migrate-Hjvo9j_J.cjs.map → migrate-CIjcBr96.cjs.map} +1 -1
- package/dist/{migrate-CpT7qBZE.mjs → migrate-CbpeVxEW.mjs} +4 -4
- package/dist/{migrate-CpT7qBZE.mjs.map → migrate-CbpeVxEW.mjs.map} +1 -1
- package/dist/{notes-CZvLIjfg.cjs → notes-DJyFkK13.cjs} +7 -8
- package/dist/{notes-CZvLIjfg.cjs.map → notes-DJyFkK13.cjs.map} +1 -1
- package/dist/{notes-B-tgKkvp.mjs → notes-TDHMzdVt.mjs} +3 -4
- package/dist/{notes-B-tgKkvp.mjs.map → notes-TDHMzdVt.mjs.map} +1 -1
- package/dist/openapi.cjs +3 -3
- package/dist/openapi.cjs.map +1 -1
- package/dist/openapi.d.cts +1 -1
- package/dist/openapi.d.mts +1 -1
- package/dist/openapi.mjs +2 -2
- package/dist/{projectBucket-DNAOBIYZ.mjs → projectBucket-BPzx0b0t.mjs} +2 -2
- package/dist/{projectBucket-DNAOBIYZ.mjs.map → projectBucket-BPzx0b0t.mjs.map} +1 -1
- package/dist/{projectBucket-XyxlpATc.cjs → projectBucket-CoskwJC5.cjs} +2 -2
- package/dist/{projectBucket-XyxlpATc.cjs.map → projectBucket-CoskwJC5.cjs.map} +1 -1
- package/dist/{publish-DmBXVNlk.cjs → publish-DB3-zkpm.cjs} +2 -2
- package/dist/{publish-DmBXVNlk.cjs.map → publish-DB3-zkpm.cjs.map} +1 -1
- package/dist/{publish-CwjRq8Ye.mjs → publish-LZ1eb-MI.mjs} +2 -2
- package/dist/{publish-CwjRq8Ye.mjs.map → publish-LZ1eb-MI.mjs.map} +1 -1
- package/dist/reconcile/public.d.cts +1 -1
- package/dist/reconcile/public.d.mts +1 -1
- package/dist/{resolve-BuqA14hD.cjs → resolve-B5_tOTJG.cjs} +4 -4
- package/dist/{resolve-BuqA14hD.cjs.map → resolve-B5_tOTJG.cjs.map} +1 -1
- package/dist/{resolve-vOUrXSHP.mjs → resolve-jez3Y1S0.mjs} +4 -4
- package/dist/{resolve-vOUrXSHP.mjs.map → resolve-jez3Y1S0.mjs.map} +1 -1
- package/dist/{rollback-CiyKH1HK.cjs → rollback-BNo1bCLO.cjs} +8 -8
- package/dist/{rollback-CiyKH1HK.cjs.map → rollback-BNo1bCLO.cjs.map} +1 -1
- package/dist/{rollback-glkFgz6-.mjs → rollback-BtOfxwo-.mjs} +8 -8
- package/dist/{rollback-glkFgz6-.mjs.map → rollback-BtOfxwo-.mjs.map} +1 -1
- package/dist/{runtime-MZ5Pqgan.d.mts → runtime-CKOkIrw0.d.cts} +2 -2
- package/dist/{runtime-BySbkdBz.d.cts.map → runtime-CKOkIrw0.d.cts.map} +1 -1
- package/dist/{runtime-BySbkdBz.d.cts → runtime-Cdvv8SfU.d.mts} +2 -2
- package/dist/{runtime-MZ5Pqgan.d.mts.map → runtime-Cdvv8SfU.d.mts.map} +1 -1
- package/dist/{s3-BZbRcH8T.mjs → s3-Bf_75vVl.mjs} +3 -3
- package/dist/{s3-BZbRcH8T.mjs.map → s3-Bf_75vVl.mjs.map} +1 -1
- package/dist/{s3-C0EBuF8n.cjs → s3-BlPwyu1L.cjs} +3 -3
- package/dist/{s3-C0EBuF8n.cjs.map → s3-BlPwyu1L.cjs.map} +1 -1
- package/dist/{seeds-D7q1zKCJ.cjs → seeds-Bc3niNVb.cjs} +95 -82
- package/dist/seeds-Bc3niNVb.cjs.map +1 -0
- package/dist/{seeds-y1rzXlAc.mjs → seeds-Ccn0Ru2T.mjs} +84 -83
- package/dist/seeds-Ccn0Ru2T.mjs.map +1 -0
- package/dist/{serverSetup-Dlj7JQW-.mjs → serverSetup-D0Zor2i4.mjs} +8 -8
- package/dist/{serverSetup-Dlj7JQW-.mjs.map → serverSetup-D0Zor2i4.mjs.map} +1 -1
- package/dist/{serverSetup-n1Znminh.cjs → serverSetup-D30vVD6t.cjs} +8 -8
- package/dist/{serverSetup-n1Znminh.cjs.map → serverSetup-D30vVD6t.cjs.map} +1 -1
- package/dist/{sniffer-DDAxYDqU.cjs → sniffer-Bw00z3I8.cjs} +8 -8
- package/dist/{sniffer-DDAxYDqU.cjs.map → sniffer-Bw00z3I8.cjs.map} +1 -1
- package/dist/{sniffer-BgzTs_Zt.mjs → sniffer-DdPDiNmc.mjs} +8 -8
- package/dist/{sniffer-BgzTs_Zt.mjs.map → sniffer-DdPDiNmc.mjs.map} +1 -1
- package/dist/{snsSubscriptions-CCyxCMoc.mjs → snsSubscriptions-DBxVTR6Y.mjs} +3 -3
- package/dist/{snsSubscriptions-CCyxCMoc.mjs.map → snsSubscriptions-DBxVTR6Y.mjs.map} +1 -1
- package/dist/{snsSubscriptions-Dr5ghfa5.cjs → snsSubscriptions-g7apv_fy.cjs} +3 -3
- package/dist/{snsSubscriptions-Dr5ghfa5.cjs.map → snsSubscriptions-g7apv_fy.cjs.map} +1 -1
- package/dist/{sst-DBkHn3mA.cjs → sst-CEs0bMxj.cjs} +6 -6
- package/dist/{sst-DBkHn3mA.cjs.map → sst-CEs0bMxj.cjs.map} +1 -1
- package/dist/{sst-CV5TemXa.mjs → sst-DJ22YDEq.mjs} +5 -5
- package/dist/{sst-CV5TemXa.mjs.map → sst-DJ22YDEq.mjs.map} +1 -1
- package/dist/{stack-Dku1pOA2.cjs → stack-BmG-lKgD.cjs} +12 -13
- package/dist/{stack-Dku1pOA2.cjs.map → stack-BmG-lKgD.cjs.map} +1 -1
- package/dist/{stack-r97Ao-uG.mjs → stack-Ds9jjpE1.mjs} +7 -8
- package/dist/{stack-r97Ao-uG.mjs.map → stack-Ds9jjpE1.mjs.map} +1 -1
- package/dist/{stage-Deb-7Ohk.mjs → stage-D9dfV1Ey.mjs} +7 -7
- package/dist/{stage-Deb-7Ohk.mjs.map → stage-D9dfV1Ey.mjs.map} +1 -1
- package/dist/{stage-Du8I-UIa.cjs → stage-kGc9L3yB.cjs} +7 -7
- package/dist/{stage-Du8I-UIa.cjs.map → stage-kGc9L3yB.cjs.map} +1 -1
- package/dist/{stages-CW7qtiJ2.mjs → stages-BL22BLJS.mjs} +3 -3
- package/dist/{stages-CW7qtiJ2.mjs.map → stages-BL22BLJS.mjs.map} +1 -1
- package/dist/{stages-CtqmEJJW.cjs → stages-CN53nNOK.cjs} +3 -3
- package/dist/{stages-CtqmEJJW.cjs.map → stages-CN53nNOK.cjs.map} +1 -1
- 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/{terminal-BEa0E3pz.mjs → terminal-C0A7S7fB.mjs} +2 -2
- package/dist/{terminal-BEa0E3pz.mjs.map → terminal-C0A7S7fB.mjs.map} +1 -1
- package/dist/{terminal-BXpp9kBr.cjs → terminal-DVlIWcUb.cjs} +2 -2
- package/dist/{terminal-BXpp9kBr.cjs.map → terminal-DVlIWcUb.cjs.map} +1 -1
- package/dist/{types-BsfPHUFZ.d.cts → types-DEmuMHsS.d.cts} +9 -1
- package/dist/types-DEmuMHsS.d.cts.map +1 -0
- package/dist/{types-BXboFkn9.d.mts → types-g_S0_RAi.d.mts} +9 -1
- package/dist/types-g_S0_RAi.d.mts.map +1 -0
- package/dist/workspace/index.cjs +1 -1
- package/dist/workspace/index.d.cts +2 -2
- package/dist/workspace/index.d.mts +2 -2
- package/dist/workspace/index.mjs +1 -1
- package/dist/{workspace-D5Vm2qcy.mjs → workspace-D4hzz6Xb.mjs} +331 -3
- package/dist/workspace-D4hzz6Xb.mjs.map +1 -0
- package/dist/{workspace-VhzmoxOv.cjs → workspace-DPSdiv-b.cjs} +371 -1
- package/dist/workspace-DPSdiv-b.cjs.map +1 -0
- package/package.json +15 -15
- package/dist/compose-BfTrMiAk.mjs.map +0 -1
- package/dist/compose-kEjxTamg.cjs.map +0 -1
- package/dist/config-CXj-9eRo.cjs +0 -890
- package/dist/config-CXj-9eRo.cjs.map +0 -1
- package/dist/config-Di0oJwM9.mjs +0 -759
- package/dist/config-Di0oJwM9.mjs.map +0 -1
- package/dist/deploy-C4V-nsOF.cjs.map +0 -1
- package/dist/deploy-D-5ib-ah.mjs.map +0 -1
- package/dist/github-BDOLgdMp.cjs.map +0 -1
- package/dist/github-D2l7aqFx.mjs.map +0 -1
- package/dist/seeds-D7q1zKCJ.cjs.map +0 -1
- package/dist/seeds-y1rzXlAc.mjs.map +0 -1
- package/dist/types-BXboFkn9.d.mts.map +0 -1
- package/dist/types-BsfPHUFZ.d.cts.map +0 -1
- package/dist/workspace-D5Vm2qcy.mjs.map +0 -1
- package/dist/workspace-VhzmoxOv.cjs.map +0 -1
package/dist/deploy/public.cjs
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_errors = require("../errors-DMC4Umsb.cjs");
|
|
3
|
-
const require_credentials = require("../credentials-
|
|
4
|
-
const require_workspace = require("../workspace-
|
|
5
|
-
const require_apps = require("../apps-
|
|
3
|
+
const require_credentials = require("../credentials-CS3Dr-pv.cjs");
|
|
4
|
+
const require_workspace = require("../workspace-DPSdiv-b.cjs");
|
|
5
|
+
const require_apps = require("../apps-DkMR-qvD.cjs");
|
|
6
6
|
const require_define = require("../define-crmMcXFS.cjs");
|
|
7
|
-
const require_config = require("../config-CXj-9eRo.cjs");
|
|
8
7
|
const require_discover = require("../discover-CRywE7yc.cjs");
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const
|
|
8
|
+
const require_config = require("../config.cjs");
|
|
9
|
+
const require_resolve = require("../resolve-B5_tOTJG.cjs");
|
|
10
|
+
const require_notes = require("../notes-DJyFkK13.cjs");
|
|
11
|
+
const require_local = require("../local-Dc2h2Ex3.cjs");
|
|
12
|
+
const require_sniffer = require("../sniffer-Bw00z3I8.cjs");
|
|
13
|
+
const require_deploy = require("../deploy--ia-CGMv.cjs");
|
|
14
|
+
const require_seeds = require("../seeds-Bc3niNVb.cjs");
|
|
15
|
+
const require_engine = require("../engine-xrlcbr1g.cjs");
|
|
16
|
+
const require_rollback = require("../rollback-BNo1bCLO.cjs");
|
|
17
17
|
const require_provider = require("../provider-BqpjG9QM.cjs");
|
|
18
|
-
const require_sst = require("../sst-
|
|
18
|
+
const require_sst = require("../sst-CEs0bMxj.cjs");
|
|
19
19
|
let node_path = require("node:path");
|
|
20
20
|
let node_fs = require("node:fs");
|
|
21
21
|
//#region src/sandbox/install.ts
|
package/dist/deploy/public.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { At as ReleasedImage, Bt as SandboxExecOptions, D as WorkspaceConfig, Dt as StateLocked, Et as LocalStateInCi, Ft as DeployIdentity, Gt as GkmError, Ht as SandboxResult, It as deployIdentity, Lt as SECRETS_DIR_ENV, Mt as GithubActor, Nt as LocalActor, Rt as Sandbox, St as ConstructsNotSerializable, U as AnyDeployTarget, Ut as SecretNameInvalid, Vt as SandboxOutput, Wt as confineCwd, _t as StoredCredentialsOptions, at as DeployPhase, bt as ProviderKind, ct as AppDeployResult, dt as Credential, ft as CredentialKind, gt as MissingCredential, ht as CredentialRequest, it as DeployEventType, jt as Actor, kt as StateVersionConflict, lt as DeployResult, mt as CredentialProvider, nt as DeployEvent, ot as ResourceChange, pt as CredentialKinds, r as GkmConfig, rt as DeployEventError, st as ResourceVia, ut as AwsCredential, vt as chainCredentials, xt as ConstructDiscoveryFailed, yt as storedCredentials, zt as SandboxCwdEscape } from "../types-
|
|
2
|
-
import "../index-
|
|
3
|
-
import { i as ConfigLoadFailed, o as ConfigObjectNotSerializable } from "../config-
|
|
4
|
-
import { a as TargetRuntimeMismatch, c as DeployTargetNotYetSupported, i as TargetPackageInvalid, l as UnknownDeployTarget, n as InvalidTargetOptions, o as ProviderRemoved, r as TargetEntryInvalid, s as TargetPackageNotFound, t as TargetRuntimeUndeclared } from "../runtime-
|
|
1
|
+
import { At as ReleasedImage, Bt as SandboxExecOptions, D as WorkspaceConfig, Dt as StateLocked, Et as LocalStateInCi, Ft as DeployIdentity, Gt as GkmError, Ht as SandboxResult, It as deployIdentity, Lt as SECRETS_DIR_ENV, Mt as GithubActor, Nt as LocalActor, Rt as Sandbox, St as ConstructsNotSerializable, U as AnyDeployTarget, Ut as SecretNameInvalid, Vt as SandboxOutput, Wt as confineCwd, _t as StoredCredentialsOptions, at as DeployPhase, bt as ProviderKind, ct as AppDeployResult, dt as Credential, ft as CredentialKind, gt as MissingCredential, ht as CredentialRequest, it as DeployEventType, jt as Actor, kt as StateVersionConflict, lt as DeployResult, mt as CredentialProvider, nt as DeployEvent, ot as ResourceChange, pt as CredentialKinds, r as GkmConfig, rt as DeployEventError, st as ResourceVia, ut as AwsCredential, vt as chainCredentials, xt as ConstructDiscoveryFailed, yt as storedCredentials, zt as SandboxCwdEscape } from "../types-DEmuMHsS.cjs";
|
|
2
|
+
import "../index-1H93w_H6.cjs";
|
|
3
|
+
import { i as ConfigLoadFailed, o as ConfigObjectNotSerializable } from "../config-u5XdE1Cq.cjs";
|
|
4
|
+
import { a as TargetRuntimeMismatch, c as DeployTargetNotYetSupported, i as TargetPackageInvalid, l as UnknownDeployTarget, n as InvalidTargetOptions, o as ProviderRemoved, r as TargetEntryInvalid, s as TargetPackageNotFound, t as TargetRuntimeUndeclared } from "../runtime-CKOkIrw0.cjs";
|
|
5
5
|
import { ConstructManifest, Declaration } from "@geekmidas/manifest";
|
|
6
6
|
import "@geekmidas/envkit/sniffer";
|
|
7
7
|
import "@geekmidas/db/pg/roles";
|
package/dist/deploy/public.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { At as ReleasedImage, Bt as SandboxExecOptions, D as WorkspaceConfig, Dt as StateLocked, Et as LocalStateInCi, Ft as DeployIdentity, Gt as GkmError, Ht as SandboxResult, It as deployIdentity, Lt as SECRETS_DIR_ENV, Mt as GithubActor, Nt as LocalActor, Rt as Sandbox, St as ConstructsNotSerializable, U as AnyDeployTarget, Ut as SecretNameInvalid, Vt as SandboxOutput, Wt as confineCwd, _t as StoredCredentialsOptions, at as DeployPhase, bt as ProviderKind, ct as AppDeployResult, dt as Credential, ft as CredentialKind, gt as MissingCredential, ht as CredentialRequest, it as DeployEventType, jt as Actor, kt as StateVersionConflict, lt as DeployResult, mt as CredentialProvider, nt as DeployEvent, ot as ResourceChange, pt as CredentialKinds, r as GkmConfig, rt as DeployEventError, st as ResourceVia, ut as AwsCredential, vt as chainCredentials, xt as ConstructDiscoveryFailed, yt as storedCredentials, zt as SandboxCwdEscape } from "../types-
|
|
2
|
-
import "../index-
|
|
3
|
-
import { i as ConfigLoadFailed, o as ConfigObjectNotSerializable } from "../config-
|
|
4
|
-
import { a as TargetRuntimeMismatch, c as DeployTargetNotYetSupported, i as TargetPackageInvalid, l as UnknownDeployTarget, n as InvalidTargetOptions, o as ProviderRemoved, r as TargetEntryInvalid, s as TargetPackageNotFound, t as TargetRuntimeUndeclared } from "../runtime-
|
|
1
|
+
import { At as ReleasedImage, Bt as SandboxExecOptions, D as WorkspaceConfig, Dt as StateLocked, Et as LocalStateInCi, Ft as DeployIdentity, Gt as GkmError, Ht as SandboxResult, It as deployIdentity, Lt as SECRETS_DIR_ENV, Mt as GithubActor, Nt as LocalActor, Rt as Sandbox, St as ConstructsNotSerializable, U as AnyDeployTarget, Ut as SecretNameInvalid, Vt as SandboxOutput, Wt as confineCwd, _t as StoredCredentialsOptions, at as DeployPhase, bt as ProviderKind, ct as AppDeployResult, dt as Credential, ft as CredentialKind, gt as MissingCredential, ht as CredentialRequest, it as DeployEventType, jt as Actor, kt as StateVersionConflict, lt as DeployResult, mt as CredentialProvider, nt as DeployEvent, ot as ResourceChange, pt as CredentialKinds, r as GkmConfig, rt as DeployEventError, st as ResourceVia, ut as AwsCredential, vt as chainCredentials, xt as ConstructDiscoveryFailed, yt as storedCredentials, zt as SandboxCwdEscape } from "../types-g_S0_RAi.mjs";
|
|
2
|
+
import "../index-DFZ0SMwN.mjs";
|
|
3
|
+
import { i as ConfigLoadFailed, o as ConfigObjectNotSerializable } from "../config-B8gSu59v.mjs";
|
|
4
|
+
import { a as TargetRuntimeMismatch, c as DeployTargetNotYetSupported, i as TargetPackageInvalid, l as UnknownDeployTarget, n as InvalidTargetOptions, o as ProviderRemoved, r as TargetEntryInvalid, s as TargetPackageNotFound, t as TargetRuntimeUndeclared } from "../runtime-Cdvv8SfU.mjs";
|
|
5
5
|
import { ConstructManifest, Declaration } from "@geekmidas/manifest";
|
|
6
6
|
import "@geekmidas/db/pg/roles";
|
|
7
7
|
import "@aws-sdk/client-s3";
|
package/dist/deploy/public.mjs
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { t as GkmError } from "../errors-D8Gwp5kU.mjs";
|
|
2
|
-
import { X as deployIdentity, bt as gkmHome, it as CommandTimedOut, n as chainCredentials, r as storedCredentials, rt as CommandFailed, t as MissingCredential, yt as GKM_HOME_ENV } from "../credentials-
|
|
3
|
-
import { V as UnknownStageProvider,
|
|
4
|
-
import { V as detectPackageManager } from "../apps-
|
|
2
|
+
import { X as deployIdentity, bt as gkmHome, it as CommandTimedOut, n as chainCredentials, r as storedCredentials, rt as CommandFailed, t as MissingCredential, yt as GKM_HOME_ENV } from "../credentials-V3WgiKmZ.mjs";
|
|
3
|
+
import { V as UnknownStageProvider, xt as ProvisionedBucketUnreachable } from "../workspace-D4hzz6Xb.mjs";
|
|
4
|
+
import { V as detectPackageManager } from "../apps-CJTOIaz3.mjs";
|
|
5
5
|
import { a as UnknownDeployTarget, i as DeployTargetNotYetSupported } from "../define-6poNqm5O.mjs";
|
|
6
|
-
import { i as ConfigObjectNotSerializable, n as ConfigLoadFailed } from "../config-Di0oJwM9.mjs";
|
|
7
6
|
import { d as SECRETS_DIR_ENV, f as SandboxCwdEscape, g as confineCwd, n as ConstructsNotSerializable, p as SecretNameInvalid, s as SandboxWorkerFailed, t as ConstructDiscoveryFailed } from "../discover-DbDrCQ8h.mjs";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { a as
|
|
13
|
-
import { t as
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
7
|
+
import { ConfigLoadFailed, ConfigObjectNotSerializable } from "../config.mjs";
|
|
8
|
+
import { i as TargetRuntimeMismatch, l as TargetPackageNotFound, n as TargetEntryInvalid, r as TargetPackageInvalid, s as TargetRuntimeUndeclared, t as InvalidTargetOptions } from "../resolve-jez3Y1S0.mjs";
|
|
9
|
+
import { c as DevServicesNeedServerTarget, l as ExternalServicesNotConfigured, o as AllowDevServicesTakesNoValue, s as DEV_SERVICES, t as StageProviderDisabled } from "../notes-TDHMzdVt.mjs";
|
|
10
|
+
import { n as SANDBOX_ENV_ALLOWLIST, r as allowlistedEnv, t as LocalSandbox } from "../local-DUi3f-WB.mjs";
|
|
11
|
+
import { a as DeploymentTimedOut, f as StateLocked, g as StateVersionConflict, i as DeploymentFailed, u as LocalStateInCi } from "../sniffer-DdPDiNmc.mjs";
|
|
12
|
+
import { a as UnknownDeployApps, i as TargetBuildsNothing, n as NoDeployableApps, r as RollbackFailed, t as deploy } from "../deploy-BWFFSN5p.mjs";
|
|
13
|
+
import { t as DeploySeedsFailed } from "../seeds-Ccn0Ru2T.mjs";
|
|
14
|
+
import { _ as RegistryNotConfigured, g as RegistryAmbiguous, h as HealthCheckTimedOut, m as DeployMigrationsFailed, n as FrontendDeployFailed, r as MissingEnvVars, t as BackendDeployFailed, v as RegistryNotFound, y as ProjectNotOwned } from "../engine-BzeCK6e8.mjs";
|
|
15
|
+
import { i as rollbackStage, n as RollbackNeedsApp, r as StageNeverDeployed, t as NothingToRollBack } from "../rollback-BtOfxwo-.mjs";
|
|
16
16
|
import { t as ProviderRemoved } from "../provider-CEOKk8NS.mjs";
|
|
17
|
-
import { i as SurfacesUnhealthy, r as SstOutputsUnreadable, t as SstConfigNotFound } from "../sst-
|
|
17
|
+
import { i as SurfacesUnhealthy, r as SstOutputsUnreadable, t as SstConfigNotFound } from "../sst-DJ22YDEq.mjs";
|
|
18
18
|
import { join, resolve } from "node:path";
|
|
19
19
|
import { existsSync } from "node:fs";
|
|
20
20
|
//#region src/sandbox/install.ts
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
const require_rolldown_runtime = require("./rolldown-runtime-C0BPl7ul.cjs");
|
|
2
2
|
const require_errors = require("./errors-DMC4Umsb.cjs");
|
|
3
|
-
const require_credentials = require("./credentials-
|
|
4
|
-
const require_workspace = require("./workspace-
|
|
5
|
-
const require_apps = require("./apps-
|
|
3
|
+
const require_credentials = require("./credentials-CS3Dr-pv.cjs");
|
|
4
|
+
const require_workspace = require("./workspace-DPSdiv-b.cjs");
|
|
5
|
+
const require_apps = require("./apps-DkMR-qvD.cjs");
|
|
6
6
|
const require_define = require("./define-crmMcXFS.cjs");
|
|
7
|
-
const require_compose = require("./compose-
|
|
8
|
-
const require_config = require("./config-CXj-9eRo.cjs");
|
|
7
|
+
const require_compose = require("./compose-BIm9yNH7.cjs");
|
|
9
8
|
const require_SubscriberGenerator = require("./SubscriberGenerator-mZpSuSU7.cjs");
|
|
10
9
|
const require_discover = require("./discover-CRywE7yc.cjs");
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const
|
|
17
|
-
const
|
|
18
|
-
const
|
|
19
|
-
const
|
|
10
|
+
const require_config = require("./config.cjs");
|
|
11
|
+
const require_resolve = require("./resolve-B5_tOTJG.cjs");
|
|
12
|
+
const require_notes = require("./notes-DJyFkK13.cjs");
|
|
13
|
+
const require_stack = require("./stack-BmG-lKgD.cjs");
|
|
14
|
+
const require_snsSubscriptions = require("./snsSubscriptions-g7apv_fy.cjs");
|
|
15
|
+
const require_local = require("./local-Dc2h2Ex3.cjs");
|
|
16
|
+
const require_sniffer = require("./sniffer-Bw00z3I8.cjs");
|
|
17
|
+
const require_iam = require("./iam-B6WLUf_x.cjs");
|
|
18
|
+
const require_projectBucket = require("./projectBucket-CoskwJC5.cjs");
|
|
19
|
+
const require_seeds = require("./seeds-Bc3niNVb.cjs");
|
|
20
20
|
const require_credentialSchemas = require("./credentialSchemas-BAklWDna.cjs");
|
|
21
21
|
let node_path = require("node:path");
|
|
22
22
|
let node_crypto = require("node:crypto");
|
|
@@ -186,7 +186,7 @@ async function ensureStageBackups(input) {
|
|
|
186
186
|
}
|
|
187
187
|
if (choice.mode !== "on") return choice;
|
|
188
188
|
if (require_workspace.stageProvider(workspace, "objects", stage).mode === "provider") {
|
|
189
|
-
const clash = Object.entries(manifest).find(([id, d]) => d.kind === "objects" &&
|
|
189
|
+
const clash = Object.entries(manifest).find(([id, d]) => d.kind === "objects" && require_workspace.appKey(id) === "backups");
|
|
190
190
|
if (clash) throw new BackupsUserNameTaken(stage, clash[0]);
|
|
191
191
|
}
|
|
192
192
|
const credential = await require_snsSubscriptions.awsProvisioningCredentials({
|
|
@@ -367,7 +367,11 @@ async function writeProviderDns(records, options) {
|
|
|
367
367
|
plan.records.push(planned);
|
|
368
368
|
domains.set(domain, plan);
|
|
369
369
|
}
|
|
370
|
-
if (domains.size === 0) return {
|
|
370
|
+
if (domains.size === 0) return {
|
|
371
|
+
manual,
|
|
372
|
+
changes: [],
|
|
373
|
+
providers: {}
|
|
374
|
+
};
|
|
371
375
|
const plans = [...domains.values()];
|
|
372
376
|
const tokens = await require_snsSubscriptions.dnsCredentials(options.stage, plans.map(({ domain, config }) => ({
|
|
373
377
|
domain,
|
|
@@ -393,10 +397,47 @@ async function writeProviderDns(records, options) {
|
|
|
393
397
|
const host = plans.find((p) => p.domain === change.domain)?.records.find((r) => r.name === change.name)?.host;
|
|
394
398
|
if (host) manual.push(host);
|
|
395
399
|
}
|
|
396
|
-
return {
|
|
400
|
+
return {
|
|
401
|
+
manual: [...new Set(manual)].sort(),
|
|
402
|
+
changes: applied.changes,
|
|
403
|
+
providers: Object.fromEntries(plans.map((p) => [p.domain, p.provider]))
|
|
404
|
+
};
|
|
397
405
|
}
|
|
398
406
|
//#endregion
|
|
399
407
|
//#region src/providers/s3/cdn.ts
|
|
408
|
+
/**
|
|
409
|
+
* A file server over an `s3` bucket, served through a CDN.
|
|
410
|
+
*
|
|
411
|
+
* Without one a file server answers on the bucket's regional endpoint: every
|
|
412
|
+
* reader, wherever they are, fetches from one region, on an `amazonaws.com`
|
|
413
|
+
* host. With one — the default — each file server gets, on the stage:
|
|
414
|
+
*
|
|
415
|
+
* - **a certificate** for `<fileserver>.<domain>`, from ACM in us-east-1 (the
|
|
416
|
+
* one region CloudFront reads certificates from), validated by a CNAME the
|
|
417
|
+
* deploy writes through the stage's DNS providers and keeps, because ACM
|
|
418
|
+
* renews against the same record;
|
|
419
|
+
* - **an origin access control**, which signs CloudFront's requests to the
|
|
420
|
+
* bucket, and a bucket policy statement granting exactly the stage's
|
|
421
|
+
* distributions `s3:GetObject` on exactly the open prefixes (see
|
|
422
|
+
* `bucketPolicy`) — the bucket itself is never public;
|
|
423
|
+
* - **response headers policies**: CORS for the stage's sites (the same
|
|
424
|
+
* derivation the bucket's own CORS rule uses), and, for the paths the file
|
|
425
|
+
* server calls `immutable`, `Cache-Control: public, max-age=31536000,
|
|
426
|
+
* immutable` over whatever the object was stored with;
|
|
427
|
+
* - **a distribution** on that name: HTTPS only, compressed, GET/HEAD/OPTIONS,
|
|
428
|
+
* cached with AWS's managed `CachingOptimized` policy — keyed on the path
|
|
429
|
+
* alone, so no query string or cookie fragments the cache;
|
|
430
|
+
* - **a CNAME** from the name to the distribution, through the same DNS
|
|
431
|
+
* providers.
|
|
432
|
+
*
|
|
433
|
+
* Open paths only: a key outside them is refused to CloudFront by the bucket
|
|
434
|
+
* policy, so the edge answers it 403, and a signed read goes to the bucket's
|
|
435
|
+
* own host as before (`signedUrl` is an S3 presign).
|
|
436
|
+
*
|
|
437
|
+
* Every resource is recorded in the stage's state and reused, found by its
|
|
438
|
+
* name when a run died before recording it, and put back when it drifted.
|
|
439
|
+
* Nothing is ever deleted.
|
|
440
|
+
*/
|
|
400
441
|
/** AWS's managed `CachingOptimized` cache policy: path-keyed, gzip and brotli. */
|
|
401
442
|
const CACHING_OPTIMIZED = "658327ea-f89d-4fab-a63d-7e88639e58f6";
|
|
402
443
|
/** What an immutable path is served with. */
|
|
@@ -465,7 +506,7 @@ var CdnCertificateFailed = class extends require_errors.GkmError {
|
|
|
465
506
|
* `AssetsServer` — see {@link fileServerLabel}.
|
|
466
507
|
*/
|
|
467
508
|
function cdnHost(serverId, domain) {
|
|
468
|
-
return `${
|
|
509
|
+
return `${require_workspace.fileServerLabel(serverId)}.${domain}`.toLowerCase();
|
|
469
510
|
}
|
|
470
511
|
/**
|
|
471
512
|
* The name the stage's CDN resources go by, within CloudFront's limits:
|
|
@@ -474,7 +515,7 @@ function cdnHost(serverId, domain) {
|
|
|
474
515
|
* the whole, so two long names never meet.
|
|
475
516
|
*/
|
|
476
517
|
function cdnName(scope, stage, serverId) {
|
|
477
|
-
const whole = `gkm-${scope}-${stage}-${
|
|
518
|
+
const whole = `gkm-${scope}-${stage}-${require_workspace.appKey(serverId)}`.replace(/[^A-Za-z0-9_-]/g, "-");
|
|
478
519
|
if (whole.length <= 56) return whole;
|
|
479
520
|
return `${whole.slice(0, 47)}-${hash(whole)}`;
|
|
480
521
|
}
|
|
@@ -810,6 +851,15 @@ async function ensureServerCdn(ctx, clients, input) {
|
|
|
810
851
|
};
|
|
811
852
|
}
|
|
812
853
|
/**
|
|
854
|
+
* The idempotency token a certificate is requested with: one per file server
|
|
855
|
+
* and host. ACM answers a repeat of a token within the hour with the
|
|
856
|
+
* certificate it issued for it — so a host changed within the hour of the
|
|
857
|
+
* last request would otherwise get the old host's certificate back.
|
|
858
|
+
*/
|
|
859
|
+
function certificateToken(name, host) {
|
|
860
|
+
return (0, node_crypto.createHash)("sha256").update(`${name}\n${host.toLowerCase()}`).digest("hex").slice(0, 32);
|
|
861
|
+
}
|
|
862
|
+
/**
|
|
813
863
|
* The secret the CDN sends a file server's processors: the one in the stage's
|
|
814
864
|
* secrets, or a new one written there — read by the stack, whose edge checks
|
|
815
865
|
* it, when it composes.
|
|
@@ -856,7 +906,7 @@ async function ensureCertificate(ctx, clients, input) {
|
|
|
856
906
|
arn = (await acm.send(new ACM.RequestCertificateCommand({
|
|
857
907
|
DomainName: host,
|
|
858
908
|
ValidationMethod: "DNS",
|
|
859
|
-
IdempotencyToken: input.name
|
|
909
|
+
IdempotencyToken: certificateToken(input.name, host),
|
|
860
910
|
Tags: require_iam.identityTags(ctx, id).map((t) => ({
|
|
861
911
|
Key: t.Key,
|
|
862
912
|
Value: t.Value
|
|
@@ -1405,7 +1455,7 @@ async function ensureEventsKey(ctx, input) {
|
|
|
1405
1455
|
}
|
|
1406
1456
|
/** Where SNS pushes to a worker: its own host on the stage's domain. */
|
|
1407
1457
|
function workerPushHost(worker, domain) {
|
|
1408
|
-
return `${
|
|
1458
|
+
return `${require_workspace.appKey(worker)}.${domain}`;
|
|
1409
1459
|
}
|
|
1410
1460
|
/**
|
|
1411
1461
|
* One HTTP subscription per subscriber to the bucket's topic, at its route on
|
|
@@ -1498,7 +1548,7 @@ function bucketOrigins(input) {
|
|
|
1498
1548
|
const { manifest, workspace, stage } = input;
|
|
1499
1549
|
const keys = bucketKeys(manifest, input.bucket);
|
|
1500
1550
|
const readers = Object.entries(manifest).filter(([, d]) => d.kind === "rest-api" || d.kind === "websocket-api" || d.kind === "site").filter(([id]) => {
|
|
1501
|
-
const env = require_apps.appEnvKeys(manifest,
|
|
1551
|
+
const env = require_apps.appEnvKeys(manifest, require_workspace.appKey(id));
|
|
1502
1552
|
return env !== void 0 && keys.some((key) => env.has(key));
|
|
1503
1553
|
});
|
|
1504
1554
|
const sites = /* @__PURE__ */ new Set();
|
|
@@ -1512,7 +1562,7 @@ function bucketOrigins(input) {
|
|
|
1512
1562
|
const origins = /* @__PURE__ */ new Set();
|
|
1513
1563
|
const unresolved = [];
|
|
1514
1564
|
for (const id of [...sites].sort()) {
|
|
1515
|
-
const name =
|
|
1565
|
+
const name = require_workspace.appKey(id);
|
|
1516
1566
|
const app = workspace.apps[name];
|
|
1517
1567
|
if (!app) {
|
|
1518
1568
|
unresolved.push(name);
|
|
@@ -1682,7 +1732,7 @@ async function ensureBucket(ctx, stageClients, construct, watchers) {
|
|
|
1682
1732
|
const nameInput = {
|
|
1683
1733
|
scope: ctx.identity.scope,
|
|
1684
1734
|
stage: ctx.stage,
|
|
1685
|
-
id:
|
|
1735
|
+
id: require_workspace.appKey(id)
|
|
1686
1736
|
};
|
|
1687
1737
|
const versioning = ctx.config.versioning ?? construct.versioned;
|
|
1688
1738
|
const open = [...new Set(construct.servers.flatMap((s) => s.open))].sort();
|
|
@@ -2170,7 +2220,7 @@ function inboxConstructs(manifest) {
|
|
|
2170
2220
|
}
|
|
2171
2221
|
/** The name an inbox's receipt rule has: the prefix it is found by, and its id. */
|
|
2172
2222
|
function receiptRuleName(scope, stage, inbox) {
|
|
2173
|
-
return `${rulePrefix(scope, stage)}${
|
|
2223
|
+
return `${rulePrefix(scope, stage)}${require_workspace.appKey(inbox)}`.slice(0, 64);
|
|
2174
2224
|
}
|
|
2175
2225
|
/** What every rule this stage made is named with. */
|
|
2176
2226
|
function rulePrefix(scope, stage) {
|
|
@@ -2302,11 +2352,11 @@ async function ensureIdentity$1(ctx, { SES, ses }, domain) {
|
|
|
2302
2352
|
/** One inbox: its bucket, its topic and their keys, and its receipt rule. */
|
|
2303
2353
|
async function ensureInbox(ctx, { SES, ses }, events, input) {
|
|
2304
2354
|
const { inbox, domain, region, ruleSet } = input;
|
|
2305
|
-
const name =
|
|
2355
|
+
const name = require_workspace.inboxBucketId(inbox.id);
|
|
2306
2356
|
const urlKey = (0, _geekmidas_manifest.provideKey)(inbox.id, "url");
|
|
2307
2357
|
const topicArn = await ensureTopic(ctx, events, {
|
|
2308
2358
|
id: inbox.id,
|
|
2309
|
-
topicName:
|
|
2359
|
+
topicName: require_workspace.inboxTopicName(ctx.identity.scope, ctx.stage, inbox.id),
|
|
2310
2360
|
publisher: "SES",
|
|
2311
2361
|
policy: (arn) => receiptTopicPolicy(arn, events.account)
|
|
2312
2362
|
});
|
|
@@ -2560,19 +2610,44 @@ function urlSetElsewhere(ctx, email) {
|
|
|
2560
2610
|
const user = smtpUser(given);
|
|
2561
2611
|
return user !== record.id && user !== record.data?.previous;
|
|
2562
2612
|
}
|
|
2613
|
+
/** The state entry of the address gkm last wrote as `email`'s sender. */
|
|
2614
|
+
function senderEntry(email) {
|
|
2615
|
+
return {
|
|
2616
|
+
key: `email-from:${email}`,
|
|
2617
|
+
type: "email-from"
|
|
2618
|
+
};
|
|
2619
|
+
}
|
|
2563
2620
|
/**
|
|
2564
|
-
* The address `email` sends from: `from
|
|
2565
|
-
*
|
|
2621
|
+
* The address `email` sends from: `from`; else one the stage's secrets hold
|
|
2622
|
+
* that gkm did not write — set by hand, or imported; else `noreply@` the
|
|
2623
|
+
* stage's domain. An address gkm wrote follows the domain: after a change of
|
|
2624
|
+
* `domains.<stage>`, mail is sent as the new one.
|
|
2566
2625
|
*
|
|
2626
|
+
* @returns the address, and whether it is gkm's to write and record
|
|
2567
2627
|
* @throws {EmailSenderUnknown} with none of them
|
|
2568
2628
|
*/
|
|
2569
2629
|
function senderOf(ctx, email) {
|
|
2570
|
-
if (ctx.config.from) return
|
|
2630
|
+
if (ctx.config.from) return {
|
|
2631
|
+
address: ctx.config.from,
|
|
2632
|
+
ours: true
|
|
2633
|
+
};
|
|
2571
2634
|
const held = ctx.secrets[(0, _geekmidas_manifest.provideKey)(email, "from")];
|
|
2572
|
-
|
|
2635
|
+
const wrote = ctx.state.record(senderEntry(email).key)?.id;
|
|
2573
2636
|
const domain = ctx.workspace.domains?.[ctx.stage];
|
|
2574
|
-
|
|
2575
|
-
return
|
|
2637
|
+
const fallback = domain ? `noreply@${domain}` : void 0;
|
|
2638
|
+
if (held && held !== wrote && held !== fallback) return {
|
|
2639
|
+
address: held,
|
|
2640
|
+
ours: false
|
|
2641
|
+
};
|
|
2642
|
+
if (fallback) return {
|
|
2643
|
+
address: fallback,
|
|
2644
|
+
ours: true
|
|
2645
|
+
};
|
|
2646
|
+
if (held) return {
|
|
2647
|
+
address: held,
|
|
2648
|
+
ours: false
|
|
2649
|
+
};
|
|
2650
|
+
throw new require_workspace.EmailSenderUnknown(ctx.stage);
|
|
2576
2651
|
}
|
|
2577
2652
|
/** The domain of an address — `noreply@x.com` or `Acme <noreply@x.com>`. */
|
|
2578
2653
|
function domainOf(address) {
|
|
@@ -2602,7 +2677,7 @@ async function ensureSesEmail(ctx) {
|
|
|
2602
2677
|
if (owned.length === 0) return;
|
|
2603
2678
|
const region = s3Region(ctx);
|
|
2604
2679
|
const senders = new Map(owned.map((e) => [e.id, senderOf(ctx, e.id)]));
|
|
2605
|
-
const domains = [...new Set([...senders.values()].map(domainOf))].sort();
|
|
2680
|
+
const domains = [...new Set([...senders.values()].map((s) => domainOf(s.address)))].sort();
|
|
2606
2681
|
const ses = await sesClients(ctx.credential, region);
|
|
2607
2682
|
const clients = await iamClients(ctx.credential, region);
|
|
2608
2683
|
try {
|
|
@@ -2610,7 +2685,7 @@ async function ensureSesEmail(ctx) {
|
|
|
2610
2685
|
for (const domain of domains) await ensureIdentity(ctx, ses, domain);
|
|
2611
2686
|
await noteSandbox(ctx, ses, region);
|
|
2612
2687
|
for (const email of owned) {
|
|
2613
|
-
const from = senders.get(email.id);
|
|
2688
|
+
const { address: from, ours } = senders.get(email.id);
|
|
2614
2689
|
const domain = domainOf(from);
|
|
2615
2690
|
const user = await require_iam.ensureIamUser(ctx, clients, {
|
|
2616
2691
|
id: email.id,
|
|
@@ -2630,6 +2705,7 @@ async function ensureSesEmail(ctx) {
|
|
|
2630
2705
|
resource: fromKey,
|
|
2631
2706
|
change: `set to ${from}`
|
|
2632
2707
|
}, () => ctx.writeSecrets({ [fromKey]: from }));
|
|
2708
|
+
if (ours && ctx.state.record(senderEntry(email.id).key)?.id !== from) await ctx.state.ready(senderEntry(email.id), from);
|
|
2633
2709
|
}
|
|
2634
2710
|
} finally {
|
|
2635
2711
|
ses.ses.destroy();
|
|
@@ -2651,27 +2727,24 @@ async function ensureSesEmail(ctx) {
|
|
|
2651
2727
|
async function ensureIdentity(ctx, { SES, ses }, domain) {
|
|
2652
2728
|
const { DkimAttributes } = await ses.send(new SES.GetIdentityDkimAttributesCommand({ Identities: [domain] }));
|
|
2653
2729
|
const dkim = DkimAttributes?.[domain];
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
}
|
|
2668
|
-
let tokens = [];
|
|
2669
|
-
await ctx.change({
|
|
2730
|
+
const verified = dkim?.DkimVerificationStatus === "Success";
|
|
2731
|
+
let tokens = dkim?.DkimTokens ?? [];
|
|
2732
|
+
if (verified && !dkim.DkimEnabled) await ctx.change({
|
|
2733
|
+
construct: "email",
|
|
2734
|
+
resource: `SES identity ${domain}`,
|
|
2735
|
+
change: "turn DKIM signing back on"
|
|
2736
|
+
}, async () => {
|
|
2737
|
+
await ses.send(new SES.SetIdentityDkimEnabledCommand({
|
|
2738
|
+
Identity: domain,
|
|
2739
|
+
DkimEnabled: true
|
|
2740
|
+
}));
|
|
2741
|
+
});
|
|
2742
|
+
if (!verified) await ctx.change({
|
|
2670
2743
|
construct: "email",
|
|
2671
2744
|
resource: `SES identity ${domain}`,
|
|
2672
2745
|
change: "verify with DKIM"
|
|
2673
2746
|
}, async () => {
|
|
2674
|
-
tokens = (await ses.send(new SES.VerifyDomainDkimCommand({ Domain: domain }))).DkimTokens ??
|
|
2747
|
+
tokens = (await ses.send(new SES.VerifyDomainDkimCommand({ Domain: domain }))).DkimTokens ?? tokens;
|
|
2675
2748
|
});
|
|
2676
2749
|
if (tokens.length === 0) return;
|
|
2677
2750
|
await ctx.writeDns(tokens.map((token) => ({
|
|
@@ -2679,6 +2752,7 @@ async function ensureIdentity(ctx, { SES, ses }, domain) {
|
|
|
2679
2752
|
type: "CNAME",
|
|
2680
2753
|
value: `${token}.dkim.amazonses.com`
|
|
2681
2754
|
})));
|
|
2755
|
+
if (verified) return;
|
|
2682
2756
|
ctx.log(` ${domain}: SES sends as it once its DKIM records resolve — usually minutes, at most 72 hours`);
|
|
2683
2757
|
}
|
|
2684
2758
|
/** Say so when the account is in SES's sandbox, rather than fail on a send. */
|
|
@@ -2800,7 +2874,8 @@ async function provisionStage(options) {
|
|
|
2800
2874
|
kind,
|
|
2801
2875
|
mode: choice.mode,
|
|
2802
2876
|
actions: [],
|
|
2803
|
-
planned: []
|
|
2877
|
+
planned: [],
|
|
2878
|
+
dns: []
|
|
2804
2879
|
});
|
|
2805
2880
|
continue;
|
|
2806
2881
|
}
|
|
@@ -2810,7 +2885,8 @@ async function provisionStage(options) {
|
|
|
2810
2885
|
mode: "provider",
|
|
2811
2886
|
provider: provider.name,
|
|
2812
2887
|
actions: [],
|
|
2813
|
-
planned: []
|
|
2888
|
+
planned: [],
|
|
2889
|
+
dns: []
|
|
2814
2890
|
};
|
|
2815
2891
|
reports.push(report);
|
|
2816
2892
|
const ids = constructsOf(manifest, kind);
|
|
@@ -2838,7 +2914,8 @@ async function provisionStage(options) {
|
|
|
2838
2914
|
const identity = require_credentials.deployIdentity(workspace, stage);
|
|
2839
2915
|
let secrets = (await options.secrets.read())?.custom ?? {};
|
|
2840
2916
|
for (const entry of configured) entry.report.planned = entry.provider.runtimeKeys(manifest).filter((key) => secrets[key] === void 0);
|
|
2841
|
-
const
|
|
2917
|
+
const journal = dryRun ? void 0 : await require_seeds.DeployJournal.open(options.state, stage, () => require_apps.deploysWithCompose(workspace) ? require_credentials.createComposeState(stage) : require_credentials.createEmptyState(stage, "", ""));
|
|
2918
|
+
const state = journal ? journalState(journal) : await readOnlyState(options.state, stage);
|
|
2842
2919
|
const writeSecrets = async (values) => {
|
|
2843
2920
|
if (dryRun) return;
|
|
2844
2921
|
const stored = await options.secrets.read() ?? require_credentials.initStageSecrets(stage);
|
|
@@ -2876,17 +2953,22 @@ async function provisionStage(options) {
|
|
|
2876
2953
|
log(` ${dryRun ? "would " : ""}${action.change} — ${action.resource}`);
|
|
2877
2954
|
},
|
|
2878
2955
|
writeSecrets,
|
|
2879
|
-
writeDns: (records) =>
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2956
|
+
writeDns: async (records) => {
|
|
2957
|
+
for (const record of records) entry.report.dns.push(require_seeds.dnsResourceKey(record.host.replace(/\.$/, ""), record.type));
|
|
2958
|
+
const written = await writeProviderDns(records, {
|
|
2959
|
+
workspace,
|
|
2960
|
+
stage,
|
|
2961
|
+
dryRun,
|
|
2962
|
+
credentials: options.credentials ?? require_credentials.storedCredentials({
|
|
2963
|
+
env,
|
|
2964
|
+
...options.home ? { home: options.home } : {}
|
|
2965
|
+
}),
|
|
2966
|
+
...options.dnsProviderFor ? { providerFor: options.dnsProviderFor } : {},
|
|
2967
|
+
log
|
|
2968
|
+
});
|
|
2969
|
+
if (journal) await recordProviderDns(journal, written);
|
|
2970
|
+
return { manual: written.manual };
|
|
2971
|
+
},
|
|
2890
2972
|
log
|
|
2891
2973
|
});
|
|
2892
2974
|
if (entry.report.actions.length === 0) log(" up to date");
|
|
@@ -2896,6 +2978,7 @@ async function provisionStage(options) {
|
|
|
2896
2978
|
kind: "backups",
|
|
2897
2979
|
mode: backups.mode === "on" ? "provider" : "none",
|
|
2898
2980
|
actions: [],
|
|
2981
|
+
dns: [],
|
|
2899
2982
|
planned: backups.mode === "on" && secrets["BACKUPS_URL"] === void 0 ? [require_apps.BACKUPS_URL_KEY] : []
|
|
2900
2983
|
};
|
|
2901
2984
|
reports.push(report);
|
|
@@ -2929,6 +3012,28 @@ async function provisionStage(options) {
|
|
|
2929
3012
|
}
|
|
2930
3013
|
return reports;
|
|
2931
3014
|
}
|
|
3015
|
+
/**
|
|
3016
|
+
* What a provider's records came to, kept in the stage's state as `dns-record`
|
|
3017
|
+
* resources a provider asked for — so a deploy on which no provider asks for
|
|
3018
|
+
* one any more, after a change of domain, prunes it like a stack's record.
|
|
3019
|
+
* One found already right is kept too: its value is an AWS resource's own —
|
|
3020
|
+
* a DKIM token, a validation record, a distribution — and gkm made that.
|
|
3021
|
+
*/
|
|
3022
|
+
async function recordProviderDns(journal, written) {
|
|
3023
|
+
for (const change of written.changes) {
|
|
3024
|
+
if (change.value === void 0) continue;
|
|
3025
|
+
if (change.action === "delete" || change.action === "manual") continue;
|
|
3026
|
+
await require_seeds.recordDnsResource(journal, {
|
|
3027
|
+
domain: change.domain,
|
|
3028
|
+
name: change.name,
|
|
3029
|
+
type: change.type,
|
|
3030
|
+
value: change.value,
|
|
3031
|
+
ttl: change.ttl ?? 0,
|
|
3032
|
+
source: "provider",
|
|
3033
|
+
...written.providers[change.domain] ? { provider: written.providers[change.domain] } : {}
|
|
3034
|
+
});
|
|
3035
|
+
}
|
|
3036
|
+
}
|
|
2932
3037
|
/** The journal as `ensure()` sees it. */
|
|
2933
3038
|
function journalState(journal) {
|
|
2934
3039
|
return {
|
|
@@ -3328,6 +3433,7 @@ async function provisionResources(phaseCtx, request, ctx, store, emit) {
|
|
|
3328
3433
|
credentials: ctx.credentials,
|
|
3329
3434
|
log: (line) => phaseCtx.logger.info(line)
|
|
3330
3435
|
});
|
|
3436
|
+
phaseCtx.providerDns = reports.flatMap((r) => r.dns);
|
|
3331
3437
|
if (!ctx.dryRun) return;
|
|
3332
3438
|
const planned = reports.flatMap((r) => r.planned);
|
|
3333
3439
|
if (planned.length === 0) return;
|
|
@@ -3428,7 +3534,7 @@ async function prepare(source, request, ctx, emit, redactor) {
|
|
|
3428
3534
|
selfHosted: resolved.target.capabilities.selfHostedTelemetry === true,
|
|
3429
3535
|
used: require_apps.usesTelemetry(manifest)
|
|
3430
3536
|
});
|
|
3431
|
-
const units =
|
|
3537
|
+
const units = require_workspace.derivedApps(manifest, configured);
|
|
3432
3538
|
const workspace = Object.keys(units).length > 0 ? {
|
|
3433
3539
|
...configured,
|
|
3434
3540
|
apps: units
|
|
@@ -3708,4 +3814,4 @@ Object.defineProperty(exports, "deploy", {
|
|
|
3708
3814
|
}
|
|
3709
3815
|
});
|
|
3710
3816
|
|
|
3711
|
-
//# sourceMappingURL=deploy-
|
|
3817
|
+
//# sourceMappingURL=deploy--ia-CGMv.cjs.map
|