@geekmidas/cli 10.0.0-alpha.161 → 10.0.0-alpha.163
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-CwqdLM1E.mjs → GoDaddyProvider-COSh6bNI.mjs} +2 -2
- package/dist/{GoDaddyProvider-CwqdLM1E.mjs.map → GoDaddyProvider-COSh6bNI.mjs.map} +1 -1
- package/dist/{GoDaddyProvider-CBqsvbER.cjs → GoDaddyProvider-DyhN8PEn.cjs} +2 -2
- package/dist/{GoDaddyProvider-CBqsvbER.cjs.map → GoDaddyProvider-DyhN8PEn.cjs.map} +1 -1
- package/dist/{HostingerProvider-gD4uqzMN.mjs → HostingerProvider-5Nekoneq.mjs} +2 -2
- package/dist/{HostingerProvider-gD4uqzMN.mjs.map → HostingerProvider-5Nekoneq.mjs.map} +1 -1
- package/dist/{HostingerProvider-DtOtsFkM.cjs → HostingerProvider-DG08aTyh.cjs} +2 -2
- package/dist/{HostingerProvider-DtOtsFkM.cjs.map → HostingerProvider-DG08aTyh.cjs.map} +1 -1
- package/dist/{LegacyStateStore-C0rm5slD.cjs → LegacyStateStore-5W4kFia3.cjs} +2 -2
- package/dist/{LegacyStateStore-C0rm5slD.cjs.map → LegacyStateStore-5W4kFia3.cjs.map} +1 -1
- package/dist/{LegacyStateStore-6xsGADme.mjs → LegacyStateStore-CafGn2Yl.mjs} +2 -2
- package/dist/{LegacyStateStore-6xsGADme.mjs.map → LegacyStateStore-CafGn2Yl.mjs.map} +1 -1
- package/dist/{LocalStateStore-NBMF3zCb.cjs → LocalStateStore--CJ7ksx6.cjs} +2 -2
- package/dist/{LocalStateStore-NBMF3zCb.cjs.map → LocalStateStore--CJ7ksx6.cjs.map} +1 -1
- package/dist/{LocalStateStore-G0JHXOVW.mjs → LocalStateStore-DrTw_EIu.mjs} +2 -2
- package/dist/{LocalStateStore-G0JHXOVW.mjs.map → LocalStateStore-DrTw_EIu.mjs.map} +1 -1
- package/dist/{S3StateStore-B7IPTvu0.mjs → S3StateStore-DGEwSkf2.mjs} +4 -4
- package/dist/{S3StateStore-B7IPTvu0.mjs.map → S3StateStore-DGEwSkf2.mjs.map} +1 -1
- package/dist/{S3StateStore-7n6gIYEJ.cjs → S3StateStore-M8vVPpr7.cjs} +4 -4
- package/dist/{S3StateStore-7n6gIYEJ.cjs.map → S3StateStore-M8vVPpr7.cjs.map} +1 -1
- package/dist/{SSMStateStore-O12NeGEg.cjs → SSMStateStore-B2A27u0C.cjs} +2 -2
- package/dist/{SSMStateStore-O12NeGEg.cjs.map → SSMStateStore-B2A27u0C.cjs.map} +1 -1
- package/dist/{SSMStateStore-CWEShHLS.mjs → SSMStateStore-VYfuykBd.mjs} +2 -2
- package/dist/{SSMStateStore-CWEShHLS.mjs.map → SSMStateStore-VYfuykBd.mjs.map} +1 -1
- package/dist/{add-ktNZmJb-.cjs → add-CijlgwVr.cjs} +6 -6
- package/dist/{add-ktNZmJb-.cjs.map → add-CijlgwVr.cjs.map} +1 -1
- package/dist/{add-C-nlqQgN.mjs → add-CistiUc6.mjs} +6 -6
- package/dist/{add-C-nlqQgN.mjs.map → add-CistiUc6.mjs.map} +1 -1
- package/dist/{apps-CtjYJS9e.cjs → apps-5iJb710M.cjs} +5 -5
- package/dist/{apps-CtjYJS9e.cjs.map → apps-5iJb710M.cjs.map} +1 -1
- package/dist/{apps-C7SujLV-.mjs → apps-BE97n0jO.mjs} +5 -5
- package/dist/{apps-C7SujLV-.mjs.map → apps-BE97n0jO.mjs.map} +1 -1
- package/dist/{bundler-DnHKVaZz.mjs → bundler-D-SXSUZI.mjs} +6 -6
- package/dist/{bundler-DnHKVaZz.mjs.map → bundler-D-SXSUZI.mjs.map} +1 -1
- package/dist/{bundler-DGwgZmim.cjs → bundler-D4E7kCYb.cjs} +6 -6
- package/dist/{bundler-DGwgZmim.cjs.map → bundler-D4E7kCYb.cjs.map} +1 -1
- package/dist/{cli-CI9v138l.mjs → cli-BAn-gJ6S.mjs} +5 -5
- package/dist/{cli-CI9v138l.mjs.map → cli-BAn-gJ6S.mjs.map} +1 -1
- package/dist/{cli-k2G7rG15.cjs → cli-CI-wO3-w.cjs} +5 -5
- package/dist/{cli-k2G7rG15.cjs.map → cli-CI-wO3-w.cjs.map} +1 -1
- package/dist/{compose-nGgRylPu.cjs → compose-BoxgqTF8.cjs} +8 -8
- package/dist/{compose-nGgRylPu.cjs.map → compose-BoxgqTF8.cjs.map} +1 -1
- package/dist/{compose-Co-Dt-a4.mjs → compose-CuoV9T9U.mjs} +6 -6
- package/dist/{compose-Co-Dt-a4.mjs.map → compose-CuoV9T9U.mjs.map} +1 -1
- package/dist/{compose-reJW9x-G.mjs → compose-Dk0Z8zdf.mjs} +8 -8
- package/dist/{compose-reJW9x-G.mjs.map → compose-Dk0Z8zdf.mjs.map} +1 -1
- package/dist/{compose-BD2rwRfn.cjs → compose-Dpkkp-Qq.cjs} +6 -6
- package/dist/{compose-BD2rwRfn.cjs.map → compose-Dpkkp-Qq.cjs.map} +1 -1
- package/dist/{config-CfI2g_Ho.d.mts → config-BxSSAzVi.d.mts} +3 -3
- package/dist/{config-C60T2h98.d.cts.map → config-BxSSAzVi.d.mts.map} +1 -1
- package/dist/{config-B5Hi3mLK.cjs → config-CLXSXbcs.cjs} +2 -2
- package/dist/{config-B5Hi3mLK.cjs.map → config-CLXSXbcs.cjs.map} +1 -1
- package/dist/{config-C60T2h98.d.cts → config-DNoWqavN.d.cts} +3 -3
- package/dist/{config-CfI2g_Ho.d.mts.map → config-DNoWqavN.d.cts.map} +1 -1
- package/dist/{config-DWTUVGRE.mjs → config-Da9bxnkT.mjs} +2 -2
- package/dist/{config-DWTUVGRE.mjs.map → config-Da9bxnkT.mjs.map} +1 -1
- package/dist/config.cjs +2 -2
- package/dist/config.d.cts +3 -3
- package/dist/config.d.mts +3 -3
- package/dist/config.mjs +2 -2
- package/dist/{credentials-UlL1n_Rd.cjs → credentials-BR3dNNtO.cjs} +6 -6
- package/dist/{credentials-UlL1n_Rd.cjs.map → credentials-BR3dNNtO.cjs.map} +1 -1
- package/dist/{credentials-BG1KOq9I.mjs → credentials-DhCCRQJp.mjs} +6 -6
- package/dist/{credentials-BG1KOq9I.mjs.map → credentials-DhCCRQJp.mjs.map} +1 -1
- package/dist/deploy/public.cjs +12 -12
- package/dist/deploy/public.d.cts +4 -4
- package/dist/deploy/public.d.cts.map +1 -1
- package/dist/deploy/public.d.mts +4 -4
- package/dist/deploy/public.d.mts.map +1 -1
- package/dist/deploy/public.mjs +12 -12
- package/dist/{deploy-DRkCNV7f.mjs → deploy-C4Qb-A-z.mjs} +311 -28
- package/dist/deploy-C4Qb-A-z.mjs.map +1 -0
- package/dist/{deploy-CqIULk0k.cjs → deploy-CGywNg5R.cjs} +314 -31
- package/dist/deploy-CGywNg5R.cjs.map +1 -0
- package/dist/{destroy-CMldkiX-.cjs → destroy-IUx8vz1q.cjs} +10 -10
- package/dist/{destroy-CMldkiX-.cjs.map → destroy-IUx8vz1q.cjs.map} +1 -1
- package/dist/{destroy-DXIAL8nF.mjs → destroy-xjqqzAmU.mjs} +10 -10
- package/dist/{destroy-DXIAL8nF.mjs.map → destroy-xjqqzAmU.mjs.map} +1 -1
- package/dist/{docker-LwJW3dx_.cjs → docker-CIpOFfOw.cjs} +5 -5
- package/dist/{docker-LwJW3dx_.cjs.map → docker-CIpOFfOw.cjs.map} +1 -1
- package/dist/{docker-DFFzQe2f.mjs → docker-zaY5JoqN.mjs} +5 -5
- package/dist/{docker-DFFzQe2f.mjs.map → docker-zaY5JoqN.mjs.map} +1 -1
- package/dist/{dokploy-DYm0D6Tp.mjs → dokploy-BTzdAG5F.mjs} +2 -2
- package/dist/{dokploy-DYm0D6Tp.mjs.map → dokploy-BTzdAG5F.mjs.map} +1 -1
- package/dist/{dokploy-wTsJqG-N.cjs → dokploy-DLVSItVD.cjs} +2 -2
- package/dist/{dokploy-wTsJqG-N.cjs.map → dokploy-DLVSItVD.cjs.map} +1 -1
- package/dist/{eas-C4EkjTGJ.cjs → eas-B6VYsGLs.cjs} +3 -3
- package/dist/{eas-C4EkjTGJ.cjs.map → eas-B6VYsGLs.cjs.map} +1 -1
- package/dist/{eas-BJ_Zlvm8.mjs → eas-C1WvLOi1.mjs} +3 -3
- package/dist/{eas-BJ_Zlvm8.mjs.map → eas-C1WvLOi1.mjs.map} +1 -1
- package/dist/{encryption-Cu5YTs9V.mjs → encryption-DdnL7dor.mjs} +4 -4
- package/dist/{encryption-Cu5YTs9V.mjs.map → encryption-DdnL7dor.mjs.map} +1 -1
- package/dist/{encryption-BQEqqrGq.cjs → encryption-oVcZSyLK.cjs} +4 -4
- package/dist/{encryption-BQEqqrGq.cjs.map → encryption-oVcZSyLK.cjs.map} +1 -1
- package/dist/{engine-q8aCVbLH.mjs → engine-Viv9p-yK.mjs} +10 -10
- package/dist/{engine-q8aCVbLH.mjs.map → engine-Viv9p-yK.mjs.map} +1 -1
- package/dist/{engine-DdRauUQC.cjs → engine-_zA1Selg.cjs} +10 -10
- package/dist/{engine-DdRauUQC.cjs.map → engine-_zA1Selg.cjs.map} +1 -1
- package/dist/{github-OVZF2k0L.cjs → github-82k5-OZO.cjs} +45 -13
- package/dist/github-82k5-OZO.cjs.map +1 -0
- package/dist/{github-CoXirRes.mjs → github-DxgGIvq1.mjs} +41 -9
- package/dist/github-DxgGIvq1.mjs.map +1 -0
- package/dist/{googlePlay-HXRRVq0l.mjs → googlePlay-C4UsG1Vd.mjs} +5 -5
- package/dist/{googlePlay-HXRRVq0l.mjs.map → googlePlay-C4UsG1Vd.mjs.map} +1 -1
- package/dist/{googlePlay-CUeTUT7s.cjs → googlePlay-C5T1SOGW.cjs} +5 -5
- package/dist/{googlePlay-CUeTUT7s.cjs.map → googlePlay-C5T1SOGW.cjs.map} +1 -1
- package/dist/{iam-6LH6wptf.cjs → iam-BVPpX76R.cjs} +65 -162
- package/dist/iam-BVPpX76R.cjs.map +1 -0
- package/dist/{iam-c0e8m04X.mjs → iam-q9ALh-Y5.mjs} +62 -129
- package/dist/iam-q9ALh-Y5.mjs.map +1 -0
- package/dist/{index-DWNwkcy7.d.mts → index-BC1BLv9Q.d.mts} +2 -2
- package/dist/{index-DDY0cZCo.d.cts.map → index-BC1BLv9Q.d.mts.map} +1 -1
- package/dist/{index-DDY0cZCo.d.cts → index-Dy4ojz5P.d.cts} +2 -2
- package/dist/{index-DWNwkcy7.d.mts.map → index-Dy4ojz5P.d.cts.map} +1 -1
- package/dist/index.cjs +64 -64
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +64 -64
- package/dist/index.mjs.map +1 -1
- package/dist/{local-CCJ-T37d.mjs → local-Bqx5Xj3z.mjs} +2 -2
- package/dist/{local-CCJ-T37d.mjs.map → local-Bqx5Xj3z.mjs.map} +1 -1
- package/dist/{local-Dx0o6vfp.cjs → local-vSeEreyp.cjs} +2 -2
- package/dist/{local-Dx0o6vfp.cjs.map → local-vSeEreyp.cjs.map} +1 -1
- package/dist/{migrate-Dr0BeWsY.mjs → migrate-CEhUGDFy.mjs} +6 -6
- package/dist/{migrate-Dr0BeWsY.mjs.map → migrate-CEhUGDFy.mjs.map} +1 -1
- package/dist/{migrate-CJoKOCGY.cjs → migrate-CLSY8gSY.cjs} +4 -4
- package/dist/{migrate-CJoKOCGY.cjs.map → migrate-CLSY8gSY.cjs.map} +1 -1
- package/dist/{migrate-BkwSXhxv.mjs → migrate-D8PSR_08.mjs} +4 -4
- package/dist/{migrate-BkwSXhxv.mjs.map → migrate-D8PSR_08.mjs.map} +1 -1
- package/dist/{migrate-DEsYfgzn.cjs → migrate-DvdpT5Y4.cjs} +6 -6
- package/dist/{migrate-DEsYfgzn.cjs.map → migrate-DvdpT5Y4.cjs.map} +1 -1
- package/dist/{notes-VFPa51Pd.cjs → notes-B9ro_R3x.cjs} +24 -15
- package/dist/notes-B9ro_R3x.cjs.map +1 -0
- package/dist/{notes-BOyzuPqr.mjs → notes-CdbUjLBC.mjs} +24 -15
- package/dist/notes-CdbUjLBC.mjs.map +1 -0
- package/dist/openapi.cjs +2 -2
- package/dist/openapi.d.cts +1 -1
- package/dist/openapi.d.mts +1 -1
- package/dist/openapi.mjs +2 -2
- package/dist/{projectBucket-B26ucBRI.mjs → projectBucket-DPaUiLyY.mjs} +2 -2
- package/dist/{projectBucket-B26ucBRI.mjs.map → projectBucket-DPaUiLyY.mjs.map} +1 -1
- package/dist/{projectBucket-CWpY3Vxv.cjs → projectBucket-DUtWAxWn.cjs} +2 -2
- package/dist/{projectBucket-CWpY3Vxv.cjs.map → projectBucket-DUtWAxWn.cjs.map} +1 -1
- package/dist/{publish-Bg4iffje.mjs → publish-CoCRpbPl.mjs} +2 -2
- package/dist/{publish-Bg4iffje.mjs.map → publish-CoCRpbPl.mjs.map} +1 -1
- package/dist/{publish-IjcRoorJ.cjs → publish-DbR3j4TS.cjs} +2 -2
- package/dist/{publish-IjcRoorJ.cjs.map → publish-DbR3j4TS.cjs.map} +1 -1
- package/dist/reconcile/public.d.cts +1 -1
- package/dist/reconcile/public.d.mts +1 -1
- package/dist/{resolve-rw7mLp5E.mjs → resolve-BjRvKEpw.mjs} +4 -4
- package/dist/{resolve-rw7mLp5E.mjs.map → resolve-BjRvKEpw.mjs.map} +1 -1
- package/dist/{resolve-CgVDhWW8.cjs → resolve-DDcPuS_G.cjs} +4 -4
- package/dist/{resolve-CgVDhWW8.cjs.map → resolve-DDcPuS_G.cjs.map} +1 -1
- package/dist/{rollback-vdkPi_Rm.cjs → rollback-CvlebzBY.cjs} +7 -7
- package/dist/{rollback-vdkPi_Rm.cjs.map → rollback-CvlebzBY.cjs.map} +1 -1
- package/dist/{rollback-Cv02Cnky.mjs → rollback-xLGFZaHy.mjs} +7 -7
- package/dist/{rollback-Cv02Cnky.mjs.map → rollback-xLGFZaHy.mjs.map} +1 -1
- package/dist/{runtime-D-rOcRoq.d.cts → runtime-BySbkdBz.d.cts} +2 -2
- package/dist/{runtime-D-rOcRoq.d.cts.map → runtime-BySbkdBz.d.cts.map} +1 -1
- package/dist/{runtime-DG1mNh_5.d.mts → runtime-MZ5Pqgan.d.mts} +2 -2
- package/dist/{runtime-DG1mNh_5.d.mts.map → runtime-MZ5Pqgan.d.mts.map} +1 -1
- package/dist/{s3-DmsM_V2R.mjs → s3-CXA6Lleo.mjs} +3 -3
- package/dist/{s3-DmsM_V2R.mjs.map → s3-CXA6Lleo.mjs.map} +1 -1
- package/dist/{s3-DIvAtJwk.cjs → s3-D9pFisyo.cjs} +3 -3
- package/dist/{s3-DIvAtJwk.cjs.map → s3-D9pFisyo.cjs.map} +1 -1
- package/dist/{serverSetup-qXIRRhgw.cjs → serverSetup-BXk8SGuz.cjs} +7 -7
- package/dist/{serverSetup-qXIRRhgw.cjs.map → serverSetup-BXk8SGuz.cjs.map} +1 -1
- package/dist/{serverSetup-CvcN4zJQ.mjs → serverSetup-CzoKT3nH.mjs} +7 -7
- package/dist/{serverSetup-CvcN4zJQ.mjs.map → serverSetup-CzoKT3nH.mjs.map} +1 -1
- package/dist/{sniffer-CGfL25Bc.cjs → sniffer-B2jgjk-F.cjs} +7 -7
- package/dist/{sniffer-CGfL25Bc.cjs.map → sniffer-B2jgjk-F.cjs.map} +1 -1
- package/dist/{sniffer-DuKVVAs_.mjs → sniffer-Csft3UaJ.mjs} +7 -7
- package/dist/{sniffer-DuKVVAs_.mjs.map → sniffer-Csft3UaJ.mjs.map} +1 -1
- package/dist/{snsSubscriptions-DPfGjpuB.cjs → snsSubscriptions-CSyPnoEQ.cjs} +3 -3
- package/dist/{snsSubscriptions-DPfGjpuB.cjs.map → snsSubscriptions-CSyPnoEQ.cjs.map} +1 -1
- package/dist/{snsSubscriptions-nnSUW2Eh.mjs → snsSubscriptions-DgbFGyac.mjs} +3 -3
- package/dist/{snsSubscriptions-nnSUW2Eh.mjs.map → snsSubscriptions-DgbFGyac.mjs.map} +1 -1
- package/dist/{sst-Md7c1UC_.cjs → sst-BtrgnhHy.cjs} +5 -5
- package/dist/{sst-Md7c1UC_.cjs.map → sst-BtrgnhHy.cjs.map} +1 -1
- package/dist/{sst-Bw7686br.mjs → sst-CmNUadAV.mjs} +5 -5
- package/dist/{sst-Bw7686br.mjs.map → sst-CmNUadAV.mjs.map} +1 -1
- package/dist/{stack-DTcnynGb.cjs → stack-9qBhn2pd.cjs} +8 -8
- package/dist/{stack-DTcnynGb.cjs.map → stack-9qBhn2pd.cjs.map} +1 -1
- package/dist/{stack-D2cLLaO-.mjs → stack-dVgzDUiH.mjs} +8 -8
- package/dist/{stack-D2cLLaO-.mjs.map → stack-dVgzDUiH.mjs.map} +1 -1
- package/dist/{stage-Bw3bJ7Au.mjs → stage-CwXpkN-y.mjs} +7 -7
- package/dist/{stage-Bw3bJ7Au.mjs.map → stage-CwXpkN-y.mjs.map} +1 -1
- package/dist/{stage-RLOenlHV.cjs → stage-HEZZZJKr.cjs} +7 -7
- package/dist/{stage-RLOenlHV.cjs.map → stage-HEZZZJKr.cjs.map} +1 -1
- package/dist/{stages-yA9bhStl.mjs → stages-gG-DGHLb.mjs} +3 -3
- package/dist/{stages-yA9bhStl.mjs.map → stages-gG-DGHLb.mjs.map} +1 -1
- package/dist/{stages-B0yOikgt.cjs → stages-rzyes8Ew.cjs} +3 -3
- package/dist/{stages-B0yOikgt.cjs.map → stages-rzyes8Ew.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-C-_cMKTY.cjs → terminal-8AA2uK0U.cjs} +2 -2
- package/dist/{terminal-C-_cMKTY.cjs.map → terminal-8AA2uK0U.cjs.map} +1 -1
- package/dist/{terminal-Dq29bK3u.mjs → terminal-BqqGsi0O.mjs} +2 -2
- package/dist/{terminal-Dq29bK3u.mjs.map → terminal-BqqGsi0O.mjs.map} +1 -1
- package/dist/{types-CvucX3yD.d.mts → types-BXboFkn9.d.mts} +50 -2
- package/dist/types-BXboFkn9.d.mts.map +1 -0
- package/dist/{types-D1C8pUyh.d.cts → types-BsfPHUFZ.d.cts} +50 -2
- package/dist/types-BsfPHUFZ.d.cts.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-DFGsrjGD.mjs → workspace-D5Vm2qcy.mjs} +165 -9
- package/dist/workspace-D5Vm2qcy.mjs.map +1 -0
- package/dist/{workspace-1szcahj9.cjs → workspace-VhzmoxOv.cjs} +224 -8
- package/dist/workspace-VhzmoxOv.cjs.map +1 -0
- package/package.json +15 -15
- package/dist/deploy-CqIULk0k.cjs.map +0 -1
- package/dist/deploy-DRkCNV7f.mjs.map +0 -1
- package/dist/github-CoXirRes.mjs.map +0 -1
- package/dist/github-OVZF2k0L.cjs.map +0 -1
- package/dist/iam-6LH6wptf.cjs.map +0 -1
- package/dist/iam-c0e8m04X.mjs.map +0 -1
- package/dist/notes-BOyzuPqr.mjs.map +0 -1
- package/dist/notes-VFPa51Pd.cjs.map +0 -1
- package/dist/types-CvucX3yD.d.mts.map +0 -1
- package/dist/types-D1C8pUyh.d.cts.map +0 -1
- package/dist/workspace-1szcahj9.cjs.map +0 -1
- package/dist/workspace-DFGsrjGD.mjs.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-BR3dNNtO.cjs");
|
|
4
|
+
const require_workspace = require("../workspace-VhzmoxOv.cjs");
|
|
5
|
+
const require_apps = require("../apps-5iJb710M.cjs");
|
|
6
6
|
const require_define = require("../define-crmMcXFS.cjs");
|
|
7
|
-
const require_config = require("../config-
|
|
7
|
+
const require_config = require("../config-CLXSXbcs.cjs");
|
|
8
8
|
const require_discover = require("../discover-CRywE7yc.cjs");
|
|
9
|
-
const require_resolve = require("../resolve-
|
|
10
|
-
const require_notes = require("../notes-
|
|
11
|
-
const require_local = require("../local-
|
|
12
|
-
const require_sniffer = require("../sniffer-
|
|
13
|
-
const require_deploy = require("../deploy-
|
|
9
|
+
const require_resolve = require("../resolve-DDcPuS_G.cjs");
|
|
10
|
+
const require_notes = require("../notes-B9ro_R3x.cjs");
|
|
11
|
+
const require_local = require("../local-vSeEreyp.cjs");
|
|
12
|
+
const require_sniffer = require("../sniffer-B2jgjk-F.cjs");
|
|
13
|
+
const require_deploy = require("../deploy-CGywNg5R.cjs");
|
|
14
14
|
const require_seeds = require("../seeds-D7q1zKCJ.cjs");
|
|
15
|
-
const require_engine = require("../engine-
|
|
16
|
-
const require_rollback = require("../rollback-
|
|
15
|
+
const require_engine = require("../engine-_zA1Selg.cjs");
|
|
16
|
+
const require_rollback = require("../rollback-CvlebzBY.cjs");
|
|
17
17
|
const require_provider = require("../provider-BqpjG9QM.cjs");
|
|
18
|
-
const require_sst = require("../sst-
|
|
18
|
+
const require_sst = require("../sst-BtrgnhHy.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-BsfPHUFZ.cjs";
|
|
2
|
+
import "../index-Dy4ojz5P.cjs";
|
|
3
|
+
import { i as ConfigLoadFailed, o as ConfigObjectNotSerializable } from "../config-DNoWqavN.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-BySbkdBz.cjs";
|
|
5
5
|
import { ConstructManifest, Declaration } from "@geekmidas/manifest";
|
|
6
6
|
import "@geekmidas/envkit/sniffer";
|
|
7
7
|
import "@geekmidas/db/pg/roles";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public.d.cts","names":[],"sources":["../../src/home.ts","../../src/providers/config.ts","../../src/deploy/devServices.ts","../../src/providers/notes.ts","../../src/providers/s3/errors.ts","../../src/run.ts","../../src/sandbox/env.ts","../../src/docker/templates.ts","../../src/sandbox/install.ts","../../src/sandbox/local.ts","../../src/sandbox/worker.ts","../../src/target/dokploy/dokploy-api.ts","../../src/target/dokploy/engine.ts","../../src/target/dokploy/health.ts","../../src/target/dokploy/migrations.ts","../../src/target/dokploy/rollback.ts","../../src/target/seeds.ts","../../src/target/sst/health.ts","../../src/target/sst/outputs.ts","../../src/target/sst/index.ts","../../src/deploy/deploy.ts","../../src/deploy/orchestrate.ts","../../src/deploy/ownership.ts","../../src/deploy/registry.ts"],"mappings":";;;;;;;;;;;;;;;;;;qBAaa;;wBAGG,QAAQ,MAAK,OAAO;;;;
|
|
1
|
+
{"version":3,"file":"public.d.cts","names":[],"sources":["../../src/home.ts","../../src/providers/config.ts","../../src/deploy/devServices.ts","../../src/providers/notes.ts","../../src/providers/s3/errors.ts","../../src/run.ts","../../src/sandbox/env.ts","../../src/docker/templates.ts","../../src/sandbox/install.ts","../../src/sandbox/local.ts","../../src/sandbox/worker.ts","../../src/target/dokploy/dokploy-api.ts","../../src/target/dokploy/engine.ts","../../src/target/dokploy/health.ts","../../src/target/dokploy/migrations.ts","../../src/target/dokploy/rollback.ts","../../src/target/seeds.ts","../../src/target/sst/health.ts","../../src/target/sst/outputs.ts","../../src/target/sst/index.ts","../../src/deploy/deploy.ts","../../src/deploy/orchestrate.ts","../../src/deploy/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;;;;EAKhB;;;;;;;;;;EAUA,SAAS,YAAY;;;;;EAKrB;;;;;EAKA;;;;;;EAMA,UAAU,eAAe;;EAEzB;;EAEA;;;;;;EAMA;;;;;;EAMA;;;;;;EAMA;;;;;;EAMA,cAAc;;;;;;;;;;EAUd;;;;;;EAMA;;EAEA;;EAEA;;EAEA,SAAS;;;;;;EAMT,SAAS;;;;;EAKT;;;;;EAKA;;;;;;;;;;;;EAYA,UAAU;;;UAIM,kBAAkB,cAAc;;;;;;WAMvC,QAAQ,QAAQ;;;;;;;;;;;;;;;;;;wBAqEV,OAAO,OAAO,cAAc;;;;qBC/H/B,0BAA0B;WAE5B;WACA;EAFV,YACU,yBACA;;;qBAWE,yBAAyB;WAE3B;WACA;EAFV,YACU,eACA;;;qBAUE,4BAA4B;WACnB;EAArB,YAAqB;;;qBAST,uBAAuB;WAEzB;;WAEA;EAHV,YACU,gBAEA;;EAAA,kBACT;;;;;;;;qBCpHW,wBAAwB;WAE1B;WACA;WACA;;WAEA;EALV,YACU,qBACA,mBACA,kBAEA;;EAAA;;;;;qBChBE,8BAA8B;WACrB;EAArB,YAAqB;;;qBAUT,yBAAyB;WAChB;EAArB,YAAqB;;;qBAUT,0BAA0B;WAE5B;WACA;EAFV,YACU,kBACA"}
|
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-BXboFkn9.mjs";
|
|
2
|
+
import "../index-BC1BLv9Q.mjs";
|
|
3
|
+
import { i as ConfigLoadFailed, o as ConfigObjectNotSerializable } from "../config-BxSSAzVi.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-MZ5Pqgan.mjs";
|
|
5
5
|
import { ConstructManifest, Declaration } from "@geekmidas/manifest";
|
|
6
6
|
import "@geekmidas/db/pg/roles";
|
|
7
7
|
import "@aws-sdk/client-s3";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public.d.mts","names":[],"sources":["../../src/home.ts","../../src/providers/config.ts","../../src/deploy/devServices.ts","../../src/providers/notes.ts","../../src/providers/s3/errors.ts","../../src/run.ts","../../src/sandbox/env.ts","../../src/docker/templates.ts","../../src/sandbox/install.ts","../../src/sandbox/local.ts","../../src/sandbox/worker.ts","../../src/target/dokploy/dokploy-api.ts","../../src/target/dokploy/engine.ts","../../src/target/dokploy/health.ts","../../src/target/dokploy/migrations.ts","../../src/target/dokploy/rollback.ts","../../src/target/seeds.ts","../../src/target/sst/health.ts","../../src/target/sst/outputs.ts","../../src/target/sst/index.ts","../../src/deploy/deploy.ts","../../src/deploy/orchestrate.ts","../../src/deploy/ownership.ts","../../src/deploy/registry.ts"],"mappings":";;;;;;;;;;;;;;;;;;qBAaa;;wBAGG,QAAQ,MAAK,OAAO;;;;
|
|
1
|
+
{"version":3,"file":"public.d.mts","names":[],"sources":["../../src/home.ts","../../src/providers/config.ts","../../src/deploy/devServices.ts","../../src/providers/notes.ts","../../src/providers/s3/errors.ts","../../src/run.ts","../../src/sandbox/env.ts","../../src/docker/templates.ts","../../src/sandbox/install.ts","../../src/sandbox/local.ts","../../src/sandbox/worker.ts","../../src/target/dokploy/dokploy-api.ts","../../src/target/dokploy/engine.ts","../../src/target/dokploy/health.ts","../../src/target/dokploy/migrations.ts","../../src/target/dokploy/rollback.ts","../../src/target/seeds.ts","../../src/target/sst/health.ts","../../src/target/sst/outputs.ts","../../src/target/sst/index.ts","../../src/deploy/deploy.ts","../../src/deploy/orchestrate.ts","../../src/deploy/ownership.ts","../../src/deploy/registry.ts"],"mappings":";;;;;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Y;;;;;EAKrB;;;;;EAKA;;;;;;EAMA,UAAU,eAAe;;EAEzB;;EAEA;;;;;;EAMA;;;;;;EAMA;;;;;;EAMA;;;;;;EAMA,cAAc;;;;;;;;;;EAUd;;;;;;EAMA;;EAEA;;EAEA;;EAEA,SAAS;;;;;;EAMT,SAAS;;;;;EAKT;;;;;EAKA;;;;;;;;;;;;EAYA,UAAU;;;UAIM,kBAAkB,cAAc;;;;;;WAMvC,QAAQ,QAAQ;;;;;;;;;;;;;;;;;;wBAqEV,OAAO,OAAO,cAAc;;;;qBC/H/B,0BAA0B;WAE5B;WACA;EAFV,YACU,yBACA;;;qBAWE,yBAAyB;WAE3B;WACA;EAFV,YACU,eACA;;;qBAUE,4BAA4B;WACnB;EAArB,YAAqB;;;qBAST,uBAAuB;WAEzB;;WAEA;EAHV,YACU,gBAEA;;EAAA,kBACT;;;;;;;;qBCpHW,wBAAwB;WAE1B;WACA;WACA;;WAEA;EALV,YACU,qBACA,mBACA,kBAEA;;EAAA;;;;;qBChBE,8BAA8B;WACrB;EAArB,YAAqB;;;qBAUT,yBAAyB;WAChB;EAArB,YAAqB;;;qBAUT,0BAA0B;WAE5B;WACA;EAFV,YACU,kBACA"}
|
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-DhCCRQJp.mjs";
|
|
3
|
+
import { V as UnknownStageProvider, mt as ProvisionedBucketUnreachable } from "../workspace-D5Vm2qcy.mjs";
|
|
4
|
+
import { V as detectPackageManager } from "../apps-BE97n0jO.mjs";
|
|
5
5
|
import { a as UnknownDeployTarget, i as DeployTargetNotYetSupported } from "../define-6poNqm5O.mjs";
|
|
6
|
-
import { i as ConfigObjectNotSerializable, n as ConfigLoadFailed } from "../config-
|
|
6
|
+
import { i as ConfigObjectNotSerializable, n as ConfigLoadFailed } from "../config-Da9bxnkT.mjs";
|
|
7
7
|
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 { i as TargetRuntimeMismatch, l as TargetPackageNotFound, n as TargetEntryInvalid, r as TargetPackageInvalid, s as TargetRuntimeUndeclared, t as InvalidTargetOptions } from "../resolve-
|
|
9
|
-
import { c as DevServicesNeedServerTarget, l as ExternalServicesNotConfigured, o as AllowDevServicesTakesNoValue, s as DEV_SERVICES, t as StageProviderDisabled } from "../notes-
|
|
10
|
-
import { n as SANDBOX_ENV_ALLOWLIST, r as allowlistedEnv, t as LocalSandbox } from "../local-
|
|
11
|
-
import { a as DeploymentTimedOut, f as StateLocked, g as StateVersionConflict, i as DeploymentFailed, u as LocalStateInCi } from "../sniffer-
|
|
12
|
-
import { a as UnknownDeployApps, i as TargetBuildsNothing, n as NoDeployableApps, r as RollbackFailed, t as deploy } from "../deploy-
|
|
8
|
+
import { i as TargetRuntimeMismatch, l as TargetPackageNotFound, n as TargetEntryInvalid, r as TargetPackageInvalid, s as TargetRuntimeUndeclared, t as InvalidTargetOptions } from "../resolve-BjRvKEpw.mjs";
|
|
9
|
+
import { c as DevServicesNeedServerTarget, l as ExternalServicesNotConfigured, o as AllowDevServicesTakesNoValue, s as DEV_SERVICES, t as StageProviderDisabled } from "../notes-CdbUjLBC.mjs";
|
|
10
|
+
import { n as SANDBOX_ENV_ALLOWLIST, r as allowlistedEnv, t as LocalSandbox } from "../local-Bqx5Xj3z.mjs";
|
|
11
|
+
import { a as DeploymentTimedOut, f as StateLocked, g as StateVersionConflict, i as DeploymentFailed, u as LocalStateInCi } from "../sniffer-Csft3UaJ.mjs";
|
|
12
|
+
import { a as UnknownDeployApps, i as TargetBuildsNothing, n as NoDeployableApps, r as RollbackFailed, t as deploy } from "../deploy-C4Qb-A-z.mjs";
|
|
13
13
|
import { t as DeploySeedsFailed } from "../seeds-y1rzXlAc.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-
|
|
15
|
-
import { i as rollbackStage, n as RollbackNeedsApp, r as StageNeverDeployed, t as NothingToRollBack } from "../rollback-
|
|
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-Viv9p-yK.mjs";
|
|
15
|
+
import { i as rollbackStage, n as RollbackNeedsApp, r as StageNeverDeployed, t as NothingToRollBack } from "../rollback-xLGFZaHy.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-CmNUadAV.mjs";
|
|
18
18
|
import { join, resolve } from "node:path";
|
|
19
19
|
import { existsSync } from "node:fs";
|
|
20
20
|
//#region src/sandbox/install.ts
|
|
@@ -1,23 +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 {
|
|
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-DhCCRQJp.mjs";
|
|
3
|
+
import { G as checkSesConfig, J as EmailNotProvisioned, K as checkSesEmailConfig, L as resolveStageTelemetry, N as assertDeployedStage, Q as IAM_POLICY_NAME, U as stageProvider, W as SES_PROVISIONING, X as InboxNotProvisioned, Y as EmailSenderUnknown, Z as SesReceivingUnsupported, _t as S3RegionRequired, at as checkS3Config, ct as BucketNameUnavailable, dt as BucketRegionMismatch, et as bucketName, ft as BucketRegionUnknown, ht as RecordedBucketUnreachable, it as S3_PROVISIONING, kt as isReservedStageKey, lt as BucketOwnedByAnotherProject, mt as ProvisionedBucketUnreachable, nt as randomSuffix, q as emailUserName, rt as suffixedBucketName, tt as iamUserName, u as getAppBuildOrder, ut as BucketProbeFailed } from "./workspace-D5Vm2qcy.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-BE97n0jO.mjs";
|
|
5
5
|
import { o as builtinTarget } from "./define-6poNqm5O.mjs";
|
|
6
|
-
import { at as resolveHost, it as isMainFrontendApp, nt as NoDomainForStage } from "./compose-
|
|
6
|
+
import { at as resolveHost, it as isMainFrontendApp, nt as NoDomainForStage } from "./compose-CuoV9T9U.mjs";
|
|
7
7
|
import { s as subscriberRoute } from "./SubscriberGenerator-BybB6uez.mjs";
|
|
8
|
-
import { _ as withLoadedConfig, l as findWorkspaceRoot, m as loadWorkspaceConfig, v as appKey, y as derivedApps } from "./config-
|
|
8
|
+
import { _ as withLoadedConfig, l as findWorkspaceRoot, m as loadWorkspaceConfig, v as appKey, y as derivedApps } from "./config-Da9bxnkT.mjs";
|
|
9
9
|
import { _ as withSandbox, b as withOutput, i as discover } from "./discover-DbDrCQ8h.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 {
|
|
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-BjRvKEpw.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-CdbUjLBC.mjs";
|
|
12
|
+
import { w as assertSitePasswords } from "./stack-dVgzDUiH.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-DgbFGyac.mjs";
|
|
14
|
+
import { t as LocalSandbox } from "./local-Bqx5Xj3z.mjs";
|
|
15
|
+
import { E as eventError, S as createStateStore, v as assertStateOutlivesRun, y as assertStateRoom } from "./sniffer-Csft3UaJ.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-q9ALh-Y5.mjs";
|
|
17
|
+
import { a as findProjectBucket, i as ensureProjectBucket, o as projectBucketName, r as callerAccountId, s as reconcileProjectBucketLifecycle } from "./projectBucket-DPaUiLyY.mjs";
|
|
18
18
|
import { f as DeployJournal } from "./seeds-y1rzXlAc.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
22
|
import { INBOX_MESSAGES_PREFIX, bucketExpiry, dependentsOf, provideKey, providedKeyFor, receiptRecipients } from "@geekmidas/manifest";
|
|
22
23
|
import * as s3Url from "@geekmidas/storage/s3-url";
|
|
23
24
|
//#region src/target/secrets.ts
|
|
@@ -227,8 +228,10 @@ async function ensureStageBackups(input) {
|
|
|
227
228
|
});
|
|
228
229
|
await ensureAccessKey(ctx, clients, {
|
|
229
230
|
id: BACKUPS_ID,
|
|
230
|
-
|
|
231
|
-
|
|
231
|
+
secret: s3KeySecret(ctx, clients, {
|
|
232
|
+
bucket,
|
|
233
|
+
urlKey: BACKUPS_URL_KEY
|
|
234
|
+
}),
|
|
232
235
|
...user
|
|
233
236
|
});
|
|
234
237
|
return choice;
|
|
@@ -1722,8 +1725,10 @@ async function ensureBucket(ctx, stageClients, construct, watchers) {
|
|
|
1722
1725
|
});
|
|
1723
1726
|
await ensureAccessKey(ctx, clients, {
|
|
1724
1727
|
id,
|
|
1725
|
-
|
|
1726
|
-
|
|
1728
|
+
secret: s3KeySecret(ctx, clients, {
|
|
1729
|
+
bucket,
|
|
1730
|
+
urlKey: provideKey(id, "url")
|
|
1731
|
+
}),
|
|
1727
1732
|
...user
|
|
1728
1733
|
});
|
|
1729
1734
|
if (events && watchers) {
|
|
@@ -1805,8 +1810,10 @@ async function ensureOwnedBucket(ctx, input) {
|
|
|
1805
1810
|
});
|
|
1806
1811
|
await ensureAccessKey(bucketCtx, clients, {
|
|
1807
1812
|
id: input.id,
|
|
1808
|
-
|
|
1809
|
-
|
|
1813
|
+
secret: s3KeySecret(bucketCtx, clients, {
|
|
1814
|
+
bucket: located.bucket,
|
|
1815
|
+
urlKey: input.urlKey
|
|
1816
|
+
}),
|
|
1810
1817
|
...user
|
|
1811
1818
|
});
|
|
1812
1819
|
return {
|
|
@@ -2191,6 +2198,10 @@ const defaultSesClients = async (credential, region) => {
|
|
|
2191
2198
|
};
|
|
2192
2199
|
};
|
|
2193
2200
|
let makeSesClients = defaultSesClients;
|
|
2201
|
+
/** The stage's SES, through the factory a test may replace. */
|
|
2202
|
+
function sesClients(credential, region) {
|
|
2203
|
+
return makeSesClients(credential, region);
|
|
2204
|
+
}
|
|
2194
2205
|
function errorName(error) {
|
|
2195
2206
|
const e = error;
|
|
2196
2207
|
return e?.name ?? e?.Code ?? e?.code ?? "";
|
|
@@ -2213,7 +2224,7 @@ async function ensureSes(ctx) {
|
|
|
2213
2224
|
}, inboxes.length > 0);
|
|
2214
2225
|
if (inboxes.length > 0) {
|
|
2215
2226
|
const domain = stageDomain(ctx);
|
|
2216
|
-
await ensureIdentity(ctx, {
|
|
2227
|
+
await ensureIdentity$1(ctx, {
|
|
2217
2228
|
SES,
|
|
2218
2229
|
ses
|
|
2219
2230
|
}, domain);
|
|
@@ -2267,7 +2278,7 @@ async function activeRuleSet(ctx, { SES, ses }, needed) {
|
|
|
2267
2278
|
* The stage's domain as an SES identity, verified by Easy DKIM: its three
|
|
2268
2279
|
* CNAMEs, through the stage's DNS. Receiving requires a verified domain.
|
|
2269
2280
|
*/
|
|
2270
|
-
async function ensureIdentity(ctx, { SES, ses }, domain) {
|
|
2281
|
+
async function ensureIdentity$1(ctx, { SES, ses }, domain) {
|
|
2271
2282
|
let tokens = [];
|
|
2272
2283
|
await ctx.change({
|
|
2273
2284
|
construct: "inbox",
|
|
@@ -2407,6 +2418,277 @@ async function verifySes(ctx) {
|
|
|
2407
2418
|
if (missing.length > 0) throw new InboxNotProvisioned(ctx.stage, inbox.id, missing);
|
|
2408
2419
|
}
|
|
2409
2420
|
}
|
|
2421
|
+
const sesProvider = {
|
|
2422
|
+
kind: "inbox",
|
|
2423
|
+
name: "ses",
|
|
2424
|
+
check: checkSesConfig,
|
|
2425
|
+
provisioning: SES_PROVISIONING,
|
|
2426
|
+
credentials: awsProvisioningCredentials,
|
|
2427
|
+
runtimeKeys(manifest) {
|
|
2428
|
+
return inboxConstructs(manifest).flatMap((inbox) => [provideKey(inbox.id, "url"), provideKey(inbox.topic, "publisherConnectionString")]);
|
|
2429
|
+
},
|
|
2430
|
+
ensure: ensureSes,
|
|
2431
|
+
verify: verifySes
|
|
2432
|
+
};
|
|
2433
|
+
//#endregion
|
|
2434
|
+
//#region src/providers/ses/smtp.ts
|
|
2435
|
+
/**
|
|
2436
|
+
* SES's SMTP interface: where it is, and the password an IAM access key signs
|
|
2437
|
+
* in with there.
|
|
2438
|
+
*
|
|
2439
|
+
* SES issues IAM credentials, not SMTP ones. The SMTP password is derived
|
|
2440
|
+
* from the key's secret and the region, by SigV4's key derivation over a
|
|
2441
|
+
* fixed date and the message `SendRawEmail` — the algorithm the SES
|
|
2442
|
+
* Developer Guide gives ("Obtaining Amazon SES SMTP credentials"). A
|
|
2443
|
+
* password works in that region only.
|
|
2444
|
+
*/
|
|
2445
|
+
/** The SMTP endpoint of `region`. */
|
|
2446
|
+
function smtpHost(region) {
|
|
2447
|
+
return `email-smtp.${region}.amazonaws.com`;
|
|
2448
|
+
}
|
|
2449
|
+
/** The SMTP password for an access key's secret, in `region`. */
|
|
2450
|
+
function smtpPassword(secretAccessKey, region) {
|
|
2451
|
+
const sign = (key, message) => createHmac("sha256", key).update(message, "utf8").digest();
|
|
2452
|
+
let signature = sign(`AWS4${secretAccessKey}`, "11111111");
|
|
2453
|
+
for (const part of [
|
|
2454
|
+
region,
|
|
2455
|
+
"ses",
|
|
2456
|
+
"aws4_request",
|
|
2457
|
+
"SendRawEmail"
|
|
2458
|
+
]) signature = sign(signature, part);
|
|
2459
|
+
return Buffer.concat([Buffer.from([4]), signature]).toString("base64");
|
|
2460
|
+
}
|
|
2461
|
+
/** `smtp://<key id>:<smtp password>@email-smtp.<region>.amazonaws.com:587`. */
|
|
2462
|
+
function smtpUrl(accessKeyId, secretAccessKey, region) {
|
|
2463
|
+
return `smtp://${encodeURIComponent(accessKeyId)}:${encodeURIComponent(smtpPassword(secretAccessKey, region))}@${smtpHost(region)}:587`;
|
|
2464
|
+
}
|
|
2465
|
+
/** The user an `smtp://` URL signs in as, whatever its host. */
|
|
2466
|
+
function smtpUser(value) {
|
|
2467
|
+
try {
|
|
2468
|
+
const url = new URL(value);
|
|
2469
|
+
return url.username ? decodeURIComponent(url.username) : void 0;
|
|
2470
|
+
} catch {
|
|
2471
|
+
return;
|
|
2472
|
+
}
|
|
2473
|
+
}
|
|
2474
|
+
/**
|
|
2475
|
+
* A mail construct's URL as a key's secret. A URL on another region's
|
|
2476
|
+
* endpoint holds no key this region can use — its password was derived for
|
|
2477
|
+
* that region — so it counts as holding none, and a new key is issued.
|
|
2478
|
+
*/
|
|
2479
|
+
function smtpKeySecret(urlKey, region) {
|
|
2480
|
+
return {
|
|
2481
|
+
key: urlKey,
|
|
2482
|
+
keyIdOf(value) {
|
|
2483
|
+
try {
|
|
2484
|
+
return new URL(value).hostname === smtpHost(region) ? smtpUser(value) : void 0;
|
|
2485
|
+
} catch {
|
|
2486
|
+
return;
|
|
2487
|
+
}
|
|
2488
|
+
},
|
|
2489
|
+
value: (accessKeyId, secretAccessKey) => smtpUrl(accessKeyId, secretAccessKey, region)
|
|
2490
|
+
};
|
|
2491
|
+
}
|
|
2492
|
+
//#endregion
|
|
2493
|
+
//#region src/providers/ses/email.ts
|
|
2494
|
+
/**
|
|
2495
|
+
* The `ses` provider for mail: what sends an `Email` construct's mail on a
|
|
2496
|
+
* deployed stage.
|
|
2497
|
+
*
|
|
2498
|
+
* `deploy.email.<stage> = { provider: 'ses', region?, from? }` has the deploy
|
|
2499
|
+
* create, in the stage's AWS account:
|
|
2500
|
+
*
|
|
2501
|
+
* - **the sender's domain as an SES identity**, verified through Easy DKIM's
|
|
2502
|
+
* CNAMEs written through the stage's DNS — the same identity an inbox on
|
|
2503
|
+
* that domain uses: SES has one per domain, and neither provider deletes it;
|
|
2504
|
+
* - for each mail construct, **an IAM user** allowed `ses:SendRawEmail` from
|
|
2505
|
+
* that identity and nothing else, and **its access key**, written into the
|
|
2506
|
+
* stage's secrets as `<ID>_URL` — `smtp://<key id>:<smtp password>@
|
|
2507
|
+
* email-smtp.<region>.amazonaws.com:587`, the password derived from the key;
|
|
2508
|
+
* - **`<ID>_FROM`**: `from`, else what the secrets hold, else `noreply@` the
|
|
2509
|
+
* stage's domain.
|
|
2510
|
+
*
|
|
2511
|
+
* A `<ID>_URL` the stage's secrets already hold, and this provider did not
|
|
2512
|
+
* write, wins: the construct sends with it and nothing is created for it — an
|
|
2513
|
+
* identity that already has sending credentials is not given a second set.
|
|
2514
|
+
* Moving an existing stack onto compose stays a `secrets:import`.
|
|
2515
|
+
*
|
|
2516
|
+
* `--rotate-keys` issues each user a successor key, and with it a new
|
|
2517
|
+
* password, as every other provider's keys are rotated.
|
|
2518
|
+
*/
|
|
2519
|
+
/** The inline policy each sending user is given. */
|
|
2520
|
+
const SEND_POLICY_NAME = "gkm-email";
|
|
2521
|
+
/**
|
|
2522
|
+
* The most a sandboxed account sends in a day. An account with no more is
|
|
2523
|
+
* taken to be in the sandbox, where SES delivers only to verified addresses.
|
|
2524
|
+
*/
|
|
2525
|
+
const SANDBOX_DAILY_QUOTA = 200;
|
|
2526
|
+
/** Every mail construct in the manifest. */
|
|
2527
|
+
function emailConstructs(manifest) {
|
|
2528
|
+
return Object.values(manifest).filter((d) => d.kind === "email").sort((a, b) => a.id.localeCompare(b.id));
|
|
2529
|
+
}
|
|
2530
|
+
/** What a sending user may do: send as `identityArn`, and nothing else. */
|
|
2531
|
+
function sendPolicy(identityArn) {
|
|
2532
|
+
return {
|
|
2533
|
+
Version: "2012-10-17",
|
|
2534
|
+
Statement: [{
|
|
2535
|
+
Sid: "GkmSendEmail",
|
|
2536
|
+
Effect: "Allow",
|
|
2537
|
+
Action: "ses:SendRawEmail",
|
|
2538
|
+
Resource: identityArn
|
|
2539
|
+
}]
|
|
2540
|
+
};
|
|
2541
|
+
}
|
|
2542
|
+
/** The ARN of a domain's SES identity. */
|
|
2543
|
+
function identityArn(region, account, domain) {
|
|
2544
|
+
return `arn:aws:ses:${region}:${account}:identity/${domain}`;
|
|
2545
|
+
}
|
|
2546
|
+
/**
|
|
2547
|
+
* Whether the stage's secrets hold a URL for `email` that this provider did
|
|
2548
|
+
* not write — one set by hand, or imported — which it then leaves alone.
|
|
2549
|
+
*/
|
|
2550
|
+
function urlSetElsewhere(ctx, email) {
|
|
2551
|
+
const given = ctx.secrets[provideKey(email, "url")];
|
|
2552
|
+
if (given === void 0) return false;
|
|
2553
|
+
const record = ctx.state.record(`iam-access-key:${email}`);
|
|
2554
|
+
if (!record) return true;
|
|
2555
|
+
const user = smtpUser(given);
|
|
2556
|
+
return user !== record.id && user !== record.data?.previous;
|
|
2557
|
+
}
|
|
2558
|
+
/**
|
|
2559
|
+
* The address `email` sends from: `from`, else what the stage's secrets
|
|
2560
|
+
* hold, else `noreply@` the stage's domain.
|
|
2561
|
+
*
|
|
2562
|
+
* @throws {EmailSenderUnknown} with none of them
|
|
2563
|
+
*/
|
|
2564
|
+
function senderOf(ctx, email) {
|
|
2565
|
+
if (ctx.config.from) return ctx.config.from;
|
|
2566
|
+
const held = ctx.secrets[provideKey(email, "from")];
|
|
2567
|
+
if (held) return held;
|
|
2568
|
+
const domain = ctx.workspace.domains?.[ctx.stage];
|
|
2569
|
+
if (!domain) throw new EmailSenderUnknown(ctx.stage);
|
|
2570
|
+
return `noreply@${domain}`;
|
|
2571
|
+
}
|
|
2572
|
+
/** The domain of an address — `noreply@x.com` or `Acme <noreply@x.com>`. */
|
|
2573
|
+
function domainOf(address) {
|
|
2574
|
+
return address.slice(address.lastIndexOf("@") + 1).replace(/>\s*$/, "").trim().toLowerCase();
|
|
2575
|
+
}
|
|
2576
|
+
async function iamClients(credential, region) {
|
|
2577
|
+
const IAM = await import("@aws-sdk/client-iam");
|
|
2578
|
+
const { STSClient } = await import("@aws-sdk/client-sts");
|
|
2579
|
+
const config = await awsClientConfig(credential, region);
|
|
2580
|
+
const stsEndpoint = awsEndpoint(process.env, "STS");
|
|
2581
|
+
return {
|
|
2582
|
+
IAM,
|
|
2583
|
+
iam: new IAM.IAMClient(config),
|
|
2584
|
+
sts: new STSClient({
|
|
2585
|
+
...config,
|
|
2586
|
+
...stsEndpoint ? { endpoint: stsEndpoint } : {}
|
|
2587
|
+
}),
|
|
2588
|
+
region
|
|
2589
|
+
};
|
|
2590
|
+
}
|
|
2591
|
+
async function ensureSesEmail(ctx) {
|
|
2592
|
+
const owned = emailConstructs(ctx.manifest).filter((email) => {
|
|
2593
|
+
if (!urlSetElsewhere(ctx, email.id)) return true;
|
|
2594
|
+
ctx.log(` ${email.id}: ${provideKey(email.id, "url")} is set in the stage's secrets — it sends with that, and nothing is created for it`);
|
|
2595
|
+
return false;
|
|
2596
|
+
});
|
|
2597
|
+
if (owned.length === 0) return;
|
|
2598
|
+
const region = s3Region(ctx);
|
|
2599
|
+
const senders = new Map(owned.map((e) => [e.id, senderOf(ctx, e.id)]));
|
|
2600
|
+
const domains = [...new Set([...senders.values()].map(domainOf))].sort();
|
|
2601
|
+
const ses = await sesClients(ctx.credential, region);
|
|
2602
|
+
const clients = await iamClients(ctx.credential, region);
|
|
2603
|
+
try {
|
|
2604
|
+
const account = await callerAccountId(clients.sts);
|
|
2605
|
+
for (const domain of domains) await ensureIdentity(ctx, ses, domain);
|
|
2606
|
+
await noteSandbox(ctx, ses, region);
|
|
2607
|
+
for (const email of owned) {
|
|
2608
|
+
const from = senders.get(email.id);
|
|
2609
|
+
const domain = domainOf(from);
|
|
2610
|
+
const user = await ensureIamUser(ctx, clients, {
|
|
2611
|
+
id: email.id,
|
|
2612
|
+
user: emailUserName(ctx.identity.scope, ctx.stage, email.id),
|
|
2613
|
+
policyName: SEND_POLICY_NAME,
|
|
2614
|
+
policy: sendPolicy(identityArn(region, account, domain)),
|
|
2615
|
+
describe: `send as ${domain} only`
|
|
2616
|
+
});
|
|
2617
|
+
await ensureAccessKey(ctx, clients, {
|
|
2618
|
+
id: email.id,
|
|
2619
|
+
secret: smtpKeySecret(provideKey(email.id, "url"), region),
|
|
2620
|
+
...user
|
|
2621
|
+
});
|
|
2622
|
+
const fromKey = provideKey(email.id, "from");
|
|
2623
|
+
if (ctx.secrets[fromKey] !== from) await ctx.change({
|
|
2624
|
+
construct: email.id,
|
|
2625
|
+
resource: fromKey,
|
|
2626
|
+
change: `set to ${from}`
|
|
2627
|
+
}, () => ctx.writeSecrets({ [fromKey]: from }));
|
|
2628
|
+
}
|
|
2629
|
+
} finally {
|
|
2630
|
+
ses.ses.destroy();
|
|
2631
|
+
clients.iam.destroy();
|
|
2632
|
+
clients.sts.destroy();
|
|
2633
|
+
}
|
|
2634
|
+
}
|
|
2635
|
+
/**
|
|
2636
|
+
* The domain as an SES identity that signs what it sends with Easy DKIM: its
|
|
2637
|
+
* three CNAMEs, through the stage's DNS.
|
|
2638
|
+
*
|
|
2639
|
+
* The check is DKIM's own status, not the domain's: a domain verified by its
|
|
2640
|
+
* older TXT record is verified, and sends unsigned until DKIM is set up on it.
|
|
2641
|
+
* One whose DKIM is verified is left as it is, signing turned back on if it
|
|
2642
|
+
* was turned off; any other — new, verified only by TXT, or created by
|
|
2643
|
+
* another stack and never finished — is asked for its tokens, which SES
|
|
2644
|
+
* answers without making a second identity.
|
|
2645
|
+
*/
|
|
2646
|
+
async function ensureIdentity(ctx, { SES, ses }, domain) {
|
|
2647
|
+
const { DkimAttributes } = await ses.send(new SES.GetIdentityDkimAttributesCommand({ Identities: [domain] }));
|
|
2648
|
+
const dkim = DkimAttributes?.[domain];
|
|
2649
|
+
if (dkim?.DkimVerificationStatus === "Success") {
|
|
2650
|
+
if (dkim.DkimEnabled) return;
|
|
2651
|
+
await ctx.change({
|
|
2652
|
+
construct: "email",
|
|
2653
|
+
resource: `SES identity ${domain}`,
|
|
2654
|
+
change: "turn DKIM signing back on"
|
|
2655
|
+
}, async () => {
|
|
2656
|
+
await ses.send(new SES.SetIdentityDkimEnabledCommand({
|
|
2657
|
+
Identity: domain,
|
|
2658
|
+
DkimEnabled: true
|
|
2659
|
+
}));
|
|
2660
|
+
});
|
|
2661
|
+
return;
|
|
2662
|
+
}
|
|
2663
|
+
let tokens = [];
|
|
2664
|
+
await ctx.change({
|
|
2665
|
+
construct: "email",
|
|
2666
|
+
resource: `SES identity ${domain}`,
|
|
2667
|
+
change: "verify with DKIM"
|
|
2668
|
+
}, async () => {
|
|
2669
|
+
tokens = (await ses.send(new SES.VerifyDomainDkimCommand({ Domain: domain }))).DkimTokens ?? [];
|
|
2670
|
+
});
|
|
2671
|
+
if (tokens.length === 0) return;
|
|
2672
|
+
await ctx.writeDns(tokens.map((token) => ({
|
|
2673
|
+
host: `${token}._domainkey.${domain}`,
|
|
2674
|
+
type: "CNAME",
|
|
2675
|
+
value: `${token}.dkim.amazonses.com`
|
|
2676
|
+
})));
|
|
2677
|
+
ctx.log(` ${domain}: SES sends as it once its DKIM records resolve — usually minutes, at most 72 hours`);
|
|
2678
|
+
}
|
|
2679
|
+
/** Say so when the account is in SES's sandbox, rather than fail on a send. */
|
|
2680
|
+
async function noteSandbox(ctx, { SES, ses }, region) {
|
|
2681
|
+
const quota = await ses.send(new SES.GetSendQuotaCommand({}));
|
|
2682
|
+
if ((quota.Max24HourSend ?? 0) > SANDBOX_DAILY_QUOTA) return;
|
|
2683
|
+
ctx.log(` ⚠️ SES in ${region} looks to be in the sandbox (${quota.Max24HourSend ?? 0} messages a day): it delivers only to addresses verified in SES. Request production access in the SES console before sending to anyone else.`);
|
|
2684
|
+
}
|
|
2685
|
+
/** The cheap check every deploy runs: each mail construct's keys are in the stage's secrets. */
|
|
2686
|
+
async function verifySesEmail(ctx) {
|
|
2687
|
+
for (const email of emailConstructs(ctx.manifest)) {
|
|
2688
|
+
const missing = [provideKey(email.id, "url"), provideKey(email.id, "from")].filter((key) => ctx.secrets[key] === void 0);
|
|
2689
|
+
if (missing.length > 0) throw new EmailNotProvisioned(ctx.stage, email.id, missing);
|
|
2690
|
+
}
|
|
2691
|
+
}
|
|
2410
2692
|
//#endregion
|
|
2411
2693
|
//#region src/providers/registry.ts
|
|
2412
2694
|
/**
|
|
@@ -2416,17 +2698,18 @@ async function verifySes(ctx) {
|
|
|
2416
2698
|
*/
|
|
2417
2699
|
const BUILTIN_PROVIDERS = {
|
|
2418
2700
|
objects: { s3: s3Provider },
|
|
2419
|
-
inbox: { ses:
|
|
2420
|
-
|
|
2701
|
+
inbox: { ses: sesProvider },
|
|
2702
|
+
email: { ses: {
|
|
2703
|
+
kind: "email",
|
|
2421
2704
|
name: "ses",
|
|
2422
|
-
check:
|
|
2705
|
+
check: checkSesEmailConfig,
|
|
2423
2706
|
provisioning: SES_PROVISIONING,
|
|
2424
2707
|
credentials: awsProvisioningCredentials,
|
|
2425
2708
|
runtimeKeys(manifest) {
|
|
2426
|
-
return
|
|
2709
|
+
return emailConstructs(manifest).flatMap((email) => [provideKey(email.id, "url"), provideKey(email.id, "from")]);
|
|
2427
2710
|
},
|
|
2428
|
-
ensure:
|
|
2429
|
-
verify:
|
|
2711
|
+
ensure: ensureSesEmail,
|
|
2712
|
+
verify: verifySesEmail
|
|
2430
2713
|
} }
|
|
2431
2714
|
};
|
|
2432
2715
|
/** The provider `kind` names `name`, if gkm has one. */
|
|
@@ -3366,4 +3649,4 @@ async function load(input, sandbox) {
|
|
|
3366
3649
|
//#endregion
|
|
3367
3650
|
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 };
|
|
3368
3651
|
|
|
3369
|
-
//# sourceMappingURL=deploy-
|
|
3652
|
+
//# sourceMappingURL=deploy-C4Qb-A-z.mjs.map
|