@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
|
@@ -1,24 +1,24 @@
|
|
|
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 { G as checkSesConfig, J as
|
|
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-V3WgiKmZ.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-D4hzz6Xb.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-CJTOIaz3.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 fileServerLabel, _ as withLoadedConfig, l as findWorkspaceRoot, m as loadWorkspaceConfig, v as appKey, y as derivedApps } from "./config-Di0oJwM9.mjs";
|
|
6
|
+
import { at as resolveHost, it as isMainFrontendApp, nt as NoDomainForStage } from "./compose-CZGeE6QJ.mjs";
|
|
8
7
|
import { s as subscriberRoute } from "./SubscriberGenerator-BybB6uez.mjs";
|
|
9
8
|
import { _ as withSandbox, b as withOutput, i as discover } from "./discover-DbDrCQ8h.mjs";
|
|
10
|
-
import {
|
|
11
|
-
import { a as
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import { a as
|
|
18
|
-
import {
|
|
9
|
+
import { findWorkspaceRoot, loadWorkspaceConfig, withLoadedConfig } from "./config.mjs";
|
|
10
|
+
import { a as parseTargetOptions, o as resolveTarget } from "./resolve-jez3Y1S0.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-TDHMzdVt.mjs";
|
|
12
|
+
import { w as assertSitePasswords } from "./stack-Ds9jjpE1.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-DBxVTR6Y.mjs";
|
|
14
|
+
import { t as LocalSandbox } from "./local-DUi3f-WB.mjs";
|
|
15
|
+
import { E as eventError, S as createStateStore, v as assertStateOutlivesRun, y as assertStateRoom } from "./sniffer-DdPDiNmc.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-BKfO7u14.mjs";
|
|
17
|
+
import { a as findProjectBucket, i as ensureProjectBucket, o as projectBucketName, r as callerAccountId, s as reconcileProjectBucketLifecycle } from "./projectBucket-BPzx0b0t.mjs";
|
|
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";
|
|
21
|
-
import { createHmac } from "node:crypto";
|
|
21
|
+
import { createHash, createHmac } from "node:crypto";
|
|
22
22
|
import { INBOX_MESSAGES_PREFIX, bucketExpiry, dependentsOf, provideKey, providedKeyFor, receiptRecipients } from "@geekmidas/manifest";
|
|
23
23
|
import * as s3Url from "@geekmidas/storage/s3-url";
|
|
24
24
|
//#region src/target/secrets.ts
|
|
@@ -365,7 +365,11 @@ async function writeProviderDns(records, options) {
|
|
|
365
365
|
plan.records.push(planned);
|
|
366
366
|
domains.set(domain, plan);
|
|
367
367
|
}
|
|
368
|
-
if (domains.size === 0) return {
|
|
368
|
+
if (domains.size === 0) return {
|
|
369
|
+
manual,
|
|
370
|
+
changes: [],
|
|
371
|
+
providers: {}
|
|
372
|
+
};
|
|
369
373
|
const plans = [...domains.values()];
|
|
370
374
|
const tokens = await dnsCredentials(options.stage, plans.map(({ domain, config }) => ({
|
|
371
375
|
domain,
|
|
@@ -391,10 +395,47 @@ async function writeProviderDns(records, options) {
|
|
|
391
395
|
const host = plans.find((p) => p.domain === change.domain)?.records.find((r) => r.name === change.name)?.host;
|
|
392
396
|
if (host) manual.push(host);
|
|
393
397
|
}
|
|
394
|
-
return {
|
|
398
|
+
return {
|
|
399
|
+
manual: [...new Set(manual)].sort(),
|
|
400
|
+
changes: applied.changes,
|
|
401
|
+
providers: Object.fromEntries(plans.map((p) => [p.domain, p.provider]))
|
|
402
|
+
};
|
|
395
403
|
}
|
|
396
404
|
//#endregion
|
|
397
405
|
//#region src/providers/s3/cdn.ts
|
|
406
|
+
/**
|
|
407
|
+
* A file server over an `s3` bucket, served through a CDN.
|
|
408
|
+
*
|
|
409
|
+
* Without one a file server answers on the bucket's regional endpoint: every
|
|
410
|
+
* reader, wherever they are, fetches from one region, on an `amazonaws.com`
|
|
411
|
+
* host. With one — the default — each file server gets, on the stage:
|
|
412
|
+
*
|
|
413
|
+
* - **a certificate** for `<fileserver>.<domain>`, from ACM in us-east-1 (the
|
|
414
|
+
* one region CloudFront reads certificates from), validated by a CNAME the
|
|
415
|
+
* deploy writes through the stage's DNS providers and keeps, because ACM
|
|
416
|
+
* renews against the same record;
|
|
417
|
+
* - **an origin access control**, which signs CloudFront's requests to the
|
|
418
|
+
* bucket, and a bucket policy statement granting exactly the stage's
|
|
419
|
+
* distributions `s3:GetObject` on exactly the open prefixes (see
|
|
420
|
+
* `bucketPolicy`) — the bucket itself is never public;
|
|
421
|
+
* - **response headers policies**: CORS for the stage's sites (the same
|
|
422
|
+
* derivation the bucket's own CORS rule uses), and, for the paths the file
|
|
423
|
+
* server calls `immutable`, `Cache-Control: public, max-age=31536000,
|
|
424
|
+
* immutable` over whatever the object was stored with;
|
|
425
|
+
* - **a distribution** on that name: HTTPS only, compressed, GET/HEAD/OPTIONS,
|
|
426
|
+
* cached with AWS's managed `CachingOptimized` policy — keyed on the path
|
|
427
|
+
* alone, so no query string or cookie fragments the cache;
|
|
428
|
+
* - **a CNAME** from the name to the distribution, through the same DNS
|
|
429
|
+
* providers.
|
|
430
|
+
*
|
|
431
|
+
* Open paths only: a key outside them is refused to CloudFront by the bucket
|
|
432
|
+
* policy, so the edge answers it 403, and a signed read goes to the bucket's
|
|
433
|
+
* own host as before (`signedUrl` is an S3 presign).
|
|
434
|
+
*
|
|
435
|
+
* Every resource is recorded in the stage's state and reused, found by its
|
|
436
|
+
* name when a run died before recording it, and put back when it drifted.
|
|
437
|
+
* Nothing is ever deleted.
|
|
438
|
+
*/
|
|
398
439
|
/** AWS's managed `CachingOptimized` cache policy: path-keyed, gzip and brotli. */
|
|
399
440
|
const CACHING_OPTIMIZED = "658327ea-f89d-4fab-a63d-7e88639e58f6";
|
|
400
441
|
/** What an immutable path is served with. */
|
|
@@ -808,6 +849,15 @@ async function ensureServerCdn(ctx, clients, input) {
|
|
|
808
849
|
};
|
|
809
850
|
}
|
|
810
851
|
/**
|
|
852
|
+
* The idempotency token a certificate is requested with: one per file server
|
|
853
|
+
* and host. ACM answers a repeat of a token within the hour with the
|
|
854
|
+
* certificate it issued for it — so a host changed within the hour of the
|
|
855
|
+
* last request would otherwise get the old host's certificate back.
|
|
856
|
+
*/
|
|
857
|
+
function certificateToken(name, host) {
|
|
858
|
+
return createHash("sha256").update(`${name}\n${host.toLowerCase()}`).digest("hex").slice(0, 32);
|
|
859
|
+
}
|
|
860
|
+
/**
|
|
811
861
|
* The secret the CDN sends a file server's processors: the one in the stage's
|
|
812
862
|
* secrets, or a new one written there — read by the stack, whose edge checks
|
|
813
863
|
* it, when it composes.
|
|
@@ -854,7 +904,7 @@ async function ensureCertificate(ctx, clients, input) {
|
|
|
854
904
|
arn = (await acm.send(new ACM.RequestCertificateCommand({
|
|
855
905
|
DomainName: host,
|
|
856
906
|
ValidationMethod: "DNS",
|
|
857
|
-
IdempotencyToken: input.name
|
|
907
|
+
IdempotencyToken: certificateToken(input.name, host),
|
|
858
908
|
Tags: identityTags(ctx, id).map((t) => ({
|
|
859
909
|
Key: t.Key,
|
|
860
910
|
Value: t.Value
|
|
@@ -2300,11 +2350,11 @@ async function ensureIdentity$1(ctx, { SES, ses }, domain) {
|
|
|
2300
2350
|
/** One inbox: its bucket, its topic and their keys, and its receipt rule. */
|
|
2301
2351
|
async function ensureInbox(ctx, { SES, ses }, events, input) {
|
|
2302
2352
|
const { inbox, domain, region, ruleSet } = input;
|
|
2303
|
-
const name =
|
|
2353
|
+
const name = inboxBucketId(inbox.id);
|
|
2304
2354
|
const urlKey = provideKey(inbox.id, "url");
|
|
2305
2355
|
const topicArn = await ensureTopic(ctx, events, {
|
|
2306
2356
|
id: inbox.id,
|
|
2307
|
-
topicName:
|
|
2357
|
+
topicName: inboxTopicName(ctx.identity.scope, ctx.stage, inbox.id),
|
|
2308
2358
|
publisher: "SES",
|
|
2309
2359
|
policy: (arn) => receiptTopicPolicy(arn, events.account)
|
|
2310
2360
|
});
|
|
@@ -2558,19 +2608,44 @@ function urlSetElsewhere(ctx, email) {
|
|
|
2558
2608
|
const user = smtpUser(given);
|
|
2559
2609
|
return user !== record.id && user !== record.data?.previous;
|
|
2560
2610
|
}
|
|
2611
|
+
/** The state entry of the address gkm last wrote as `email`'s sender. */
|
|
2612
|
+
function senderEntry(email) {
|
|
2613
|
+
return {
|
|
2614
|
+
key: `email-from:${email}`,
|
|
2615
|
+
type: "email-from"
|
|
2616
|
+
};
|
|
2617
|
+
}
|
|
2561
2618
|
/**
|
|
2562
|
-
* The address `email` sends from: `from
|
|
2563
|
-
*
|
|
2619
|
+
* The address `email` sends from: `from`; else one the stage's secrets hold
|
|
2620
|
+
* that gkm did not write — set by hand, or imported; else `noreply@` the
|
|
2621
|
+
* stage's domain. An address gkm wrote follows the domain: after a change of
|
|
2622
|
+
* `domains.<stage>`, mail is sent as the new one.
|
|
2564
2623
|
*
|
|
2624
|
+
* @returns the address, and whether it is gkm's to write and record
|
|
2565
2625
|
* @throws {EmailSenderUnknown} with none of them
|
|
2566
2626
|
*/
|
|
2567
2627
|
function senderOf(ctx, email) {
|
|
2568
|
-
if (ctx.config.from) return
|
|
2628
|
+
if (ctx.config.from) return {
|
|
2629
|
+
address: ctx.config.from,
|
|
2630
|
+
ours: true
|
|
2631
|
+
};
|
|
2569
2632
|
const held = ctx.secrets[provideKey(email, "from")];
|
|
2570
|
-
|
|
2633
|
+
const wrote = ctx.state.record(senderEntry(email).key)?.id;
|
|
2571
2634
|
const domain = ctx.workspace.domains?.[ctx.stage];
|
|
2572
|
-
|
|
2573
|
-
return
|
|
2635
|
+
const fallback = domain ? `noreply@${domain}` : void 0;
|
|
2636
|
+
if (held && held !== wrote && held !== fallback) return {
|
|
2637
|
+
address: held,
|
|
2638
|
+
ours: false
|
|
2639
|
+
};
|
|
2640
|
+
if (fallback) return {
|
|
2641
|
+
address: fallback,
|
|
2642
|
+
ours: true
|
|
2643
|
+
};
|
|
2644
|
+
if (held) return {
|
|
2645
|
+
address: held,
|
|
2646
|
+
ours: false
|
|
2647
|
+
};
|
|
2648
|
+
throw new EmailSenderUnknown(ctx.stage);
|
|
2574
2649
|
}
|
|
2575
2650
|
/** The domain of an address — `noreply@x.com` or `Acme <noreply@x.com>`. */
|
|
2576
2651
|
function domainOf(address) {
|
|
@@ -2600,7 +2675,7 @@ async function ensureSesEmail(ctx) {
|
|
|
2600
2675
|
if (owned.length === 0) return;
|
|
2601
2676
|
const region = s3Region(ctx);
|
|
2602
2677
|
const senders = new Map(owned.map((e) => [e.id, senderOf(ctx, e.id)]));
|
|
2603
|
-
const domains = [...new Set([...senders.values()].map(domainOf))].sort();
|
|
2678
|
+
const domains = [...new Set([...senders.values()].map((s) => domainOf(s.address)))].sort();
|
|
2604
2679
|
const ses = await sesClients(ctx.credential, region);
|
|
2605
2680
|
const clients = await iamClients(ctx.credential, region);
|
|
2606
2681
|
try {
|
|
@@ -2608,7 +2683,7 @@ async function ensureSesEmail(ctx) {
|
|
|
2608
2683
|
for (const domain of domains) await ensureIdentity(ctx, ses, domain);
|
|
2609
2684
|
await noteSandbox(ctx, ses, region);
|
|
2610
2685
|
for (const email of owned) {
|
|
2611
|
-
const from = senders.get(email.id);
|
|
2686
|
+
const { address: from, ours } = senders.get(email.id);
|
|
2612
2687
|
const domain = domainOf(from);
|
|
2613
2688
|
const user = await ensureIamUser(ctx, clients, {
|
|
2614
2689
|
id: email.id,
|
|
@@ -2628,6 +2703,7 @@ async function ensureSesEmail(ctx) {
|
|
|
2628
2703
|
resource: fromKey,
|
|
2629
2704
|
change: `set to ${from}`
|
|
2630
2705
|
}, () => ctx.writeSecrets({ [fromKey]: from }));
|
|
2706
|
+
if (ours && ctx.state.record(senderEntry(email.id).key)?.id !== from) await ctx.state.ready(senderEntry(email.id), from);
|
|
2631
2707
|
}
|
|
2632
2708
|
} finally {
|
|
2633
2709
|
ses.ses.destroy();
|
|
@@ -2649,27 +2725,24 @@ async function ensureSesEmail(ctx) {
|
|
|
2649
2725
|
async function ensureIdentity(ctx, { SES, ses }, domain) {
|
|
2650
2726
|
const { DkimAttributes } = await ses.send(new SES.GetIdentityDkimAttributesCommand({ Identities: [domain] }));
|
|
2651
2727
|
const dkim = DkimAttributes?.[domain];
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
}
|
|
2666
|
-
let tokens = [];
|
|
2667
|
-
await ctx.change({
|
|
2728
|
+
const verified = dkim?.DkimVerificationStatus === "Success";
|
|
2729
|
+
let tokens = dkim?.DkimTokens ?? [];
|
|
2730
|
+
if (verified && !dkim.DkimEnabled) await ctx.change({
|
|
2731
|
+
construct: "email",
|
|
2732
|
+
resource: `SES identity ${domain}`,
|
|
2733
|
+
change: "turn DKIM signing back on"
|
|
2734
|
+
}, async () => {
|
|
2735
|
+
await ses.send(new SES.SetIdentityDkimEnabledCommand({
|
|
2736
|
+
Identity: domain,
|
|
2737
|
+
DkimEnabled: true
|
|
2738
|
+
}));
|
|
2739
|
+
});
|
|
2740
|
+
if (!verified) await ctx.change({
|
|
2668
2741
|
construct: "email",
|
|
2669
2742
|
resource: `SES identity ${domain}`,
|
|
2670
2743
|
change: "verify with DKIM"
|
|
2671
2744
|
}, async () => {
|
|
2672
|
-
tokens = (await ses.send(new SES.VerifyDomainDkimCommand({ Domain: domain }))).DkimTokens ??
|
|
2745
|
+
tokens = (await ses.send(new SES.VerifyDomainDkimCommand({ Domain: domain }))).DkimTokens ?? tokens;
|
|
2673
2746
|
});
|
|
2674
2747
|
if (tokens.length === 0) return;
|
|
2675
2748
|
await ctx.writeDns(tokens.map((token) => ({
|
|
@@ -2677,6 +2750,7 @@ async function ensureIdentity(ctx, { SES, ses }, domain) {
|
|
|
2677
2750
|
type: "CNAME",
|
|
2678
2751
|
value: `${token}.dkim.amazonses.com`
|
|
2679
2752
|
})));
|
|
2753
|
+
if (verified) return;
|
|
2680
2754
|
ctx.log(` ${domain}: SES sends as it once its DKIM records resolve — usually minutes, at most 72 hours`);
|
|
2681
2755
|
}
|
|
2682
2756
|
/** Say so when the account is in SES's sandbox, rather than fail on a send. */
|
|
@@ -2797,7 +2871,8 @@ async function provisionStage(options) {
|
|
|
2797
2871
|
kind,
|
|
2798
2872
|
mode: choice.mode,
|
|
2799
2873
|
actions: [],
|
|
2800
|
-
planned: []
|
|
2874
|
+
planned: [],
|
|
2875
|
+
dns: []
|
|
2801
2876
|
});
|
|
2802
2877
|
continue;
|
|
2803
2878
|
}
|
|
@@ -2807,7 +2882,8 @@ async function provisionStage(options) {
|
|
|
2807
2882
|
mode: "provider",
|
|
2808
2883
|
provider: provider.name,
|
|
2809
2884
|
actions: [],
|
|
2810
|
-
planned: []
|
|
2885
|
+
planned: [],
|
|
2886
|
+
dns: []
|
|
2811
2887
|
};
|
|
2812
2888
|
reports.push(report);
|
|
2813
2889
|
const ids = constructsOf(manifest, kind);
|
|
@@ -2835,7 +2911,8 @@ async function provisionStage(options) {
|
|
|
2835
2911
|
const identity = deployIdentity(workspace, stage);
|
|
2836
2912
|
let secrets = (await options.secrets.read())?.custom ?? {};
|
|
2837
2913
|
for (const entry of configured) entry.report.planned = entry.provider.runtimeKeys(manifest).filter((key) => secrets[key] === void 0);
|
|
2838
|
-
const
|
|
2914
|
+
const journal = dryRun ? void 0 : await DeployJournal.open(options.state, stage, () => deploysWithCompose(workspace) ? createComposeState(stage) : createEmptyState(stage, "", ""));
|
|
2915
|
+
const state = journal ? journalState(journal) : await readOnlyState(options.state, stage);
|
|
2839
2916
|
const writeSecrets = async (values) => {
|
|
2840
2917
|
if (dryRun) return;
|
|
2841
2918
|
const stored = await options.secrets.read() ?? initStageSecrets(stage);
|
|
@@ -2873,17 +2950,22 @@ async function provisionStage(options) {
|
|
|
2873
2950
|
log(` ${dryRun ? "would " : ""}${action.change} — ${action.resource}`);
|
|
2874
2951
|
},
|
|
2875
2952
|
writeSecrets,
|
|
2876
|
-
writeDns: (records) =>
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
2953
|
+
writeDns: async (records) => {
|
|
2954
|
+
for (const record of records) entry.report.dns.push(dnsResourceKey(record.host.replace(/\.$/, ""), record.type));
|
|
2955
|
+
const written = await writeProviderDns(records, {
|
|
2956
|
+
workspace,
|
|
2957
|
+
stage,
|
|
2958
|
+
dryRun,
|
|
2959
|
+
credentials: options.credentials ?? storedCredentials({
|
|
2960
|
+
env,
|
|
2961
|
+
...options.home ? { home: options.home } : {}
|
|
2962
|
+
}),
|
|
2963
|
+
...options.dnsProviderFor ? { providerFor: options.dnsProviderFor } : {},
|
|
2964
|
+
log
|
|
2965
|
+
});
|
|
2966
|
+
if (journal) await recordProviderDns(journal, written);
|
|
2967
|
+
return { manual: written.manual };
|
|
2968
|
+
},
|
|
2887
2969
|
log
|
|
2888
2970
|
});
|
|
2889
2971
|
if (entry.report.actions.length === 0) log(" up to date");
|
|
@@ -2893,6 +2975,7 @@ async function provisionStage(options) {
|
|
|
2893
2975
|
kind: "backups",
|
|
2894
2976
|
mode: backups.mode === "on" ? "provider" : "none",
|
|
2895
2977
|
actions: [],
|
|
2978
|
+
dns: [],
|
|
2896
2979
|
planned: backups.mode === "on" && secrets["BACKUPS_URL"] === void 0 ? [BACKUPS_URL_KEY] : []
|
|
2897
2980
|
};
|
|
2898
2981
|
reports.push(report);
|
|
@@ -2926,6 +3009,28 @@ async function provisionStage(options) {
|
|
|
2926
3009
|
}
|
|
2927
3010
|
return reports;
|
|
2928
3011
|
}
|
|
3012
|
+
/**
|
|
3013
|
+
* What a provider's records came to, kept in the stage's state as `dns-record`
|
|
3014
|
+
* resources a provider asked for — so a deploy on which no provider asks for
|
|
3015
|
+
* one any more, after a change of domain, prunes it like a stack's record.
|
|
3016
|
+
* One found already right is kept too: its value is an AWS resource's own —
|
|
3017
|
+
* a DKIM token, a validation record, a distribution — and gkm made that.
|
|
3018
|
+
*/
|
|
3019
|
+
async function recordProviderDns(journal, written) {
|
|
3020
|
+
for (const change of written.changes) {
|
|
3021
|
+
if (change.value === void 0) continue;
|
|
3022
|
+
if (change.action === "delete" || change.action === "manual") continue;
|
|
3023
|
+
await recordDnsResource(journal, {
|
|
3024
|
+
domain: change.domain,
|
|
3025
|
+
name: change.name,
|
|
3026
|
+
type: change.type,
|
|
3027
|
+
value: change.value,
|
|
3028
|
+
ttl: change.ttl ?? 0,
|
|
3029
|
+
source: "provider",
|
|
3030
|
+
...written.providers[change.domain] ? { provider: written.providers[change.domain] } : {}
|
|
3031
|
+
});
|
|
3032
|
+
}
|
|
3033
|
+
}
|
|
2929
3034
|
/** The journal as `ensure()` sees it. */
|
|
2930
3035
|
function journalState(journal) {
|
|
2931
3036
|
return {
|
|
@@ -3325,6 +3430,7 @@ async function provisionResources(phaseCtx, request, ctx, store, emit) {
|
|
|
3325
3430
|
credentials: ctx.credentials,
|
|
3326
3431
|
log: (line) => phaseCtx.logger.info(line)
|
|
3327
3432
|
});
|
|
3433
|
+
phaseCtx.providerDns = reports.flatMap((r) => r.dns);
|
|
3328
3434
|
if (!ctx.dryRun) return;
|
|
3329
3435
|
const planned = reports.flatMap((r) => r.planned);
|
|
3330
3436
|
if (planned.length === 0) return;
|
|
@@ -3652,4 +3758,4 @@ async function load(input, sandbox) {
|
|
|
3652
3758
|
//#endregion
|
|
3653
3759
|
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 };
|
|
3654
3760
|
|
|
3655
|
-
//# sourceMappingURL=deploy-
|
|
3761
|
+
//# sourceMappingURL=deploy-BWFFSN5p.mjs.map
|