@geekmidas/cli 10.0.0-alpha.179 → 10.0.0-alpha.180
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{EndpointGenerator-DMq6ameY.mjs → EndpointGenerator-CBKH87_b.mjs} +3 -3
- package/dist/{EndpointGenerator-DMq6ameY.mjs.map → EndpointGenerator-CBKH87_b.mjs.map} +1 -1
- package/dist/{EndpointGenerator-yx7_SoXT.cjs → EndpointGenerator-iyA3HkOH.cjs} +3 -3
- package/dist/{EndpointGenerator-yx7_SoXT.cjs.map → EndpointGenerator-iyA3HkOH.cjs.map} +1 -1
- package/dist/{LegacyStateStore-BzUlIHvz.mjs → LegacyStateStore-B7pQA25B.mjs} +2 -2
- package/dist/{LegacyStateStore-BzUlIHvz.mjs.map → LegacyStateStore-B7pQA25B.mjs.map} +1 -1
- package/dist/{LegacyStateStore-C7FFaVce.cjs → LegacyStateStore-l0hBdv-E.cjs} +2 -2
- package/dist/{LegacyStateStore-C7FFaVce.cjs.map → LegacyStateStore-l0hBdv-E.cjs.map} +1 -1
- package/dist/{LocalStateStore-BvI8RUtS.mjs → LocalStateStore-CP0UHL85.mjs} +2 -2
- package/dist/{LocalStateStore-BvI8RUtS.mjs.map → LocalStateStore-CP0UHL85.mjs.map} +1 -1
- package/dist/{LocalStateStore-BJQvLCrg.cjs → LocalStateStore-DEE0Kc_s.cjs} +2 -2
- package/dist/{LocalStateStore-BJQvLCrg.cjs.map → LocalStateStore-DEE0Kc_s.cjs.map} +1 -1
- package/dist/{OpenApiTsGenerator-C_JqxkWt.mjs → OpenApiTsGenerator-CoVA3Ykv.mjs} +2 -2
- package/dist/{OpenApiTsGenerator-C_JqxkWt.mjs.map → OpenApiTsGenerator-CoVA3Ykv.mjs.map} +1 -1
- package/dist/{OpenApiTsGenerator-gM70-7qw.cjs → OpenApiTsGenerator-vy-fOJgs.cjs} +2 -2
- package/dist/{OpenApiTsGenerator-gM70-7qw.cjs.map → OpenApiTsGenerator-vy-fOJgs.cjs.map} +1 -1
- package/dist/{S3StateStore-C1ZX1w5v.cjs → S3StateStore-DE0BNuXc.cjs} +4 -4
- package/dist/{S3StateStore-C1ZX1w5v.cjs.map → S3StateStore-DE0BNuXc.cjs.map} +1 -1
- package/dist/{S3StateStore-DYQSxiVw.mjs → S3StateStore-vmxZWMKh.mjs} +4 -4
- package/dist/{S3StateStore-DYQSxiVw.mjs.map → S3StateStore-vmxZWMKh.mjs.map} +1 -1
- package/dist/{SSMStateStore-DWQk17j8.mjs → SSMStateStore-DQyXnX2M.mjs} +2 -2
- package/dist/{SSMStateStore-DWQk17j8.mjs.map → SSMStateStore-DQyXnX2M.mjs.map} +1 -1
- package/dist/{SSMStateStore-tXnZSJxP.cjs → SSMStateStore-p4hBdTg3.cjs} +2 -2
- package/dist/{SSMStateStore-tXnZSJxP.cjs.map → SSMStateStore-p4hBdTg3.cjs.map} +1 -1
- package/dist/{SubscriberGenerator-NxcLNeDJ.mjs → SubscriberGenerator-B3jHf26s.mjs} +4 -4
- package/dist/{SubscriberGenerator-NxcLNeDJ.mjs.map → SubscriberGenerator-B3jHf26s.mjs.map} +1 -1
- package/dist/{SubscriberGenerator-DXh1Touk.cjs → SubscriberGenerator-JhwVlWBS.cjs} +4 -4
- package/dist/{SubscriberGenerator-DXh1Touk.cjs.map → SubscriberGenerator-JhwVlWBS.cjs.map} +1 -1
- package/dist/{add-D6GloVNz.cjs → add-DEdpKya-.cjs} +8 -8
- package/dist/{add-D6GloVNz.cjs.map → add-DEdpKya-.cjs.map} +1 -1
- package/dist/{add-nJBUo4fT.mjs → add-QBvDmVA-.mjs} +8 -8
- package/dist/{add-nJBUo4fT.mjs.map → add-QBvDmVA-.mjs.map} +1 -1
- package/dist/{apps-GDmO_v7v.mjs → apps-D0LULFmU.mjs} +15 -361
- package/dist/apps-D0LULFmU.mjs.map +1 -0
- package/dist/{apps-DPw1i9E7.cjs → apps-qJ5FPJGQ.cjs} +12 -389
- package/dist/apps-qJ5FPJGQ.cjs.map +1 -0
- package/dist/{aws-DKC2m3sT.cjs → aws-BXfiWNbi.cjs} +2 -2
- package/dist/{aws-DKC2m3sT.cjs.map → aws-BXfiWNbi.cjs.map} +1 -1
- package/dist/{aws-C5LAU_Ii.mjs → aws-BjvSTTcE.mjs} +2 -2
- package/dist/{aws-C5LAU_Ii.mjs.map → aws-BjvSTTcE.mjs.map} +1 -1
- package/dist/{awsStore-Bx5nCFnS.mjs → awsStore-BYYCmXiq.mjs} +2 -2
- package/dist/{awsStore-Bx5nCFnS.mjs.map → awsStore-BYYCmXiq.mjs.map} +1 -1
- package/dist/{awsStore-u3ehhMoY.cjs → awsStore-DKQUElJL.cjs} +2 -2
- package/dist/{awsStore-u3ehhMoY.cjs.map → awsStore-DKQUElJL.cjs.map} +1 -1
- package/dist/{bundler-DzN34D-8.cjs → bundler-BuBCXA0t.cjs} +6 -6
- package/dist/{bundler-DzN34D-8.cjs.map → bundler-BuBCXA0t.cjs.map} +1 -1
- package/dist/{bundler-BFGjH_mQ.mjs → bundler-DZKdVVKZ.mjs} +6 -6
- package/dist/{bundler-BFGjH_mQ.mjs.map → bundler-DZKdVVKZ.mjs.map} +1 -1
- package/dist/{cli-CVlkduxS.cjs → cli-BCGkzaR1.cjs} +5 -5
- package/dist/{cli-CVlkduxS.cjs.map → cli-BCGkzaR1.cjs.map} +1 -1
- package/dist/{cli-Ik7ar-Ux.mjs → cli-CgEbT00Q.mjs} +5 -5
- package/dist/{cli-Ik7ar-Ux.mjs.map → cli-CgEbT00Q.mjs.map} +1 -1
- package/dist/clientTelemetry-BAwj6MOf.d.cts +10 -0
- package/dist/clientTelemetry-BAwj6MOf.d.cts.map +1 -0
- package/dist/clientTelemetry-CvamPJj_.d.mts +10 -0
- package/dist/clientTelemetry-CvamPJj_.d.mts.map +1 -0
- package/dist/{compose-CE0Vi7zq.cjs → compose-AO8u4mBI.cjs} +51 -49
- package/dist/compose-AO8u4mBI.cjs.map +1 -0
- package/dist/{compose-BKLJMnDI.cjs → compose-C-yjexqX.cjs} +9 -37
- package/dist/compose-C-yjexqX.cjs.map +1 -0
- package/dist/{compose-pFnSi3Zf.mjs → compose-C23RpAaF.mjs} +15 -13
- package/dist/compose-C23RpAaF.mjs.map +1 -0
- package/dist/{compose-DH1ToGh2.mjs → compose-DtfoUChm.mjs} +10 -32
- package/dist/compose-DtfoUChm.mjs.map +1 -0
- package/dist/{config-CsCYzlVO.d.mts → config-BODxZemw.d.mts} +3 -3
- package/dist/{config-CsCYzlVO.d.mts.map → config-BODxZemw.d.mts.map} +1 -1
- package/dist/{config-D-gHQXhi.d.cts → config-C3U5HulX.d.cts} +3 -3
- package/dist/{config-D-gHQXhi.d.cts.map → config-C3U5HulX.d.cts.map} +1 -1
- package/dist/config.cjs +3 -3
- package/dist/config.d.cts +3 -3
- package/dist/config.d.mts +3 -3
- package/dist/config.mjs +3 -3
- package/dist/{credentialSchemas-BzJiK1nQ.mjs → credentialSchemas-D_85KW2k.mjs} +3 -3
- package/dist/{credentialSchemas-BzJiK1nQ.mjs.map → credentialSchemas-D_85KW2k.mjs.map} +1 -1
- package/dist/{credentialSchemas-OVXofU-r.cjs → credentialSchemas-DjK6xKMk.cjs} +3 -3
- package/dist/{credentialSchemas-OVXofU-r.cjs.map → credentialSchemas-DjK6xKMk.cjs.map} +1 -1
- package/dist/{databases-SFnPaOGM.mjs → databases-CV22HzrI.mjs} +2 -2
- package/dist/{databases-SFnPaOGM.mjs.map → databases-CV22HzrI.mjs.map} +1 -1
- package/dist/{databases-BOuB-zg4.cjs → databases-DwYYH2mX.cjs} +2 -2
- package/dist/{databases-BOuB-zg4.cjs.map → databases-DwYYH2mX.cjs.map} +1 -1
- package/dist/{dbTunnel-BnacLKDV.cjs → dbTunnel-Bve0zBqT.cjs} +7 -7
- package/dist/{dbTunnel-BnacLKDV.cjs.map → dbTunnel-Bve0zBqT.cjs.map} +1 -1
- package/dist/{dbTunnel-CqDaxQig.mjs → dbTunnel-CnubkLBa.mjs} +7 -7
- package/dist/{dbTunnel-CqDaxQig.mjs.map → dbTunnel-CnubkLBa.mjs.map} +1 -1
- package/dist/{define-6poNqm5O.mjs → define-BfrNaY82.mjs} +2 -2
- package/dist/{define-6poNqm5O.mjs.map → define-BfrNaY82.mjs.map} +1 -1
- package/dist/{define-crmMcXFS.cjs → define-zKgLY65H.cjs} +2 -2
- package/dist/{define-crmMcXFS.cjs.map → define-zKgLY65H.cjs.map} +1 -1
- package/dist/deploy/public.cjs +15 -15
- package/dist/deploy/public.d.cts +5 -4
- package/dist/deploy/public.d.cts.map +1 -1
- package/dist/deploy/public.d.mts +5 -4
- package/dist/deploy/public.d.mts.map +1 -1
- package/dist/deploy/public.mjs +15 -15
- package/dist/{deploy-l0Vc846k.cjs → deploy-C2MKxzm9.cjs} +20 -19
- package/dist/deploy-C2MKxzm9.cjs.map +1 -0
- package/dist/{deploy-CpAkrZ25.mjs → deploy-Qq41vtpm.mjs} +19 -18
- package/dist/deploy-Qq41vtpm.mjs.map +1 -0
- package/dist/{destroy-eeB_PrmN.mjs → destroy-Bg4IUf_Z.mjs} +11 -10
- package/dist/destroy-Bg4IUf_Z.mjs.map +1 -0
- package/dist/{destroy-DtAqmjGz.cjs → destroy-CCpnHI2v.cjs} +13 -12
- package/dist/destroy-CCpnHI2v.cjs.map +1 -0
- package/dist/{discover-B_PDDaVj.mjs → discover-Dfmn6HQ7.mjs} +2 -2
- package/dist/{discover-B_PDDaVj.mjs.map → discover-Dfmn6HQ7.mjs.map} +1 -1
- package/dist/{discover-39VKSE2i.cjs → discover-OXczlq08.cjs} +2 -2
- package/dist/{discover-39VKSE2i.cjs.map → discover-OXczlq08.cjs.map} +1 -1
- package/dist/{dns-B2vsk2Rc.mjs → dns-BAM8VH1v.mjs} +147 -179
- package/dist/dns-BAM8VH1v.mjs.map +1 -0
- package/dist/{dns-WneRa4VJ.cjs → dns-D_0z9Tm1.cjs} +145 -201
- package/dist/dns-D_0z9Tm1.cjs.map +1 -0
- package/dist/{docker-Dk6p33pD.cjs → docker-6EUbKrEl.cjs} +9 -9
- package/dist/{docker-Dk6p33pD.cjs.map → docker-6EUbKrEl.cjs.map} +1 -1
- package/dist/{docker-DyUpcwqy.mjs → docker-DQoE3Fr7.mjs} +9 -9
- package/dist/{docker-DyUpcwqy.mjs.map → docker-DQoE3Fr7.mjs.map} +1 -1
- package/dist/{dokploy-Byg0zr1O.cjs → dokploy-BD8NXy8y.cjs} +3 -3
- package/dist/{dokploy-Byg0zr1O.cjs.map → dokploy-BD8NXy8y.cjs.map} +1 -1
- package/dist/{dokploy-De5b47YI.mjs → dokploy-CU9iuc35.mjs} +3 -3
- package/dist/{dokploy-De5b47YI.mjs.map → dokploy-CU9iuc35.mjs.map} +1 -1
- package/dist/{eas-DAH6D89J.cjs → eas-BhTOdQrE.cjs} +4 -4
- package/dist/{eas-DAH6D89J.cjs.map → eas-BhTOdQrE.cjs.map} +1 -1
- package/dist/{eas-BnLaz86I.mjs → eas-iYyg7Xjy.mjs} +4 -4
- package/dist/{eas-BnLaz86I.mjs.map → eas-iYyg7Xjy.mjs.map} +1 -1
- package/dist/{encryption-IiDQJs6j.mjs → encryption-hgmnMZw0.mjs} +4 -4
- package/dist/{encryption-IiDQJs6j.mjs.map → encryption-hgmnMZw0.mjs.map} +1 -1
- package/dist/{encryption-D7u_SKqz.cjs → encryption-yROMpM67.cjs} +4 -4
- package/dist/{encryption-D7u_SKqz.cjs.map → encryption-yROMpM67.cjs.map} +1 -1
- package/dist/{engine-BhS-wyH0.mjs → engine-B4whsrrE.mjs} +12 -12
- package/dist/engine-B4whsrrE.mjs.map +1 -0
- package/dist/{engine-CaWo9tZO.cjs → engine-D0XYdIiE.cjs} +12 -12
- package/dist/engine-D0XYdIiE.cjs.map +1 -0
- package/dist/{errors-D8Gwp5kU.mjs → errors-C9uIyIDt.mjs} +7 -3
- package/dist/{errors-D8Gwp5kU.mjs.map → errors-C9uIyIDt.mjs.map} +1 -1
- package/dist/{errors-DMC4Umsb.cjs → errors-D1x8duqI.cjs} +7 -3
- package/dist/errors-D1x8duqI.cjs.map +1 -0
- package/dist/{github-BQCqBMZ9.mjs → github-CBkZF4PS.mjs} +11 -11
- package/dist/{github-BQCqBMZ9.mjs.map → github-CBkZF4PS.mjs.map} +1 -1
- package/dist/{github-Cz_LTqBn.cjs → github-D1-_OnGL.cjs} +11 -11
- package/dist/{github-Cz_LTqBn.cjs.map → github-D1-_OnGL.cjs.map} +1 -1
- package/dist/{googlePlay-DowNo3wp.mjs → googlePlay-Bwv8TVi8.mjs} +5 -5
- package/dist/{googlePlay-DowNo3wp.mjs.map → googlePlay-Bwv8TVi8.mjs.map} +1 -1
- package/dist/{googlePlay-CuqPxtno.cjs → googlePlay-s9dGfrrb.cjs} +5 -5
- package/dist/{googlePlay-CuqPxtno.cjs.map → googlePlay-s9dGfrrb.cjs.map} +1 -1
- package/dist/{iam-Cs2Ph5f2.mjs → iam-BzFyFf7T.mjs} +2 -2
- package/dist/{iam-Cs2Ph5f2.mjs.map → iam-BzFyFf7T.mjs.map} +1 -1
- package/dist/{iam-CGd_oEyz.cjs → iam-WIoKnLBp.cjs} +2 -2
- package/dist/{iam-CGd_oEyz.cjs.map → iam-WIoKnLBp.cjs.map} +1 -1
- package/dist/{index-QxGYzGEN.d.mts → index-BKgOlfK2.d.mts} +2 -2
- package/dist/{index-QxGYzGEN.d.mts.map → index-BKgOlfK2.d.mts.map} +1 -1
- package/dist/{index-tFzoro1V.d.cts → index-zPzigXh-.d.cts} +2 -2
- package/dist/{index-tFzoro1V.d.cts.map → index-zPzigXh-.d.cts.map} +1 -1
- package/dist/index.cjs +75 -73
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +73 -71
- package/dist/index.mjs.map +1 -1
- package/dist/{local-CWNFE8Sg.cjs → local-CFnHQgWC.cjs} +3 -3
- package/dist/{local-CWNFE8Sg.cjs.map → local-CFnHQgWC.cjs.map} +1 -1
- package/dist/{local-BQQHvZ4q.mjs → local-JOnTFJA5.mjs} +3 -3
- package/dist/{local-BQQHvZ4q.mjs.map → local-JOnTFJA5.mjs.map} +1 -1
- package/dist/{migrate-D_7oRThu.mjs → migrate-BtnpQocG.mjs} +6 -6
- package/dist/{migrate-D_7oRThu.mjs.map → migrate-BtnpQocG.mjs.map} +1 -1
- package/dist/{migrate-8QGCWIqm.cjs → migrate-CGXrmZyV.cjs} +8 -8
- package/dist/{migrate-8QGCWIqm.cjs.map → migrate-CGXrmZyV.cjs.map} +1 -1
- package/dist/{migrate-CNrPM5zg.cjs → migrate-CxWXW-Lw.cjs} +6 -6
- package/dist/{migrate-CNrPM5zg.cjs.map → migrate-CxWXW-Lw.cjs.map} +1 -1
- package/dist/{migrate-CqiOiRvz.mjs → migrate-fLIgSpPB.mjs} +8 -8
- package/dist/{migrate-CqiOiRvz.mjs.map → migrate-fLIgSpPB.mjs.map} +1 -1
- package/dist/{notes-dD3gRvZw.cjs → notes-ChYPaRLu.cjs} +4 -4
- package/dist/{notes-dD3gRvZw.cjs.map → notes-ChYPaRLu.cjs.map} +1 -1
- package/dist/{notes-D2KWnUSL.mjs → notes-LATU2vLI.mjs} +4 -4
- package/dist/{notes-D2KWnUSL.mjs.map → notes-LATU2vLI.mjs.map} +1 -1
- package/dist/openapi.cjs +3 -3
- package/dist/openapi.d.cts +3 -8
- package/dist/openapi.d.cts.map +1 -1
- package/dist/openapi.d.mts +3 -8
- package/dist/openapi.d.mts.map +1 -1
- package/dist/openapi.mjs +3 -3
- package/dist/{projectBucket-BcTodL8A.cjs → projectBucket-BIeh2HTj.cjs} +3 -3
- package/dist/{projectBucket-BcTodL8A.cjs.map → projectBucket-BIeh2HTj.cjs.map} +1 -1
- package/dist/{projectBucket-BDytiu7A.mjs → projectBucket-D_4zb_oh.mjs} +3 -3
- package/dist/{projectBucket-BDytiu7A.mjs.map → projectBucket-D_4zb_oh.mjs.map} +1 -1
- package/dist/{provider-CEOKk8NS.mjs → provider-BvjDbsTR.mjs} +3 -3
- package/dist/{provider-CEOKk8NS.mjs.map → provider-BvjDbsTR.mjs.map} +1 -1
- package/dist/{provider-BqpjG9QM.cjs → provider-DLhgo-mB.cjs} +3 -3
- package/dist/{provider-BqpjG9QM.cjs.map → provider-DLhgo-mB.cjs.map} +1 -1
- package/dist/{publish-Da9gxP5Q.cjs → publish-Dc-1GQp8.cjs} +3 -3
- package/dist/{publish-Da9gxP5Q.cjs.map → publish-Dc-1GQp8.cjs.map} +1 -1
- package/dist/{publish-Cr8wv7nO.mjs → publish-DhzRYhVZ.mjs} +3 -3
- package/dist/{publish-Cr8wv7nO.mjs.map → publish-DhzRYhVZ.mjs.map} +1 -1
- package/dist/{ready-D1gctv-5.mjs → ready-BcV28QoW.mjs} +6 -6
- package/dist/{ready-D1gctv-5.mjs.map → ready-BcV28QoW.mjs.map} +1 -1
- package/dist/{ready-Bgj2cf4j.cjs → ready-ByQvw4-W.cjs} +6 -6
- package/dist/{ready-Bgj2cf4j.cjs.map → ready-ByQvw4-W.cjs.map} +1 -1
- package/dist/reconcile/public.cjs +1 -1
- package/dist/reconcile/public.d.cts +1 -1
- package/dist/reconcile/public.d.mts +1 -1
- package/dist/reconcile/public.mjs +1 -1
- package/dist/{resolve-Dyki9ZJX.mjs → resolve-CJvM2bUx.mjs} +6 -6
- package/dist/{resolve-Dyki9ZJX.mjs.map → resolve-CJvM2bUx.mjs.map} +1 -1
- package/dist/{resolve-DRldmRYb.cjs → resolve-DyUXmA0z.cjs} +6 -6
- package/dist/{resolve-DRldmRYb.cjs.map → resolve-DyUXmA0z.cjs.map} +1 -1
- package/dist/{rollback-Do0i6x3b.mjs → rollback-BO1asWkd.mjs} +8 -8
- package/dist/{rollback-Do0i6x3b.mjs.map → rollback-BO1asWkd.mjs.map} +1 -1
- package/dist/{rollback-R_j7f9cY.cjs → rollback-Op8Tc5N-.cjs} +8 -8
- package/dist/{rollback-R_j7f9cY.cjs.map → rollback-Op8Tc5N-.cjs.map} +1 -1
- package/dist/{runtime-BpGIXfYr.d.mts → runtime-CaejlcZt.d.mts} +2 -2
- package/dist/{runtime-BpGIXfYr.d.mts.map → runtime-CaejlcZt.d.mts.map} +1 -1
- package/dist/{runtime-DLV0CNZ4.d.cts → runtime-D3jD4Dvn.d.cts} +2 -2
- package/dist/{runtime-DLV0CNZ4.d.cts.map → runtime-D3jD4Dvn.d.cts.map} +1 -1
- package/dist/{s3-CYEU7r1x.mjs → s3-BbtwHSod.mjs} +5 -5
- package/dist/{s3-CYEU7r1x.mjs.map → s3-BbtwHSod.mjs.map} +1 -1
- package/dist/{s3-D9aPMh9u.cjs → s3-CwacPd8J.cjs} +5 -5
- package/dist/{s3-D9aPMh9u.cjs.map → s3-CwacPd8J.cjs.map} +1 -1
- package/dist/sandbox/credentials-worker.cjs +2 -2
- package/dist/sandbox/credentials-worker.mjs +2 -2
- package/dist/sandbox/discover-worker.cjs +1 -1
- package/dist/sandbox/discover-worker.mjs +1 -1
- package/dist/sandbox/migrate-worker.cjs +2 -2
- package/dist/sandbox/migrate-worker.mjs +2 -2
- package/dist/{secretsManager-CJyxFcBH.mjs → secretsManager-CjTo6CRq.mjs} +2 -2
- package/dist/{secretsManager-CJyxFcBH.mjs.map → secretsManager-CjTo6CRq.mjs.map} +1 -1
- package/dist/{secretsManager-D8on44WI.cjs → secretsManager-CvmBGjdM.cjs} +2 -2
- package/dist/{secretsManager-D8on44WI.cjs.map → secretsManager-CvmBGjdM.cjs.map} +1 -1
- package/dist/{serverSetup-BmPwcMQN.cjs → serverSetup-BFdzPTIT.cjs} +7 -7
- package/dist/{serverSetup-BmPwcMQN.cjs.map → serverSetup-BFdzPTIT.cjs.map} +1 -1
- package/dist/{serverSetup-Bw5gc57O.mjs → serverSetup-CSxaZ7ha.mjs} +7 -7
- package/dist/{serverSetup-Bw5gc57O.mjs.map → serverSetup-CSxaZ7ha.mjs.map} +1 -1
- package/dist/{sniffer-XsTiFI3l.mjs → sniffer-CwxpsSez.mjs} +9 -9
- package/dist/{sniffer-XsTiFI3l.mjs.map → sniffer-CwxpsSez.mjs.map} +1 -1
- package/dist/{sniffer-BPLYWu70.cjs → sniffer-D3gH7aJT.cjs} +9 -9
- package/dist/{sniffer-BPLYWu70.cjs.map → sniffer-D3gH7aJT.cjs.map} +1 -1
- package/dist/{snsSubscriptions-CATtZwGv.cjs → snsSubscriptions-B8tGxND5.cjs} +10 -8
- package/dist/snsSubscriptions-B8tGxND5.cjs.map +1 -0
- package/dist/{snsSubscriptions-D9Rm_Eug.mjs → snsSubscriptions-n3sjbrRM.mjs} +7 -5
- package/dist/snsSubscriptions-n3sjbrRM.mjs.map +1 -0
- package/dist/{sst-C56i2cst.cjs → sst-Cjocp7gi.cjs} +8 -8
- package/dist/{sst-C56i2cst.cjs.map → sst-Cjocp7gi.cjs.map} +1 -1
- package/dist/{sst-BCvYZtVF.mjs → sst-DeF0BfDA.mjs} +8 -8
- package/dist/{sst-BCvYZtVF.mjs.map → sst-DeF0BfDA.mjs.map} +1 -1
- package/dist/{stack-TttsEL7X.mjs → stack-CyoRqyPt.mjs} +16 -609
- package/dist/stack-CyoRqyPt.mjs.map +1 -0
- package/dist/{stack-Dal2Oq2D.cjs → stack-Dr2FSxGm.cjs} +28 -687
- package/dist/stack-Dr2FSxGm.cjs.map +1 -0
- package/dist/{stage--ixwLSTc.mjs → stage-TAx0Gcq8.mjs} +8 -8
- package/dist/{stage--ixwLSTc.mjs.map → stage-TAx0Gcq8.mjs.map} +1 -1
- package/dist/{stage-BLsuXUP_.cjs → stage-aTBLKonw.cjs} +8 -8
- package/dist/{stage-BLsuXUP_.cjs.map → stage-aTBLKonw.cjs.map} +1 -1
- package/dist/{stages-8izznWib.cjs → stages-BeSQQQ4z.cjs} +3 -3
- package/dist/{stages-8izznWib.cjs.map → stages-BeSQQQ4z.cjs.map} +1 -1
- package/dist/{stages-QPWgbm9P.mjs → stages-DjFKQv08.mjs} +3 -3
- package/dist/{stages-QPWgbm9P.mjs.map → stages-DjFKQv08.mjs.map} +1 -1
- package/dist/target/public.cjs +3 -3
- package/dist/target/public.d.cts +2 -2
- package/dist/target/public.d.mts +2 -2
- package/dist/target/public.mjs +3 -3
- package/dist/{terminal-gOLDmpW-.mjs → terminal-Bk4PjXWY.mjs} +4 -4
- package/dist/{terminal-gOLDmpW-.mjs.map → terminal-Bk4PjXWY.mjs.map} +1 -1
- package/dist/{terminal-Dy4zzTCA.cjs → terminal-DPf137EJ.cjs} +4 -4
- package/dist/{terminal-Dy4zzTCA.cjs.map → terminal-DPf137EJ.cjs.map} +1 -1
- package/dist/{types-CV4AzwC_.d.cts → types-CLxsw-QY.d.cts} +3 -16
- package/dist/types-CLxsw-QY.d.cts.map +1 -0
- package/dist/{types-Bj1A1wkS.d.mts → types-wLlwkSib.d.mts} +3 -16
- package/dist/types-wLlwkSib.d.mts.map +1 -0
- package/dist/vitest.cjs +1 -1
- package/dist/vitest.mjs +1 -1
- 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-BBa1Ck5j.mjs → workspace-DJjhfAGf.mjs} +3 -3
- package/dist/{workspace-BBa1Ck5j.mjs.map → workspace-DJjhfAGf.mjs.map} +1 -1
- package/dist/{workspace-DirP2-ed.cjs → workspace-wTLnc1Ef.cjs} +3 -3
- package/dist/{workspace-DirP2-ed.cjs.map → workspace-wTLnc1Ef.cjs.map} +1 -1
- package/package.json +16 -15
- package/dist/GoDaddyProvider-B9AMLUHF.cjs +0 -412
- package/dist/GoDaddyProvider-B9AMLUHF.cjs.map +0 -1
- package/dist/GoDaddyProvider-DLVKx7er.mjs +0 -412
- package/dist/GoDaddyProvider-DLVKx7er.mjs.map +0 -1
- package/dist/HostingerProvider-DBPWhL_s.cjs +0 -257
- package/dist/HostingerProvider-DBPWhL_s.cjs.map +0 -1
- package/dist/HostingerProvider-kLQsBCjz.mjs +0 -257
- package/dist/HostingerProvider-kLQsBCjz.mjs.map +0 -1
- package/dist/Route53Provider-Di_SD9CF.mjs +0 -209
- package/dist/Route53Provider-Di_SD9CF.mjs.map +0 -1
- package/dist/Route53Provider-emLuQHVw.cjs +0 -209
- package/dist/Route53Provider-emLuQHVw.cjs.map +0 -1
- package/dist/apps-DPw1i9E7.cjs.map +0 -1
- package/dist/apps-GDmO_v7v.mjs.map +0 -1
- package/dist/compose-BKLJMnDI.cjs.map +0 -1
- package/dist/compose-CE0Vi7zq.cjs.map +0 -1
- package/dist/compose-DH1ToGh2.mjs.map +0 -1
- package/dist/compose-pFnSi3Zf.mjs.map +0 -1
- package/dist/deploy-CpAkrZ25.mjs.map +0 -1
- package/dist/deploy-l0Vc846k.cjs.map +0 -1
- package/dist/destroy-DtAqmjGz.cjs.map +0 -1
- package/dist/destroy-eeB_PrmN.mjs.map +0 -1
- package/dist/dns-B2vsk2Rc.mjs.map +0 -1
- package/dist/dns-WneRa4VJ.cjs.map +0 -1
- package/dist/engine-BhS-wyH0.mjs.map +0 -1
- package/dist/engine-CaWo9tZO.cjs.map +0 -1
- package/dist/errors-DMC4Umsb.cjs.map +0 -1
- package/dist/snsSubscriptions-CATtZwGv.cjs.map +0 -1
- package/dist/snsSubscriptions-D9Rm_Eug.mjs.map +0 -1
- package/dist/stack-Dal2Oq2D.cjs.map +0 -1
- package/dist/stack-TttsEL7X.mjs.map +0 -1
- package/dist/types-Bj1A1wkS.d.mts.map +0 -1
- package/dist/types-CV4AzwC_.d.cts.map +0 -1
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-BhDjJH2R.mjs";
|
|
2
|
-
import { t as GkmError } from "./errors-
|
|
3
|
-
import {
|
|
4
|
-
import { Pt as checkStageBackups, Rt as isReservedStageKey, _ as PUBLIC_ENV_PREFIXES, a as allConstructGlobs, dt as fileServerLabel, j as TEST_STAGE, ot as appKey, z as telemetryEnv } from "./workspace-
|
|
5
|
-
import {
|
|
6
|
-
import { c as INBOX_RELAY_TOKEN_KEY, d as inboxWebhookUrl, i as readFakes, l as inboxRelayToken, o as objectsRoute, r as readCredentialFakes, u as inboxRelayWorker } from "./SubscriberGenerator-
|
|
7
|
-
import { u as telemetryArgs } from "./EndpointGenerator-
|
|
8
|
-
import { i as discover, w as workerEdges, x as eventsEdgeBucket } from "./discover-
|
|
2
|
+
import { t as GkmError } from "./errors-C9uIyIDt.mjs";
|
|
3
|
+
import { C as providerOf, F as externalsManifestName, S as eventsBackendFor, _t as gkmHome, x as cacheBackendFor } from "./dns-BAM8VH1v.mjs";
|
|
4
|
+
import { Pt as checkStageBackups, Rt as isReservedStageKey, _ as PUBLIC_ENV_PREFIXES, a as allConstructGlobs, dt as fileServerLabel, j as TEST_STAGE, ot as appKey, z as telemetryEnv } from "./workspace-DJjhfAGf.mjs";
|
|
5
|
+
import { $ as hostFor$1, B as NOTIFICATION_RULE_PREFIX, D as PgBossNeedsDatabase, J as emulatorQueueUrl, K as EMULATOR_REGION, N as scopeTelemetryEnv, O as TELEMETRY_CONTAINER, Q as caddyfileRoot, St as otlpHeaders, U as objectsWebhookToken, V as minioNotificationRule, W as watchedBuckets, X as CADDY_SITES_IN_CONTAINER, Y as emulatorTopicArn, b as REDIS_PASSWORD_KEY, ct as portsOf, dt as serviceAddresses, et as hostsFor, f as savePortState, h as postgresRoleSlug, ht as LOGS_PASSWORD_KEY, j as appTelemetry, k as planFor, l as loadPortState, lt as postgresImage, m as loadLocalCredentials, mt as LOGS_ORG, n as composeFor, nt as toCaddyfile, pt as LOGS_EMAIL_KEY, q as emulatorEndpoint, r as toYaml, st as portKeys, t as CLUSTER_DATABASE, tt as sitesFor, ut as primaryPortKey, v as saveLocalCredentials, z as HOST_GATEWAY } from "./compose-DtfoUChm.mjs";
|
|
6
|
+
import { c as INBOX_RELAY_TOKEN_KEY, d as inboxWebhookUrl, i as readFakes, l as inboxRelayToken, o as objectsRoute, r as readCredentialFakes, u as inboxRelayWorker } from "./SubscriberGenerator-B3jHf26s.mjs";
|
|
7
|
+
import { u as telemetryArgs } from "./EndpointGenerator-CBKH87_b.mjs";
|
|
8
|
+
import { i as discover, w as workerEdges, x as eventsEdgeBucket } from "./discover-Dfmn6HQ7.mjs";
|
|
9
9
|
import { createRequire } from "node:module";
|
|
10
10
|
import { dirname, isAbsolute, join, parse, posix, relative, sep } from "node:path";
|
|
11
11
|
import { existsSync, readFileSync } from "node:fs";
|
|
12
|
-
import { chmod, mkdir, readFile, readdir,
|
|
13
|
-
import {
|
|
12
|
+
import { chmod, mkdir, readFile, readdir, rm, writeFile } from "node:fs/promises";
|
|
13
|
+
import { networkInterfaces } from "node:os";
|
|
14
14
|
import { execFile, spawn } from "node:child_process";
|
|
15
15
|
import { createServer } from "node:net";
|
|
16
|
-
import { createHash,
|
|
16
|
+
import { createHash, randomBytes } from "node:crypto";
|
|
17
|
+
import { ensureLocalAuthority, ensureLocalCertificate, localAuthorityPaths, localCertificateNames } from "@geekmidas/edge/certificates/local";
|
|
17
18
|
import { DEFAULT_POSTGRES_VERSION, EDGE_TOKEN_KEY, PUBLIC_PREFIX, TELEMETRY_KEYS, cacheTable, cookieDomain, dependenciesOf, dependentsOf, drawSecret, environmentCase, externalApiUrl, imageOrigins, imageOriginsFor, isPublicDeclaration, kebabCase, mobileOrigins, providedKeyFor, provisionOrder, publicEnvFor, publicValues, reachesServerHalf, schemeBase, senderAddress, wildcardDomainOf } from "@geekmidas/manifest";
|
|
18
19
|
import { fileURLToPath } from "node:url";
|
|
19
20
|
import { formatKeyring } from "@geekmidas/constructs/encryption";
|
|
@@ -23,7 +24,6 @@ import * as sqsUrl from "@geekmidas/events/sqs/url";
|
|
|
23
24
|
import * as s3Url from "@geekmidas/storage/s3-url";
|
|
24
25
|
import { cacheTableStatements } from "@geekmidas/cache/postgres";
|
|
25
26
|
import { promisify } from "node:util";
|
|
26
|
-
import forge from "node-forge";
|
|
27
27
|
import { CreateBucketCommand, DeleteBucketLifecycleCommand, GetBucketLifecycleConfigurationCommand, GetBucketNotificationConfigurationCommand, GetBucketPolicyCommand, HeadBucketCommand, ListBucketsCommand, PutBucketLifecycleConfigurationCommand, PutBucketNotificationConfigurationCommand, PutBucketPolicyCommand, S3Client } from "@aws-sdk/client-s3";
|
|
28
28
|
import { CreateTopicCommand, GetTopicAttributesCommand, SNSClient } from "@aws-sdk/client-sns";
|
|
29
29
|
import { CreateQueueCommand, GetQueueUrlCommand, SQSClient } from "@aws-sdk/client-sqs";
|
|
@@ -2854,352 +2854,6 @@ function isStackKey(key) {
|
|
|
2854
2854
|
return isReservedStageKey(key) || key.startsWith("GKM_") || STACK_KEYS.has(key) || ORIGIN_SECRET.test(key);
|
|
2855
2855
|
}
|
|
2856
2856
|
//#endregion
|
|
2857
|
-
//#region src/trust/authority.ts
|
|
2858
|
-
/**
|
|
2859
|
-
* gkm's local certificate authority: one per machine, and every local edge's
|
|
2860
|
-
* certificate is issued from it.
|
|
2861
|
-
*
|
|
2862
|
-
* `gkm dev`'s Caddy, a local `gkm compose` stack's Caddy — and anything else
|
|
2863
|
-
* that serves the local stage's `*.localhost` names — serves a certificate
|
|
2864
|
-
* this module issued, the way a deployed stage's edge serves the files
|
|
2865
|
-
* `deploy.compose.tls` names. So there is one root to trust (`gkm trust`), it
|
|
2866
|
-
* exists before any container starts, and a container that calls the stage's
|
|
2867
|
-
* public hosts can be handed it (`NODE_EXTRA_CA_CERTS`) without first copying
|
|
2868
|
-
* it out of a proxy.
|
|
2869
|
-
*
|
|
2870
|
-
* The root lives in the CLI's home (`GKM_HOME`, else `~/.gkm`), outside every
|
|
2871
|
-
* project. Its key never leaves that directory: only certificates it signed —
|
|
2872
|
-
* and their own keys — are written to a workspace or handed to a container.
|
|
2873
|
-
*/
|
|
2874
|
-
/** How long the root is good for: ten years, so it is trusted once. */
|
|
2875
|
-
const AUTHORITY_DAYS = 3650;
|
|
2876
|
-
/** An issued certificate this close to its end is issued again. */
|
|
2877
|
-
const RENEW_WITHIN_DAYS = 30;
|
|
2878
|
-
const DAY = 864e5;
|
|
2879
|
-
/** The authority's files, under the CLI's home. */
|
|
2880
|
-
function localAuthorityPaths(home = gkmHome()) {
|
|
2881
|
-
const dir = join(home, "ca");
|
|
2882
|
-
return {
|
|
2883
|
-
dir,
|
|
2884
|
-
certFile: join(dir, "root.pem"),
|
|
2885
|
-
keyFile: join(dir, "root-key.pem")
|
|
2886
|
-
};
|
|
2887
|
-
}
|
|
2888
|
-
/** The authority's directory is there, and its root or key is not readable. */
|
|
2889
|
-
var LocalAuthorityDamaged = class extends GkmError {
|
|
2890
|
-
dir;
|
|
2891
|
-
reason;
|
|
2892
|
-
constructor(dir, reason) {
|
|
2893
|
-
super(`gkm's local certificate authority in ${dir} cannot be used: ${reason}. Delete the directory and run "gkm trust" to make a new one — a browser that trusted the old root has to trust the new one.`);
|
|
2894
|
-
this.dir = dir;
|
|
2895
|
-
this.reason = reason;
|
|
2896
|
-
this.name = "LocalAuthorityDamaged";
|
|
2897
|
-
}
|
|
2898
|
-
};
|
|
2899
|
-
/** A certificate asked for with no names to put on it. */
|
|
2900
|
-
var LocalCertificateWithoutNames = class extends GkmError {
|
|
2901
|
-
constructor() {
|
|
2902
|
-
super("A local certificate needs at least one host name. Pass the hosts the edge serves — localCertificateNames(project, hosts) lists them.");
|
|
2903
|
-
this.name = "LocalCertificateWithoutNames";
|
|
2904
|
-
}
|
|
2905
|
-
};
|
|
2906
|
-
/**
|
|
2907
|
-
* Load the authority, creating it the first time.
|
|
2908
|
-
*
|
|
2909
|
-
* Created whole or not at all: generated into a directory of its own and
|
|
2910
|
-
* renamed into place, so two commands starting at once — `gkm dev` for two
|
|
2911
|
-
* apps — end with one root between them, never one's certificate and the
|
|
2912
|
-
* other's key.
|
|
2913
|
-
*
|
|
2914
|
-
* @throws {LocalAuthorityDamaged} when its directory holds no usable root.
|
|
2915
|
-
*/
|
|
2916
|
-
async function ensureLocalAuthority(paths = localAuthorityPaths()) {
|
|
2917
|
-
if (!existsSync(paths.dir)) await createAuthority(paths);
|
|
2918
|
-
return readLocalAuthority(paths);
|
|
2919
|
-
}
|
|
2920
|
-
/**
|
|
2921
|
-
* Load an authority that exists.
|
|
2922
|
-
*
|
|
2923
|
-
* @throws {LocalAuthorityDamaged} when its root or key is missing or unreadable.
|
|
2924
|
-
*/
|
|
2925
|
-
async function readLocalAuthority(paths = localAuthorityPaths()) {
|
|
2926
|
-
let cert;
|
|
2927
|
-
let key;
|
|
2928
|
-
try {
|
|
2929
|
-
[cert, key] = await Promise.all([readFile(paths.certFile, "utf-8"), readFile(paths.keyFile, "utf-8")]);
|
|
2930
|
-
} catch {
|
|
2931
|
-
throw new LocalAuthorityDamaged(paths.dir, "its root certificate or key is missing");
|
|
2932
|
-
}
|
|
2933
|
-
try {
|
|
2934
|
-
const root = forge.pki.certificateFromPem(cert);
|
|
2935
|
-
const signer = forge.pki.privateKeyFromPem(key);
|
|
2936
|
-
if (!root.publicKey.n.equals(signer.n)) throw new LocalAuthorityDamaged(paths.dir, "its key is not the root certificate’s");
|
|
2937
|
-
} catch (error) {
|
|
2938
|
-
if (error instanceof LocalAuthorityDamaged) throw error;
|
|
2939
|
-
throw new LocalAuthorityDamaged(paths.dir, "its files are not PEM");
|
|
2940
|
-
}
|
|
2941
|
-
return {
|
|
2942
|
-
certFile: paths.certFile,
|
|
2943
|
-
cert,
|
|
2944
|
-
key
|
|
2945
|
-
};
|
|
2946
|
-
}
|
|
2947
|
-
async function createAuthority(paths) {
|
|
2948
|
-
const { cert, key } = selfSigned();
|
|
2949
|
-
const staging = `${paths.dir}.${process.pid}.${randomBytes(4).toString("hex")}`;
|
|
2950
|
-
await mkdir(staging, {
|
|
2951
|
-
recursive: true,
|
|
2952
|
-
mode: 448
|
|
2953
|
-
});
|
|
2954
|
-
try {
|
|
2955
|
-
await writeFile(join(staging, "root.pem"), cert, { mode: 420 });
|
|
2956
|
-
await writeFile(join(staging, "root-key.pem"), key, { mode: 384 });
|
|
2957
|
-
await mkdir(dirname(paths.dir), { recursive: true });
|
|
2958
|
-
await rename(staging, paths.dir).catch((error) => {
|
|
2959
|
-
if (error.code !== "EEXIST" && error.code !== "ENOTEMPTY") throw error;
|
|
2960
|
-
});
|
|
2961
|
-
} finally {
|
|
2962
|
-
await rm(staging, {
|
|
2963
|
-
recursive: true,
|
|
2964
|
-
force: true
|
|
2965
|
-
});
|
|
2966
|
-
}
|
|
2967
|
-
}
|
|
2968
|
-
/** A new root: who made it, on which machine, so a keychain says whose it is. */
|
|
2969
|
-
function selfSigned() {
|
|
2970
|
-
const { privateKey, publicKey } = keyPair();
|
|
2971
|
-
const cert = forge.pki.createCertificate();
|
|
2972
|
-
cert.publicKey = publicKey;
|
|
2973
|
-
cert.serialNumber = serialNumber();
|
|
2974
|
-
const now = Date.now();
|
|
2975
|
-
cert.validity.notBefore = /* @__PURE__ */ new Date(now - DAY);
|
|
2976
|
-
cert.validity.notAfter = new Date(now + AUTHORITY_DAYS * DAY);
|
|
2977
|
-
const subject = utf8([
|
|
2978
|
-
{
|
|
2979
|
-
name: "organizationName",
|
|
2980
|
-
value: "gkm local CA"
|
|
2981
|
-
},
|
|
2982
|
-
{
|
|
2983
|
-
name: "organizationalUnitName",
|
|
2984
|
-
value: owner()
|
|
2985
|
-
},
|
|
2986
|
-
{
|
|
2987
|
-
name: "commonName",
|
|
2988
|
-
value: `gkm local CA ${owner()}`
|
|
2989
|
-
}
|
|
2990
|
-
]);
|
|
2991
|
-
cert.setSubject(subject);
|
|
2992
|
-
cert.setIssuer(subject);
|
|
2993
|
-
cert.setExtensions([
|
|
2994
|
-
{
|
|
2995
|
-
name: "basicConstraints",
|
|
2996
|
-
cA: true,
|
|
2997
|
-
pathLenConstraint: 0,
|
|
2998
|
-
critical: true
|
|
2999
|
-
},
|
|
3000
|
-
{
|
|
3001
|
-
name: "keyUsage",
|
|
3002
|
-
keyCertSign: true,
|
|
3003
|
-
cRLSign: true,
|
|
3004
|
-
critical: true
|
|
3005
|
-
},
|
|
3006
|
-
{ name: "subjectKeyIdentifier" }
|
|
3007
|
-
]);
|
|
3008
|
-
cert.sign(privateKey, forge.md.sha256.create());
|
|
3009
|
-
return {
|
|
3010
|
-
cert: forge.pki.certificateToPem(cert),
|
|
3011
|
-
key: forge.pki.privateKeyToPem(privateKey)
|
|
3012
|
-
};
|
|
3013
|
-
}
|
|
3014
|
-
/**
|
|
3015
|
-
* The names a project's local certificate carries: its bare host and every
|
|
3016
|
-
* label under it — `shop.localhost`, `*.shop.localhost` — and any host the
|
|
3017
|
-
* edge serves that those do not cover, a stage's own wildcard among them.
|
|
3018
|
-
* Without a project, the hosts alone: `*.localhost` is nobody's to claim.
|
|
3019
|
-
*/
|
|
3020
|
-
function localCertificateNames(project, hosts) {
|
|
3021
|
-
const names = [...project ? [`${project}.localhost`, `*.${project}.localhost`] : []];
|
|
3022
|
-
for (const host of hosts) {
|
|
3023
|
-
const name = host.toLowerCase();
|
|
3024
|
-
if (!names.some((covering) => covers(covering, name))) names.push(name);
|
|
3025
|
-
}
|
|
3026
|
-
return names;
|
|
3027
|
-
}
|
|
3028
|
-
/** Whether a certificate name answers for a host, by the one-label wildcard rule. */
|
|
3029
|
-
function covers(name, host) {
|
|
3030
|
-
if (name === host) return true;
|
|
3031
|
-
if (!name.startsWith("*.") || host.startsWith("*.")) return false;
|
|
3032
|
-
const suffix = name.slice(1);
|
|
3033
|
-
return host.endsWith(suffix) && !host.slice(0, -suffix.length).includes(".");
|
|
3034
|
-
}
|
|
3035
|
-
/**
|
|
3036
|
-
* A certificate for `names`, signed by the authority. Each call makes a new
|
|
3037
|
-
* key; {@link ensureLocalCertificate} is what keeps one across runs.
|
|
3038
|
-
*
|
|
3039
|
-
* @throws {LocalCertificateWithoutNames} for an empty list.
|
|
3040
|
-
*/
|
|
3041
|
-
function issueLocalCertificate(authority, names, options = {}) {
|
|
3042
|
-
if (names.length === 0) throw new LocalCertificateWithoutNames();
|
|
3043
|
-
const root = forge.pki.certificateFromPem(authority.cert);
|
|
3044
|
-
const signer = forge.pki.privateKeyFromPem(authority.key);
|
|
3045
|
-
const { privateKey, publicKey } = keyPair();
|
|
3046
|
-
const now = (options.now ?? /* @__PURE__ */ new Date()).getTime();
|
|
3047
|
-
const cert = forge.pki.createCertificate();
|
|
3048
|
-
cert.publicKey = publicKey;
|
|
3049
|
-
cert.serialNumber = serialNumber();
|
|
3050
|
-
cert.validity.notBefore = /* @__PURE__ */ new Date(now - 36e5);
|
|
3051
|
-
cert.validity.notAfter = new Date(now + (options.days ?? 365) * DAY);
|
|
3052
|
-
cert.setSubject(utf8([{
|
|
3053
|
-
name: "organizationName",
|
|
3054
|
-
value: "gkm local certificate"
|
|
3055
|
-
}, {
|
|
3056
|
-
name: "commonName",
|
|
3057
|
-
value: names[0]
|
|
3058
|
-
}]));
|
|
3059
|
-
cert.setIssuer(root.subject.attributes);
|
|
3060
|
-
cert.setExtensions([
|
|
3061
|
-
{
|
|
3062
|
-
name: "basicConstraints",
|
|
3063
|
-
cA: false,
|
|
3064
|
-
critical: true
|
|
3065
|
-
},
|
|
3066
|
-
{
|
|
3067
|
-
name: "keyUsage",
|
|
3068
|
-
digitalSignature: true,
|
|
3069
|
-
keyEncipherment: true,
|
|
3070
|
-
critical: true
|
|
3071
|
-
},
|
|
3072
|
-
{
|
|
3073
|
-
name: "extKeyUsage",
|
|
3074
|
-
serverAuth: true
|
|
3075
|
-
},
|
|
3076
|
-
{
|
|
3077
|
-
name: "subjectAltName",
|
|
3078
|
-
altNames: names.map((value) => ({
|
|
3079
|
-
type: 2,
|
|
3080
|
-
value
|
|
3081
|
-
}))
|
|
3082
|
-
},
|
|
3083
|
-
{ name: "subjectKeyIdentifier" },
|
|
3084
|
-
{
|
|
3085
|
-
name: "authorityKeyIdentifier",
|
|
3086
|
-
keyIdentifier: root.generateSubjectKeyIdentifier().getBytes()
|
|
3087
|
-
}
|
|
3088
|
-
]);
|
|
3089
|
-
cert.sign(signer, forge.md.sha256.create());
|
|
3090
|
-
return {
|
|
3091
|
-
cert: forge.pki.certificateToPem(cert),
|
|
3092
|
-
key: forge.pki.privateKeyToPem(privateKey)
|
|
3093
|
-
};
|
|
3094
|
-
}
|
|
3095
|
-
/**
|
|
3096
|
-
* The certificate for `names` kept in `file` — certificate then key, one PEM
|
|
3097
|
-
* file, which is what a proxy given the same path for both reads — issued
|
|
3098
|
-
* again only when the one there is not the authority's, does not cover every
|
|
3099
|
-
* name, or is near its end.
|
|
3100
|
-
*
|
|
3101
|
-
* One file written by rename, so two commands issuing at once leave a pair
|
|
3102
|
-
* that matches, never one's certificate beside the other's key.
|
|
3103
|
-
*
|
|
3104
|
-
* @throws {LocalCertificateWithoutNames} for an empty list.
|
|
3105
|
-
*/
|
|
3106
|
-
async function ensureLocalCertificate(authority, names, file, options = {}) {
|
|
3107
|
-
const now = options.now ?? /* @__PURE__ */ new Date();
|
|
3108
|
-
const existing = await readFile(file, "utf-8").catch(() => void 0);
|
|
3109
|
-
const kept = existing ? splitPem(existing) : void 0;
|
|
3110
|
-
if (kept && stillGood(authority, kept, names, now)) return {
|
|
3111
|
-
...kept,
|
|
3112
|
-
issued: false
|
|
3113
|
-
};
|
|
3114
|
-
const issued = issueLocalCertificate(authority, names, { now });
|
|
3115
|
-
await mkdir(dirname(file), {
|
|
3116
|
-
recursive: true,
|
|
3117
|
-
mode: 448
|
|
3118
|
-
});
|
|
3119
|
-
const staging = `${file}.${process.pid}.${randomBytes(4).toString("hex")}`;
|
|
3120
|
-
await writeFile(staging, `${issued.cert}${issued.key}`, { mode: 384 });
|
|
3121
|
-
await rename(staging, file);
|
|
3122
|
-
return {
|
|
3123
|
-
...issued,
|
|
3124
|
-
issued: true
|
|
3125
|
-
};
|
|
3126
|
-
}
|
|
3127
|
-
/** A combined PEM file's certificate and key. */
|
|
3128
|
-
function splitPem(pem) {
|
|
3129
|
-
const cert = pem.match(/-----BEGIN CERTIFICATE-----[\s\S]+?-----END CERTIFICATE-----\r?\n?/)?.[0];
|
|
3130
|
-
const key = pem.match(/-----BEGIN (?:RSA )?PRIVATE KEY-----[\s\S]+?-----END (?:RSA )?PRIVATE KEY-----\r?\n?/)?.[0];
|
|
3131
|
-
return cert && key ? {
|
|
3132
|
-
cert,
|
|
3133
|
-
key
|
|
3134
|
-
} : void 0;
|
|
3135
|
-
}
|
|
3136
|
-
/** Whether a kept certificate still serves: the authority's, every name, in date. */
|
|
3137
|
-
function stillGood(authority, kept, names, now) {
|
|
3138
|
-
try {
|
|
3139
|
-
const root = forge.pki.certificateFromPem(authority.cert);
|
|
3140
|
-
const cert = forge.pki.certificateFromPem(kept.cert);
|
|
3141
|
-
if (!root.verify(cert)) return false;
|
|
3142
|
-
if (cert.validity.notAfter.getTime() - now.getTime() < RENEW_WITHIN_DAYS * DAY) return false;
|
|
3143
|
-
const certKey = createPublicKey(kept.cert).export({
|
|
3144
|
-
type: "spki",
|
|
3145
|
-
format: "der"
|
|
3146
|
-
});
|
|
3147
|
-
const ownKey = createPublicKey(createPrivateKey(kept.key)).export({
|
|
3148
|
-
type: "spki",
|
|
3149
|
-
format: "der"
|
|
3150
|
-
});
|
|
3151
|
-
if (!certKey.equals(ownKey)) return false;
|
|
3152
|
-
const san = cert.getExtension("subjectAltName");
|
|
3153
|
-
const dns = new Set((san?.altNames ?? []).filter((n) => n.type === 2).map((n) => n.value));
|
|
3154
|
-
return names.every((name) => dns.has(name));
|
|
3155
|
-
} catch {
|
|
3156
|
-
return false;
|
|
3157
|
-
}
|
|
3158
|
-
}
|
|
3159
|
-
/** An RSA key pair, made natively — forge's own generation is slow. */
|
|
3160
|
-
function keyPair() {
|
|
3161
|
-
const { privateKey: pem } = generateKeyPairSync("rsa", {
|
|
3162
|
-
modulusLength: 2048,
|
|
3163
|
-
publicKeyEncoding: {
|
|
3164
|
-
type: "spki",
|
|
3165
|
-
format: "pem"
|
|
3166
|
-
},
|
|
3167
|
-
privateKeyEncoding: {
|
|
3168
|
-
type: "pkcs8",
|
|
3169
|
-
format: "pem"
|
|
3170
|
-
}
|
|
3171
|
-
});
|
|
3172
|
-
const privateKey = forge.pki.privateKeyFromPem(pem);
|
|
3173
|
-
return {
|
|
3174
|
-
privateKey,
|
|
3175
|
-
publicKey: forge.pki.setRsaPublicKey(privateKey.n, privateKey.e)
|
|
3176
|
-
};
|
|
3177
|
-
}
|
|
3178
|
-
/**
|
|
3179
|
-
* Attributes as UTF8String. forge writes PrintableString otherwise, which
|
|
3180
|
-
* has no `@` or `*` — and a TLS stack rejects the certificate outright.
|
|
3181
|
-
*/
|
|
3182
|
-
function utf8(attributes) {
|
|
3183
|
-
return attributes.map((attribute) => ({
|
|
3184
|
-
...attribute,
|
|
3185
|
-
valueTagClass: forge.asn1.Type.UTF8
|
|
3186
|
-
}));
|
|
3187
|
-
}
|
|
3188
|
-
/** A random, positive serial: sixteen bytes, its high bit clear. */
|
|
3189
|
-
function serialNumber() {
|
|
3190
|
-
const bytes = randomBytes(16);
|
|
3191
|
-
bytes[0] = bytes[0] & 127;
|
|
3192
|
-
return bytes.toString("hex");
|
|
3193
|
-
}
|
|
3194
|
-
/** `user@host`, as far as the machine will say. */
|
|
3195
|
-
function owner() {
|
|
3196
|
-
let user = "gkm";
|
|
3197
|
-
try {
|
|
3198
|
-
user = userInfo().username;
|
|
3199
|
-
} catch {}
|
|
3200
|
-
return `${user}@${hostname()}`;
|
|
3201
|
-
}
|
|
3202
|
-
//#endregion
|
|
3203
2857
|
//#region src/reconcile/clients.ts
|
|
3204
2858
|
/**
|
|
3205
2859
|
* The real Postgres and MinIO clients the applier runs against.
|
|
@@ -4078,7 +3732,7 @@ const CHECKOUT_MOUNTS = ["caddy"];
|
|
|
4078
3732
|
const caddySitesPath = (stage) => `.gkm/caddy-sites/${stage}.caddy`;
|
|
4079
3733
|
/**
|
|
4080
3734
|
* Where one stage's certificate is kept: certificate and key in one PEM,
|
|
4081
|
-
* issued from gkm's local authority (
|
|
3735
|
+
* issued from gkm's local authority (`@geekmidas/edge/certificates/local`), beside the
|
|
4082
3736
|
* stage's routes — so the edge reads it through the mount it already has, and
|
|
4083
3737
|
* a stage removed takes its certificate with it.
|
|
4084
3738
|
*/
|
|
@@ -4127,7 +3781,7 @@ async function reconcile(options) {
|
|
|
4127
3781
|
});
|
|
4128
3782
|
const sites = sitesFor(plan, project, options.addresses, options.processorAddresses);
|
|
4129
3783
|
const edged = plan.containers.includes("caddy");
|
|
4130
|
-
const authorityPaths = options.authority ?? localAuthorityPaths();
|
|
3784
|
+
const authorityPaths = options.authority ?? localAuthorityPaths(gkmHome());
|
|
4131
3785
|
const edgePort = ports[primaryPortKey("caddy")];
|
|
4132
3786
|
const caddyfile = toCaddyfile(sites, {
|
|
4133
3787
|
certificate: `${CADDY_SITES_IN_CONTAINER}/${stage}.pem`,
|
|
@@ -4991,6 +4645,6 @@ function healthcheck(port, path) {
|
|
|
4991
4645
|
};
|
|
4992
4646
|
}
|
|
4993
4647
|
//#endregion
|
|
4994
|
-
export {
|
|
4648
|
+
export { runsServer as $, imageLayout as A, backupsPrefix as At, generateEntryDockerfile as B, PROCESSOR_ORIGIN_SECRET_ENV as C, isDatabase as Ct, appImageOptions as D, backupDatabases as Dt, processorOriginHost as E, signedOrigins as Et, WORKER_PORT as F, generateWorkerDockerfile as G, generateNodeWebDockerfile as H, detectPackageManager as I, imageBuildCredentials as J, nextPrerenderManifest as K, findBuildRoot as L, PRERENDER_RUN_ARG as M, stageBackups as Mt, PROCESSOR_PORT as N, deploysWithCompose as Nt, composeBuildPaths as O, backupExpiries as Ot, TURBO_VERSION as P, publicBuildValues as Q, generateBackendDockerfile as R, ORIGIN_VERIFY_HEADER as S, envFor as St, originSecretKey as T, stageEnv as Tt, generateProcessorDockerfile as U, generateNextjsDockerfile as V, generateViteStaticDockerfile as W, OFFLINE_BUILD_ADDRESS as X, isImageBuild as Y, offlineBuildHosts as Z, forgetState as _, bucketPolicies as _t, networkEnv as a, BACKUPS_SERVICE as at, bucketClient as b, quoteIdentifier as bt, processorEnvKeys as c, backupsRoleStatements as ct, backendsOf as d, applyBuckets as dt, siteOfflineHosts as et, constructGlobs as f, applyLifecycles as ft, COMPOSE_PATH as g, bucketLifecycles as gt, workspace_exports as h, applyPostgres as ht, dockerfileOf as i, workerUnits as it, LOCAL_CA_BUILD_SECRET as j, runTime as jt, fromBuildRoot as k, backupFile as kt, workerEnvKeys as l, backupsService as lt, reconcileWorkspace as m, applyPolicies as mt, appProcess as n, processorUnitName as nt, processEnv as o, BACKUPS_URL_KEY as ot, derivedContainers as p, applyNotifications as pt, resolveDockerConfig as q, apps_exports as r, processorUnits as rt, processEnvKeys as s, RUNNER_PATH as st, appEnvKeys as t, isUnder as tt, FAKE_ENV as u, stackBackups as ut, LEGACY_LOCAL_LOGIN as v, postgresDatabaseNames as vt, newOriginSecret as w, localRolePassword as wt, pgClient as x, mergeLifecycle as xt, ensurePostgresLogin as y, postgresStatements as yt, generateDockerignore as z };
|
|
4995
4649
|
|
|
4996
|
-
//# sourceMappingURL=apps-
|
|
4650
|
+
//# sourceMappingURL=apps-D0LULFmU.mjs.map
|