@geekmidas/cli 10.0.0-alpha.161 → 10.0.0-alpha.162
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-Brr1IVq1.mjs} +5 -5
- package/dist/{cli-CI9v138l.mjs.map → cli-Brr1IVq1.mjs.map} +1 -1
- package/dist/{cli-k2G7rG15.cjs → cli-D--xSSlK.cjs} +5 -5
- package/dist/{cli-k2G7rG15.cjs.map → cli-D--xSSlK.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-Bb-o2KYC.mjs} +291 -28
- package/dist/deploy-Bb-o2KYC.mjs.map +1 -0
- package/dist/{deploy-CqIULk0k.cjs → deploy-Ck0zXkM7.cjs} +294 -31
- package/dist/deploy-Ck0zXkM7.cjs.map +1 -0
- package/dist/{destroy-DXIAL8nF.mjs → destroy-DIV6l_94.mjs} +10 -10
- package/dist/{destroy-DXIAL8nF.mjs.map → destroy-DIV6l_94.mjs.map} +1 -1
- package/dist/{destroy-CMldkiX-.cjs → destroy-JHapr9UF.cjs} +10 -10
- package/dist/{destroy-CMldkiX-.cjs.map → destroy-JHapr9UF.cjs.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-CoXirRes.mjs → github-BOXn5NEP.mjs} +40 -9
- package/dist/github-BOXn5NEP.mjs.map +1 -0
- package/dist/{github-OVZF2k0L.cjs → github-CRvdaD2Y.cjs} +44 -13
- package/dist/github-CRvdaD2Y.cjs.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-BoxtHWkI.cjs} +7 -7
- package/dist/{serverSetup-qXIRRhgw.cjs.map → serverSetup-BoxtHWkI.cjs.map} +1 -1
- package/dist/{serverSetup-CvcN4zJQ.mjs → serverSetup-DxcbUlwE.mjs} +7 -7
- package/dist/{serverSetup-CvcN4zJQ.mjs.map → serverSetup-DxcbUlwE.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
|
@@ -1,24 +1,25 @@
|
|
|
1
1
|
const require_rolldown_runtime = require("./rolldown-runtime-C0BPl7ul.cjs");
|
|
2
2
|
const require_errors = require("./errors-DMC4Umsb.cjs");
|
|
3
|
-
const require_credentials = require("./credentials-
|
|
4
|
-
const require_workspace = require("./workspace-
|
|
5
|
-
const require_apps = require("./apps-
|
|
3
|
+
const require_credentials = require("./credentials-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_compose = require("./compose-
|
|
7
|
+
const require_compose = require("./compose-Dpkkp-Qq.cjs");
|
|
8
8
|
const require_SubscriberGenerator = require("./SubscriberGenerator-mZpSuSU7.cjs");
|
|
9
|
-
const require_config = require("./config-
|
|
9
|
+
const require_config = require("./config-CLXSXbcs.cjs");
|
|
10
10
|
const require_discover = require("./discover-CRywE7yc.cjs");
|
|
11
|
-
const require_resolve = require("./resolve-
|
|
12
|
-
const require_notes = require("./notes-
|
|
13
|
-
const require_stack = require("./stack-
|
|
14
|
-
const require_snsSubscriptions = require("./snsSubscriptions-
|
|
15
|
-
const require_local = require("./local-
|
|
16
|
-
const require_sniffer = require("./sniffer-
|
|
17
|
-
const require_iam = require("./iam-
|
|
18
|
-
const require_projectBucket = require("./projectBucket-
|
|
11
|
+
const require_resolve = require("./resolve-DDcPuS_G.cjs");
|
|
12
|
+
const require_notes = require("./notes-B9ro_R3x.cjs");
|
|
13
|
+
const require_stack = require("./stack-9qBhn2pd.cjs");
|
|
14
|
+
const require_snsSubscriptions = require("./snsSubscriptions-CSyPnoEQ.cjs");
|
|
15
|
+
const require_local = require("./local-vSeEreyp.cjs");
|
|
16
|
+
const require_sniffer = require("./sniffer-B2jgjk-F.cjs");
|
|
17
|
+
const require_iam = require("./iam-BVPpX76R.cjs");
|
|
18
|
+
const require_projectBucket = require("./projectBucket-DUtWAxWn.cjs");
|
|
19
19
|
const require_seeds = require("./seeds-D7q1zKCJ.cjs");
|
|
20
20
|
const require_credentialSchemas = require("./credentialSchemas-BAklWDna.cjs");
|
|
21
21
|
let node_path = require("node:path");
|
|
22
|
+
let node_crypto = require("node:crypto");
|
|
22
23
|
let _geekmidas_manifest = require("@geekmidas/manifest");
|
|
23
24
|
let _geekmidas_storage_s3_url = require("@geekmidas/storage/s3-url");
|
|
24
25
|
_geekmidas_storage_s3_url = require_rolldown_runtime.__toESM(_geekmidas_storage_s3_url, 1);
|
|
@@ -91,7 +92,7 @@ const BACKUPS_POLICY_NAME = "gkm-backups";
|
|
|
91
92
|
const VERIFY_MARKER = ".gkm-verify";
|
|
92
93
|
/** The backups user's name: `gkm-<project>-<stage>-backups`. */
|
|
93
94
|
function backupsUserName(scope, stage) {
|
|
94
|
-
return
|
|
95
|
+
return require_workspace.iamUserName({
|
|
95
96
|
scope,
|
|
96
97
|
stage,
|
|
97
98
|
id: BACKUPS_ID
|
|
@@ -229,8 +230,10 @@ async function ensureStageBackups(input) {
|
|
|
229
230
|
});
|
|
230
231
|
await require_iam.ensureAccessKey(ctx, clients, {
|
|
231
232
|
id: BACKUPS_ID,
|
|
232
|
-
|
|
233
|
-
|
|
233
|
+
secret: require_iam.s3KeySecret(ctx, clients, {
|
|
234
|
+
bucket,
|
|
235
|
+
urlKey: require_apps.BACKUPS_URL_KEY
|
|
236
|
+
}),
|
|
234
237
|
...user
|
|
235
238
|
});
|
|
236
239
|
return choice;
|
|
@@ -1680,7 +1683,7 @@ async function ensureBucket(ctx, stageClients, construct, watchers) {
|
|
|
1680
1683
|
};
|
|
1681
1684
|
const versioning = ctx.config.versioning ?? construct.versioned;
|
|
1682
1685
|
const open = [...new Set(construct.servers.flatMap((s) => s.open))].sort();
|
|
1683
|
-
const located = await ensureBucketName(ctx, stageClients, id,
|
|
1686
|
+
const located = await ensureBucketName(ctx, stageClients, id, require_workspace.bucketName(nameInput));
|
|
1684
1687
|
const { bucket, exists } = located;
|
|
1685
1688
|
let clients = stageClients;
|
|
1686
1689
|
if (located.region !== stageClients.region) {
|
|
@@ -1714,8 +1717,8 @@ async function ensureBucket(ctx, stageClients, construct, watchers) {
|
|
|
1714
1717
|
}) : void 0;
|
|
1715
1718
|
const user = await require_iam.ensureIamUser(ctx, clients, {
|
|
1716
1719
|
id,
|
|
1717
|
-
user:
|
|
1718
|
-
policyName:
|
|
1720
|
+
user: require_workspace.iamUserName(nameInput),
|
|
1721
|
+
policyName: require_workspace.IAM_POLICY_NAME,
|
|
1719
1722
|
policy: require_iam.userPolicy(bucket, {
|
|
1720
1723
|
versioning,
|
|
1721
1724
|
...events ? { eventsTopicArn: events.topicArn } : {}
|
|
@@ -1724,8 +1727,10 @@ async function ensureBucket(ctx, stageClients, construct, watchers) {
|
|
|
1724
1727
|
});
|
|
1725
1728
|
await require_iam.ensureAccessKey(ctx, clients, {
|
|
1726
1729
|
id,
|
|
1727
|
-
|
|
1728
|
-
|
|
1730
|
+
secret: require_iam.s3KeySecret(ctx, clients, {
|
|
1731
|
+
bucket,
|
|
1732
|
+
urlKey: (0, _geekmidas_manifest.provideKey)(id, "url")
|
|
1733
|
+
}),
|
|
1729
1734
|
...user
|
|
1730
1735
|
});
|
|
1731
1736
|
if (events && watchers) {
|
|
@@ -1788,7 +1793,7 @@ async function ensureOwnedBucket(ctx, input) {
|
|
|
1788
1793
|
stage: ctx.stage,
|
|
1789
1794
|
id: input.name
|
|
1790
1795
|
};
|
|
1791
|
-
const located = await ensureBucketName(bucketCtx, stageClients, input.id,
|
|
1796
|
+
const located = await ensureBucketName(bucketCtx, stageClients, input.id, require_workspace.bucketName(nameInput));
|
|
1792
1797
|
const clients = located.region === stageClients.region ? stageClients : await makeClients(ctx.credential, located.region);
|
|
1793
1798
|
await ensureBucketSettings(bucketCtx, clients, {
|
|
1794
1799
|
id: input.id,
|
|
@@ -1800,15 +1805,17 @@ async function ensureOwnedBucket(ctx, input) {
|
|
|
1800
1805
|
});
|
|
1801
1806
|
const user = await require_iam.ensureIamUser(bucketCtx, clients, {
|
|
1802
1807
|
id: input.id,
|
|
1803
|
-
user:
|
|
1804
|
-
policyName:
|
|
1808
|
+
user: require_workspace.iamUserName(nameInput),
|
|
1809
|
+
policyName: require_workspace.IAM_POLICY_NAME,
|
|
1805
1810
|
policy: require_iam.userPolicy(located.bucket, input.topicArn ? { eventsTopicArn: input.topicArn } : {}),
|
|
1806
1811
|
describe: "this bucket only"
|
|
1807
1812
|
});
|
|
1808
1813
|
await require_iam.ensureAccessKey(bucketCtx, clients, {
|
|
1809
1814
|
id: input.id,
|
|
1810
|
-
|
|
1811
|
-
|
|
1815
|
+
secret: require_iam.s3KeySecret(bucketCtx, clients, {
|
|
1816
|
+
bucket: located.bucket,
|
|
1817
|
+
urlKey: input.urlKey
|
|
1818
|
+
}),
|
|
1812
1819
|
...user
|
|
1813
1820
|
});
|
|
1814
1821
|
return {
|
|
@@ -1900,7 +1907,7 @@ async function ensureBucketName(ctx, clients, id, good) {
|
|
|
1900
1907
|
const names = [
|
|
1901
1908
|
...typeof pending === "string" && pending !== good ? [pending] : [],
|
|
1902
1909
|
good,
|
|
1903
|
-
...Array.from({ length: 5 }, () =>
|
|
1910
|
+
...Array.from({ length: 5 }, () => require_workspace.suffixedBucketName(good, require_workspace.randomSuffix()))
|
|
1904
1911
|
];
|
|
1905
1912
|
const tried = [];
|
|
1906
1913
|
for (const name of names) {
|
|
@@ -2193,6 +2200,10 @@ const defaultSesClients = async (credential, region) => {
|
|
|
2193
2200
|
};
|
|
2194
2201
|
};
|
|
2195
2202
|
let makeSesClients = defaultSesClients;
|
|
2203
|
+
/** The stage's SES, through the factory a test may replace. */
|
|
2204
|
+
function sesClients(credential, region) {
|
|
2205
|
+
return makeSesClients(credential, region);
|
|
2206
|
+
}
|
|
2196
2207
|
function errorName(error) {
|
|
2197
2208
|
const e = error;
|
|
2198
2209
|
return e?.name ?? e?.Code ?? e?.code ?? "";
|
|
@@ -2215,7 +2226,7 @@ async function ensureSes(ctx) {
|
|
|
2215
2226
|
}, inboxes.length > 0);
|
|
2216
2227
|
if (inboxes.length > 0) {
|
|
2217
2228
|
const domain = stageDomain(ctx);
|
|
2218
|
-
await ensureIdentity(ctx, {
|
|
2229
|
+
await ensureIdentity$1(ctx, {
|
|
2219
2230
|
SES,
|
|
2220
2231
|
ses
|
|
2221
2232
|
}, domain);
|
|
@@ -2269,7 +2280,7 @@ async function activeRuleSet(ctx, { SES, ses }, needed) {
|
|
|
2269
2280
|
* The stage's domain as an SES identity, verified by Easy DKIM: its three
|
|
2270
2281
|
* CNAMEs, through the stage's DNS. Receiving requires a verified domain.
|
|
2271
2282
|
*/
|
|
2272
|
-
async function ensureIdentity(ctx, { SES, ses }, domain) {
|
|
2283
|
+
async function ensureIdentity$1(ctx, { SES, ses }, domain) {
|
|
2273
2284
|
let tokens = [];
|
|
2274
2285
|
await ctx.change({
|
|
2275
2286
|
construct: "inbox",
|
|
@@ -2422,6 +2433,257 @@ const sesProvider = {
|
|
|
2422
2433
|
verify: verifySes
|
|
2423
2434
|
};
|
|
2424
2435
|
//#endregion
|
|
2436
|
+
//#region src/providers/ses/smtp.ts
|
|
2437
|
+
/**
|
|
2438
|
+
* SES's SMTP interface: where it is, and the password an IAM access key signs
|
|
2439
|
+
* in with there.
|
|
2440
|
+
*
|
|
2441
|
+
* SES issues IAM credentials, not SMTP ones. The SMTP password is derived
|
|
2442
|
+
* from the key's secret and the region, by SigV4's key derivation over a
|
|
2443
|
+
* fixed date and the message `SendRawEmail` — the algorithm the SES
|
|
2444
|
+
* Developer Guide gives ("Obtaining Amazon SES SMTP credentials"). A
|
|
2445
|
+
* password works in that region only.
|
|
2446
|
+
*/
|
|
2447
|
+
/** The SMTP endpoint of `region`. */
|
|
2448
|
+
function smtpHost(region) {
|
|
2449
|
+
return `email-smtp.${region}.amazonaws.com`;
|
|
2450
|
+
}
|
|
2451
|
+
/** The SMTP password for an access key's secret, in `region`. */
|
|
2452
|
+
function smtpPassword(secretAccessKey, region) {
|
|
2453
|
+
const sign = (key, message) => (0, node_crypto.createHmac)("sha256", key).update(message, "utf8").digest();
|
|
2454
|
+
let signature = sign(`AWS4${secretAccessKey}`, "11111111");
|
|
2455
|
+
for (const part of [
|
|
2456
|
+
region,
|
|
2457
|
+
"ses",
|
|
2458
|
+
"aws4_request",
|
|
2459
|
+
"SendRawEmail"
|
|
2460
|
+
]) signature = sign(signature, part);
|
|
2461
|
+
return Buffer.concat([Buffer.from([4]), signature]).toString("base64");
|
|
2462
|
+
}
|
|
2463
|
+
/** `smtp://<key id>:<smtp password>@email-smtp.<region>.amazonaws.com:587`. */
|
|
2464
|
+
function smtpUrl(accessKeyId, secretAccessKey, region) {
|
|
2465
|
+
return `smtp://${encodeURIComponent(accessKeyId)}:${encodeURIComponent(smtpPassword(secretAccessKey, region))}@${smtpHost(region)}:587`;
|
|
2466
|
+
}
|
|
2467
|
+
/** The user an `smtp://` URL signs in as, whatever its host. */
|
|
2468
|
+
function smtpUser(value) {
|
|
2469
|
+
try {
|
|
2470
|
+
const url = new URL(value);
|
|
2471
|
+
return url.username ? decodeURIComponent(url.username) : void 0;
|
|
2472
|
+
} catch {
|
|
2473
|
+
return;
|
|
2474
|
+
}
|
|
2475
|
+
}
|
|
2476
|
+
/**
|
|
2477
|
+
* A mail construct's URL as a key's secret. A URL on another region's
|
|
2478
|
+
* endpoint holds no key this region can use — its password was derived for
|
|
2479
|
+
* that region — so it counts as holding none, and a new key is issued.
|
|
2480
|
+
*/
|
|
2481
|
+
function smtpKeySecret(urlKey, region) {
|
|
2482
|
+
return {
|
|
2483
|
+
key: urlKey,
|
|
2484
|
+
keyIdOf(value) {
|
|
2485
|
+
try {
|
|
2486
|
+
return new URL(value).hostname === smtpHost(region) ? smtpUser(value) : void 0;
|
|
2487
|
+
} catch {
|
|
2488
|
+
return;
|
|
2489
|
+
}
|
|
2490
|
+
},
|
|
2491
|
+
value: (accessKeyId, secretAccessKey) => smtpUrl(accessKeyId, secretAccessKey, region)
|
|
2492
|
+
};
|
|
2493
|
+
}
|
|
2494
|
+
//#endregion
|
|
2495
|
+
//#region src/providers/ses/email.ts
|
|
2496
|
+
/**
|
|
2497
|
+
* The `ses` provider for mail: what sends an `Email` construct's mail on a
|
|
2498
|
+
* deployed stage.
|
|
2499
|
+
*
|
|
2500
|
+
* `deploy.email.<stage> = { provider: 'ses', region?, from? }` has the deploy
|
|
2501
|
+
* create, in the stage's AWS account:
|
|
2502
|
+
*
|
|
2503
|
+
* - **the sender's domain as an SES identity**, verified through Easy DKIM's
|
|
2504
|
+
* CNAMEs written through the stage's DNS — the same identity an inbox on
|
|
2505
|
+
* that domain uses: SES has one per domain, and neither provider deletes it;
|
|
2506
|
+
* - for each mail construct, **an IAM user** allowed `ses:SendRawEmail` from
|
|
2507
|
+
* that identity and nothing else, and **its access key**, written into the
|
|
2508
|
+
* stage's secrets as `<ID>_URL` — `smtp://<key id>:<smtp password>@
|
|
2509
|
+
* email-smtp.<region>.amazonaws.com:587`, the password derived from the key;
|
|
2510
|
+
* - **`<ID>_FROM`**: `from`, else what the secrets hold, else `noreply@` the
|
|
2511
|
+
* stage's domain.
|
|
2512
|
+
*
|
|
2513
|
+
* A `<ID>_URL` the stage's secrets already hold, and this provider did not
|
|
2514
|
+
* write, wins: the construct sends with it and nothing is created for it — an
|
|
2515
|
+
* identity that already has sending credentials is not given a second set.
|
|
2516
|
+
* Moving an existing stack onto compose stays a `secrets:import`.
|
|
2517
|
+
*
|
|
2518
|
+
* `--rotate-keys` issues each user a successor key, and with it a new
|
|
2519
|
+
* password, as every other provider's keys are rotated.
|
|
2520
|
+
*/
|
|
2521
|
+
/** The inline policy each sending user is given. */
|
|
2522
|
+
const SEND_POLICY_NAME = "gkm-email";
|
|
2523
|
+
/**
|
|
2524
|
+
* The most a sandboxed account sends in a day. An account with no more is
|
|
2525
|
+
* taken to be in the sandbox, where SES delivers only to verified addresses.
|
|
2526
|
+
*/
|
|
2527
|
+
const SANDBOX_DAILY_QUOTA = 200;
|
|
2528
|
+
/** Every mail construct in the manifest. */
|
|
2529
|
+
function emailConstructs(manifest) {
|
|
2530
|
+
return Object.values(manifest).filter((d) => d.kind === "email").sort((a, b) => a.id.localeCompare(b.id));
|
|
2531
|
+
}
|
|
2532
|
+
/** What a sending user may do: send as `identityArn`, and nothing else. */
|
|
2533
|
+
function sendPolicy(identityArn) {
|
|
2534
|
+
return {
|
|
2535
|
+
Version: "2012-10-17",
|
|
2536
|
+
Statement: [{
|
|
2537
|
+
Sid: "GkmSendEmail",
|
|
2538
|
+
Effect: "Allow",
|
|
2539
|
+
Action: "ses:SendRawEmail",
|
|
2540
|
+
Resource: identityArn
|
|
2541
|
+
}]
|
|
2542
|
+
};
|
|
2543
|
+
}
|
|
2544
|
+
/** The ARN of a domain's SES identity. */
|
|
2545
|
+
function identityArn(region, account, domain) {
|
|
2546
|
+
return `arn:aws:ses:${region}:${account}:identity/${domain}`;
|
|
2547
|
+
}
|
|
2548
|
+
/**
|
|
2549
|
+
* Whether the stage's secrets hold a URL for `email` that this provider did
|
|
2550
|
+
* not write — one set by hand, or imported — which it then leaves alone.
|
|
2551
|
+
*/
|
|
2552
|
+
function urlSetElsewhere(ctx, email) {
|
|
2553
|
+
const given = ctx.secrets[(0, _geekmidas_manifest.provideKey)(email, "url")];
|
|
2554
|
+
if (given === void 0) return false;
|
|
2555
|
+
const record = ctx.state.record(`iam-access-key:${email}`);
|
|
2556
|
+
if (!record) return true;
|
|
2557
|
+
const user = smtpUser(given);
|
|
2558
|
+
return user !== record.id && user !== record.data?.previous;
|
|
2559
|
+
}
|
|
2560
|
+
/**
|
|
2561
|
+
* The address `email` sends from: `from`, else what the stage's secrets
|
|
2562
|
+
* hold, else `noreply@` the stage's domain.
|
|
2563
|
+
*
|
|
2564
|
+
* @throws {EmailSenderUnknown} with none of them
|
|
2565
|
+
*/
|
|
2566
|
+
function senderOf(ctx, email) {
|
|
2567
|
+
if (ctx.config.from) return ctx.config.from;
|
|
2568
|
+
const held = ctx.secrets[(0, _geekmidas_manifest.provideKey)(email, "from")];
|
|
2569
|
+
if (held) return held;
|
|
2570
|
+
const domain = ctx.workspace.domains?.[ctx.stage];
|
|
2571
|
+
if (!domain) throw new require_workspace.EmailSenderUnknown(ctx.stage);
|
|
2572
|
+
return `noreply@${domain}`;
|
|
2573
|
+
}
|
|
2574
|
+
/** The domain of an address — `noreply@x.com` or `Acme <noreply@x.com>`. */
|
|
2575
|
+
function domainOf(address) {
|
|
2576
|
+
return address.slice(address.lastIndexOf("@") + 1).replace(/>\s*$/, "").trim().toLowerCase();
|
|
2577
|
+
}
|
|
2578
|
+
async function iamClients(credential, region) {
|
|
2579
|
+
const IAM = await import("@aws-sdk/client-iam");
|
|
2580
|
+
const { STSClient } = await import("@aws-sdk/client-sts");
|
|
2581
|
+
const config = await require_snsSubscriptions.awsClientConfig(credential, region);
|
|
2582
|
+
const stsEndpoint = require_snsSubscriptions.awsEndpoint(process.env, "STS");
|
|
2583
|
+
return {
|
|
2584
|
+
IAM,
|
|
2585
|
+
iam: new IAM.IAMClient(config),
|
|
2586
|
+
sts: new STSClient({
|
|
2587
|
+
...config,
|
|
2588
|
+
...stsEndpoint ? { endpoint: stsEndpoint } : {}
|
|
2589
|
+
}),
|
|
2590
|
+
region
|
|
2591
|
+
};
|
|
2592
|
+
}
|
|
2593
|
+
async function ensureSesEmail(ctx) {
|
|
2594
|
+
const owned = emailConstructs(ctx.manifest).filter((email) => {
|
|
2595
|
+
if (!urlSetElsewhere(ctx, email.id)) return true;
|
|
2596
|
+
ctx.log(` ${email.id}: ${(0, _geekmidas_manifest.provideKey)(email.id, "url")} is set in the stage's secrets — it sends with that, and nothing is created for it`);
|
|
2597
|
+
return false;
|
|
2598
|
+
});
|
|
2599
|
+
if (owned.length === 0) return;
|
|
2600
|
+
const region = s3Region(ctx);
|
|
2601
|
+
const senders = new Map(owned.map((e) => [e.id, senderOf(ctx, e.id)]));
|
|
2602
|
+
const domains = [...new Set([...senders.values()].map(domainOf))].sort();
|
|
2603
|
+
const ses = await sesClients(ctx.credential, region);
|
|
2604
|
+
const clients = await iamClients(ctx.credential, region);
|
|
2605
|
+
try {
|
|
2606
|
+
const account = await require_projectBucket.callerAccountId(clients.sts);
|
|
2607
|
+
for (const domain of domains) await ensureIdentity(ctx, ses, domain);
|
|
2608
|
+
await noteSandbox(ctx, ses, region);
|
|
2609
|
+
for (const email of owned) {
|
|
2610
|
+
const from = senders.get(email.id);
|
|
2611
|
+
const domain = domainOf(from);
|
|
2612
|
+
const user = await require_iam.ensureIamUser(ctx, clients, {
|
|
2613
|
+
id: email.id,
|
|
2614
|
+
user: require_workspace.emailUserName(ctx.identity.scope, ctx.stage, email.id),
|
|
2615
|
+
policyName: SEND_POLICY_NAME,
|
|
2616
|
+
policy: sendPolicy(identityArn(region, account, domain)),
|
|
2617
|
+
describe: `send as ${domain} only`
|
|
2618
|
+
});
|
|
2619
|
+
await require_iam.ensureAccessKey(ctx, clients, {
|
|
2620
|
+
id: email.id,
|
|
2621
|
+
secret: smtpKeySecret((0, _geekmidas_manifest.provideKey)(email.id, "url"), region),
|
|
2622
|
+
...user
|
|
2623
|
+
});
|
|
2624
|
+
const fromKey = (0, _geekmidas_manifest.provideKey)(email.id, "from");
|
|
2625
|
+
if (ctx.secrets[fromKey] !== from) await ctx.change({
|
|
2626
|
+
construct: email.id,
|
|
2627
|
+
resource: fromKey,
|
|
2628
|
+
change: `set to ${from}`
|
|
2629
|
+
}, () => ctx.writeSecrets({ [fromKey]: from }));
|
|
2630
|
+
}
|
|
2631
|
+
} finally {
|
|
2632
|
+
ses.ses.destroy();
|
|
2633
|
+
clients.iam.destroy();
|
|
2634
|
+
clients.sts.destroy();
|
|
2635
|
+
}
|
|
2636
|
+
}
|
|
2637
|
+
/**
|
|
2638
|
+
* The domain as an SES identity, verified by Easy DKIM: its three CNAMEs,
|
|
2639
|
+
* through the stage's DNS. A verified one is left as it is; one that is not
|
|
2640
|
+
* — new, or created by another stack and never finished — is asked for its
|
|
2641
|
+
* tokens again, which SES answers without making a second identity.
|
|
2642
|
+
*/
|
|
2643
|
+
async function ensureIdentity(ctx, { SES, ses }, domain) {
|
|
2644
|
+
if ((await ses.send(new SES.GetIdentityVerificationAttributesCommand({ Identities: [domain] }))).VerificationAttributes?.[domain]?.VerificationStatus === "Success") return;
|
|
2645
|
+
let tokens = [];
|
|
2646
|
+
await ctx.change({
|
|
2647
|
+
construct: "email",
|
|
2648
|
+
resource: `SES identity ${domain}`,
|
|
2649
|
+
change: "verify with DKIM"
|
|
2650
|
+
}, async () => {
|
|
2651
|
+
tokens = (await ses.send(new SES.VerifyDomainDkimCommand({ Domain: domain }))).DkimTokens ?? [];
|
|
2652
|
+
});
|
|
2653
|
+
if (tokens.length === 0) return;
|
|
2654
|
+
await ctx.writeDns(tokens.map((token) => ({
|
|
2655
|
+
host: `${token}._domainkey.${domain}`,
|
|
2656
|
+
type: "CNAME",
|
|
2657
|
+
value: `${token}.dkim.amazonses.com`
|
|
2658
|
+
})));
|
|
2659
|
+
ctx.log(` ${domain}: SES sends as it once its DKIM records resolve — usually minutes, at most 72 hours`);
|
|
2660
|
+
}
|
|
2661
|
+
/** Say so when the account is in SES's sandbox, rather than fail on a send. */
|
|
2662
|
+
async function noteSandbox(ctx, { SES, ses }, region) {
|
|
2663
|
+
const quota = await ses.send(new SES.GetSendQuotaCommand({}));
|
|
2664
|
+
if ((quota.Max24HourSend ?? 0) > SANDBOX_DAILY_QUOTA) return;
|
|
2665
|
+
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.`);
|
|
2666
|
+
}
|
|
2667
|
+
/** The cheap check every deploy runs: each mail construct's keys are in the stage's secrets. */
|
|
2668
|
+
async function verifySesEmail(ctx) {
|
|
2669
|
+
for (const email of emailConstructs(ctx.manifest)) {
|
|
2670
|
+
const missing = [(0, _geekmidas_manifest.provideKey)(email.id, "url"), (0, _geekmidas_manifest.provideKey)(email.id, "from")].filter((key) => ctx.secrets[key] === void 0);
|
|
2671
|
+
if (missing.length > 0) throw new require_workspace.EmailNotProvisioned(ctx.stage, email.id, missing);
|
|
2672
|
+
}
|
|
2673
|
+
}
|
|
2674
|
+
const sesEmailProvider = {
|
|
2675
|
+
kind: "email",
|
|
2676
|
+
name: "ses",
|
|
2677
|
+
check: require_workspace.checkSesEmailConfig,
|
|
2678
|
+
provisioning: require_workspace.SES_PROVISIONING,
|
|
2679
|
+
credentials: require_snsSubscriptions.awsProvisioningCredentials,
|
|
2680
|
+
runtimeKeys(manifest) {
|
|
2681
|
+
return emailConstructs(manifest).flatMap((email) => [(0, _geekmidas_manifest.provideKey)(email.id, "url"), (0, _geekmidas_manifest.provideKey)(email.id, "from")]);
|
|
2682
|
+
},
|
|
2683
|
+
ensure: ensureSesEmail,
|
|
2684
|
+
verify: verifySesEmail
|
|
2685
|
+
};
|
|
2686
|
+
//#endregion
|
|
2425
2687
|
//#region src/providers/registry.ts
|
|
2426
2688
|
/**
|
|
2427
2689
|
* The providers gkm ships, by kind and name — registered the way a deploy
|
|
@@ -2430,7 +2692,8 @@ const sesProvider = {
|
|
|
2430
2692
|
*/
|
|
2431
2693
|
const BUILTIN_PROVIDERS = {
|
|
2432
2694
|
objects: { s3: s3Provider },
|
|
2433
|
-
inbox: { ses: sesProvider }
|
|
2695
|
+
inbox: { ses: sesProvider },
|
|
2696
|
+
email: { ses: sesEmailProvider }
|
|
2434
2697
|
};
|
|
2435
2698
|
/** The provider `kind` names `name`, if gkm has one. */
|
|
2436
2699
|
function builtinProvider(kind, name) {
|
|
@@ -3422,4 +3685,4 @@ Object.defineProperty(exports, "deploy", {
|
|
|
3422
3685
|
}
|
|
3423
3686
|
});
|
|
3424
3687
|
|
|
3425
|
-
//# sourceMappingURL=deploy-
|
|
3688
|
+
//# sourceMappingURL=deploy-Ck0zXkM7.cjs.map
|