@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,11 +1,11 @@
|
|
|
1
1
|
const require_rolldown_runtime = require("./rolldown-runtime-C0BPl7ul.cjs");
|
|
2
|
-
const require_errors = require("./errors-
|
|
3
|
-
const require_dns = require("./dns-
|
|
4
|
-
const require_workspace = require("./workspace-
|
|
5
|
-
const require_compose = require("./compose-
|
|
6
|
-
const require_SubscriberGenerator = require("./SubscriberGenerator-
|
|
7
|
-
const require_EndpointGenerator = require("./EndpointGenerator-
|
|
8
|
-
const require_discover = require("./discover-
|
|
2
|
+
const require_errors = require("./errors-D1x8duqI.cjs");
|
|
3
|
+
const require_dns = require("./dns-D_0z9Tm1.cjs");
|
|
4
|
+
const require_workspace = require("./workspace-wTLnc1Ef.cjs");
|
|
5
|
+
const require_compose = require("./compose-C-yjexqX.cjs");
|
|
6
|
+
const require_SubscriberGenerator = require("./SubscriberGenerator-JhwVlWBS.cjs");
|
|
7
|
+
const require_EndpointGenerator = require("./EndpointGenerator-iyA3HkOH.cjs");
|
|
8
|
+
const require_discover = require("./discover-OXczlq08.cjs");
|
|
9
9
|
let node_path = require("node:path");
|
|
10
10
|
let node_fs = require("node:fs");
|
|
11
11
|
let node_fs_promises = require("node:fs/promises");
|
|
@@ -13,6 +13,7 @@ let node_os = require("node:os");
|
|
|
13
13
|
let node_child_process = require("node:child_process");
|
|
14
14
|
let node_net = require("node:net");
|
|
15
15
|
let node_crypto = require("node:crypto");
|
|
16
|
+
let _geekmidas_edge_certificates_local = require("@geekmidas/edge/certificates/local");
|
|
16
17
|
let _geekmidas_manifest = require("@geekmidas/manifest");
|
|
17
18
|
let node_module = require("node:module");
|
|
18
19
|
let node_url = require("node:url");
|
|
@@ -26,8 +27,6 @@ let _geekmidas_storage_s3_url = require("@geekmidas/storage/s3-url");
|
|
|
26
27
|
_geekmidas_storage_s3_url = require_rolldown_runtime.__toESM(_geekmidas_storage_s3_url, 1);
|
|
27
28
|
let _geekmidas_cache_postgres = require("@geekmidas/cache/postgres");
|
|
28
29
|
let node_util = require("node:util");
|
|
29
|
-
let node_forge = require("node-forge");
|
|
30
|
-
node_forge = require_rolldown_runtime.__toESM(node_forge, 1);
|
|
31
30
|
let _aws_sdk_client_s3 = require("@aws-sdk/client-s3");
|
|
32
31
|
let _aws_sdk_client_sns = require("@aws-sdk/client-sns");
|
|
33
32
|
let _aws_sdk_client_sqs = require("@aws-sdk/client-sqs");
|
|
@@ -2858,352 +2857,6 @@ function isStackKey(key) {
|
|
|
2858
2857
|
return require_workspace.isReservedStageKey(key) || key.startsWith("GKM_") || STACK_KEYS.has(key) || ORIGIN_SECRET.test(key);
|
|
2859
2858
|
}
|
|
2860
2859
|
//#endregion
|
|
2861
|
-
//#region src/trust/authority.ts
|
|
2862
|
-
/**
|
|
2863
|
-
* gkm's local certificate authority: one per machine, and every local edge's
|
|
2864
|
-
* certificate is issued from it.
|
|
2865
|
-
*
|
|
2866
|
-
* `gkm dev`'s Caddy, a local `gkm compose` stack's Caddy — and anything else
|
|
2867
|
-
* that serves the local stage's `*.localhost` names — serves a certificate
|
|
2868
|
-
* this module issued, the way a deployed stage's edge serves the files
|
|
2869
|
-
* `deploy.compose.tls` names. So there is one root to trust (`gkm trust`), it
|
|
2870
|
-
* exists before any container starts, and a container that calls the stage's
|
|
2871
|
-
* public hosts can be handed it (`NODE_EXTRA_CA_CERTS`) without first copying
|
|
2872
|
-
* it out of a proxy.
|
|
2873
|
-
*
|
|
2874
|
-
* The root lives in the CLI's home (`GKM_HOME`, else `~/.gkm`), outside every
|
|
2875
|
-
* project. Its key never leaves that directory: only certificates it signed —
|
|
2876
|
-
* and their own keys — are written to a workspace or handed to a container.
|
|
2877
|
-
*/
|
|
2878
|
-
/** How long the root is good for: ten years, so it is trusted once. */
|
|
2879
|
-
const AUTHORITY_DAYS = 3650;
|
|
2880
|
-
/** An issued certificate this close to its end is issued again. */
|
|
2881
|
-
const RENEW_WITHIN_DAYS = 30;
|
|
2882
|
-
const DAY = 864e5;
|
|
2883
|
-
/** The authority's files, under the CLI's home. */
|
|
2884
|
-
function localAuthorityPaths(home = require_dns.gkmHome()) {
|
|
2885
|
-
const dir = (0, node_path.join)(home, "ca");
|
|
2886
|
-
return {
|
|
2887
|
-
dir,
|
|
2888
|
-
certFile: (0, node_path.join)(dir, "root.pem"),
|
|
2889
|
-
keyFile: (0, node_path.join)(dir, "root-key.pem")
|
|
2890
|
-
};
|
|
2891
|
-
}
|
|
2892
|
-
/** The authority's directory is there, and its root or key is not readable. */
|
|
2893
|
-
var LocalAuthorityDamaged = class extends require_errors.GkmError {
|
|
2894
|
-
dir;
|
|
2895
|
-
reason;
|
|
2896
|
-
constructor(dir, reason) {
|
|
2897
|
-
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.`);
|
|
2898
|
-
this.dir = dir;
|
|
2899
|
-
this.reason = reason;
|
|
2900
|
-
this.name = "LocalAuthorityDamaged";
|
|
2901
|
-
}
|
|
2902
|
-
};
|
|
2903
|
-
/** A certificate asked for with no names to put on it. */
|
|
2904
|
-
var LocalCertificateWithoutNames = class extends require_errors.GkmError {
|
|
2905
|
-
constructor() {
|
|
2906
|
-
super("A local certificate needs at least one host name. Pass the hosts the edge serves — localCertificateNames(project, hosts) lists them.");
|
|
2907
|
-
this.name = "LocalCertificateWithoutNames";
|
|
2908
|
-
}
|
|
2909
|
-
};
|
|
2910
|
-
/**
|
|
2911
|
-
* Load the authority, creating it the first time.
|
|
2912
|
-
*
|
|
2913
|
-
* Created whole or not at all: generated into a directory of its own and
|
|
2914
|
-
* renamed into place, so two commands starting at once — `gkm dev` for two
|
|
2915
|
-
* apps — end with one root between them, never one's certificate and the
|
|
2916
|
-
* other's key.
|
|
2917
|
-
*
|
|
2918
|
-
* @throws {LocalAuthorityDamaged} when its directory holds no usable root.
|
|
2919
|
-
*/
|
|
2920
|
-
async function ensureLocalAuthority(paths = localAuthorityPaths()) {
|
|
2921
|
-
if (!(0, node_fs.existsSync)(paths.dir)) await createAuthority(paths);
|
|
2922
|
-
return readLocalAuthority(paths);
|
|
2923
|
-
}
|
|
2924
|
-
/**
|
|
2925
|
-
* Load an authority that exists.
|
|
2926
|
-
*
|
|
2927
|
-
* @throws {LocalAuthorityDamaged} when its root or key is missing or unreadable.
|
|
2928
|
-
*/
|
|
2929
|
-
async function readLocalAuthority(paths = localAuthorityPaths()) {
|
|
2930
|
-
let cert;
|
|
2931
|
-
let key;
|
|
2932
|
-
try {
|
|
2933
|
-
[cert, key] = await Promise.all([(0, node_fs_promises.readFile)(paths.certFile, "utf-8"), (0, node_fs_promises.readFile)(paths.keyFile, "utf-8")]);
|
|
2934
|
-
} catch {
|
|
2935
|
-
throw new LocalAuthorityDamaged(paths.dir, "its root certificate or key is missing");
|
|
2936
|
-
}
|
|
2937
|
-
try {
|
|
2938
|
-
const root = node_forge.default.pki.certificateFromPem(cert);
|
|
2939
|
-
const signer = node_forge.default.pki.privateKeyFromPem(key);
|
|
2940
|
-
if (!root.publicKey.n.equals(signer.n)) throw new LocalAuthorityDamaged(paths.dir, "its key is not the root certificate’s");
|
|
2941
|
-
} catch (error) {
|
|
2942
|
-
if (error instanceof LocalAuthorityDamaged) throw error;
|
|
2943
|
-
throw new LocalAuthorityDamaged(paths.dir, "its files are not PEM");
|
|
2944
|
-
}
|
|
2945
|
-
return {
|
|
2946
|
-
certFile: paths.certFile,
|
|
2947
|
-
cert,
|
|
2948
|
-
key
|
|
2949
|
-
};
|
|
2950
|
-
}
|
|
2951
|
-
async function createAuthority(paths) {
|
|
2952
|
-
const { cert, key } = selfSigned();
|
|
2953
|
-
const staging = `${paths.dir}.${process.pid}.${(0, node_crypto.randomBytes)(4).toString("hex")}`;
|
|
2954
|
-
await (0, node_fs_promises.mkdir)(staging, {
|
|
2955
|
-
recursive: true,
|
|
2956
|
-
mode: 448
|
|
2957
|
-
});
|
|
2958
|
-
try {
|
|
2959
|
-
await (0, node_fs_promises.writeFile)((0, node_path.join)(staging, "root.pem"), cert, { mode: 420 });
|
|
2960
|
-
await (0, node_fs_promises.writeFile)((0, node_path.join)(staging, "root-key.pem"), key, { mode: 384 });
|
|
2961
|
-
await (0, node_fs_promises.mkdir)((0, node_path.dirname)(paths.dir), { recursive: true });
|
|
2962
|
-
await (0, node_fs_promises.rename)(staging, paths.dir).catch((error) => {
|
|
2963
|
-
if (error.code !== "EEXIST" && error.code !== "ENOTEMPTY") throw error;
|
|
2964
|
-
});
|
|
2965
|
-
} finally {
|
|
2966
|
-
await (0, node_fs_promises.rm)(staging, {
|
|
2967
|
-
recursive: true,
|
|
2968
|
-
force: true
|
|
2969
|
-
});
|
|
2970
|
-
}
|
|
2971
|
-
}
|
|
2972
|
-
/** A new root: who made it, on which machine, so a keychain says whose it is. */
|
|
2973
|
-
function selfSigned() {
|
|
2974
|
-
const { privateKey, publicKey } = keyPair();
|
|
2975
|
-
const cert = node_forge.default.pki.createCertificate();
|
|
2976
|
-
cert.publicKey = publicKey;
|
|
2977
|
-
cert.serialNumber = serialNumber();
|
|
2978
|
-
const now = Date.now();
|
|
2979
|
-
cert.validity.notBefore = /* @__PURE__ */ new Date(now - DAY);
|
|
2980
|
-
cert.validity.notAfter = new Date(now + AUTHORITY_DAYS * DAY);
|
|
2981
|
-
const subject = utf8([
|
|
2982
|
-
{
|
|
2983
|
-
name: "organizationName",
|
|
2984
|
-
value: "gkm local CA"
|
|
2985
|
-
},
|
|
2986
|
-
{
|
|
2987
|
-
name: "organizationalUnitName",
|
|
2988
|
-
value: owner()
|
|
2989
|
-
},
|
|
2990
|
-
{
|
|
2991
|
-
name: "commonName",
|
|
2992
|
-
value: `gkm local CA ${owner()}`
|
|
2993
|
-
}
|
|
2994
|
-
]);
|
|
2995
|
-
cert.setSubject(subject);
|
|
2996
|
-
cert.setIssuer(subject);
|
|
2997
|
-
cert.setExtensions([
|
|
2998
|
-
{
|
|
2999
|
-
name: "basicConstraints",
|
|
3000
|
-
cA: true,
|
|
3001
|
-
pathLenConstraint: 0,
|
|
3002
|
-
critical: true
|
|
3003
|
-
},
|
|
3004
|
-
{
|
|
3005
|
-
name: "keyUsage",
|
|
3006
|
-
keyCertSign: true,
|
|
3007
|
-
cRLSign: true,
|
|
3008
|
-
critical: true
|
|
3009
|
-
},
|
|
3010
|
-
{ name: "subjectKeyIdentifier" }
|
|
3011
|
-
]);
|
|
3012
|
-
cert.sign(privateKey, node_forge.default.md.sha256.create());
|
|
3013
|
-
return {
|
|
3014
|
-
cert: node_forge.default.pki.certificateToPem(cert),
|
|
3015
|
-
key: node_forge.default.pki.privateKeyToPem(privateKey)
|
|
3016
|
-
};
|
|
3017
|
-
}
|
|
3018
|
-
/**
|
|
3019
|
-
* The names a project's local certificate carries: its bare host and every
|
|
3020
|
-
* label under it — `shop.localhost`, `*.shop.localhost` — and any host the
|
|
3021
|
-
* edge serves that those do not cover, a stage's own wildcard among them.
|
|
3022
|
-
* Without a project, the hosts alone: `*.localhost` is nobody's to claim.
|
|
3023
|
-
*/
|
|
3024
|
-
function localCertificateNames(project, hosts) {
|
|
3025
|
-
const names = [...project ? [`${project}.localhost`, `*.${project}.localhost`] : []];
|
|
3026
|
-
for (const host of hosts) {
|
|
3027
|
-
const name = host.toLowerCase();
|
|
3028
|
-
if (!names.some((covering) => covers(covering, name))) names.push(name);
|
|
3029
|
-
}
|
|
3030
|
-
return names;
|
|
3031
|
-
}
|
|
3032
|
-
/** Whether a certificate name answers for a host, by the one-label wildcard rule. */
|
|
3033
|
-
function covers(name, host) {
|
|
3034
|
-
if (name === host) return true;
|
|
3035
|
-
if (!name.startsWith("*.") || host.startsWith("*.")) return false;
|
|
3036
|
-
const suffix = name.slice(1);
|
|
3037
|
-
return host.endsWith(suffix) && !host.slice(0, -suffix.length).includes(".");
|
|
3038
|
-
}
|
|
3039
|
-
/**
|
|
3040
|
-
* A certificate for `names`, signed by the authority. Each call makes a new
|
|
3041
|
-
* key; {@link ensureLocalCertificate} is what keeps one across runs.
|
|
3042
|
-
*
|
|
3043
|
-
* @throws {LocalCertificateWithoutNames} for an empty list.
|
|
3044
|
-
*/
|
|
3045
|
-
function issueLocalCertificate(authority, names, options = {}) {
|
|
3046
|
-
if (names.length === 0) throw new LocalCertificateWithoutNames();
|
|
3047
|
-
const root = node_forge.default.pki.certificateFromPem(authority.cert);
|
|
3048
|
-
const signer = node_forge.default.pki.privateKeyFromPem(authority.key);
|
|
3049
|
-
const { privateKey, publicKey } = keyPair();
|
|
3050
|
-
const now = (options.now ?? /* @__PURE__ */ new Date()).getTime();
|
|
3051
|
-
const cert = node_forge.default.pki.createCertificate();
|
|
3052
|
-
cert.publicKey = publicKey;
|
|
3053
|
-
cert.serialNumber = serialNumber();
|
|
3054
|
-
cert.validity.notBefore = /* @__PURE__ */ new Date(now - 36e5);
|
|
3055
|
-
cert.validity.notAfter = new Date(now + (options.days ?? 365) * DAY);
|
|
3056
|
-
cert.setSubject(utf8([{
|
|
3057
|
-
name: "organizationName",
|
|
3058
|
-
value: "gkm local certificate"
|
|
3059
|
-
}, {
|
|
3060
|
-
name: "commonName",
|
|
3061
|
-
value: names[0]
|
|
3062
|
-
}]));
|
|
3063
|
-
cert.setIssuer(root.subject.attributes);
|
|
3064
|
-
cert.setExtensions([
|
|
3065
|
-
{
|
|
3066
|
-
name: "basicConstraints",
|
|
3067
|
-
cA: false,
|
|
3068
|
-
critical: true
|
|
3069
|
-
},
|
|
3070
|
-
{
|
|
3071
|
-
name: "keyUsage",
|
|
3072
|
-
digitalSignature: true,
|
|
3073
|
-
keyEncipherment: true,
|
|
3074
|
-
critical: true
|
|
3075
|
-
},
|
|
3076
|
-
{
|
|
3077
|
-
name: "extKeyUsage",
|
|
3078
|
-
serverAuth: true
|
|
3079
|
-
},
|
|
3080
|
-
{
|
|
3081
|
-
name: "subjectAltName",
|
|
3082
|
-
altNames: names.map((value) => ({
|
|
3083
|
-
type: 2,
|
|
3084
|
-
value
|
|
3085
|
-
}))
|
|
3086
|
-
},
|
|
3087
|
-
{ name: "subjectKeyIdentifier" },
|
|
3088
|
-
{
|
|
3089
|
-
name: "authorityKeyIdentifier",
|
|
3090
|
-
keyIdentifier: root.generateSubjectKeyIdentifier().getBytes()
|
|
3091
|
-
}
|
|
3092
|
-
]);
|
|
3093
|
-
cert.sign(signer, node_forge.default.md.sha256.create());
|
|
3094
|
-
return {
|
|
3095
|
-
cert: node_forge.default.pki.certificateToPem(cert),
|
|
3096
|
-
key: node_forge.default.pki.privateKeyToPem(privateKey)
|
|
3097
|
-
};
|
|
3098
|
-
}
|
|
3099
|
-
/**
|
|
3100
|
-
* The certificate for `names` kept in `file` — certificate then key, one PEM
|
|
3101
|
-
* file, which is what a proxy given the same path for both reads — issued
|
|
3102
|
-
* again only when the one there is not the authority's, does not cover every
|
|
3103
|
-
* name, or is near its end.
|
|
3104
|
-
*
|
|
3105
|
-
* One file written by rename, so two commands issuing at once leave a pair
|
|
3106
|
-
* that matches, never one's certificate beside the other's key.
|
|
3107
|
-
*
|
|
3108
|
-
* @throws {LocalCertificateWithoutNames} for an empty list.
|
|
3109
|
-
*/
|
|
3110
|
-
async function ensureLocalCertificate(authority, names, file, options = {}) {
|
|
3111
|
-
const now = options.now ?? /* @__PURE__ */ new Date();
|
|
3112
|
-
const existing = await (0, node_fs_promises.readFile)(file, "utf-8").catch(() => void 0);
|
|
3113
|
-
const kept = existing ? splitPem(existing) : void 0;
|
|
3114
|
-
if (kept && stillGood(authority, kept, names, now)) return {
|
|
3115
|
-
...kept,
|
|
3116
|
-
issued: false
|
|
3117
|
-
};
|
|
3118
|
-
const issued = issueLocalCertificate(authority, names, { now });
|
|
3119
|
-
await (0, node_fs_promises.mkdir)((0, node_path.dirname)(file), {
|
|
3120
|
-
recursive: true,
|
|
3121
|
-
mode: 448
|
|
3122
|
-
});
|
|
3123
|
-
const staging = `${file}.${process.pid}.${(0, node_crypto.randomBytes)(4).toString("hex")}`;
|
|
3124
|
-
await (0, node_fs_promises.writeFile)(staging, `${issued.cert}${issued.key}`, { mode: 384 });
|
|
3125
|
-
await (0, node_fs_promises.rename)(staging, file);
|
|
3126
|
-
return {
|
|
3127
|
-
...issued,
|
|
3128
|
-
issued: true
|
|
3129
|
-
};
|
|
3130
|
-
}
|
|
3131
|
-
/** A combined PEM file's certificate and key. */
|
|
3132
|
-
function splitPem(pem) {
|
|
3133
|
-
const cert = pem.match(/-----BEGIN CERTIFICATE-----[\s\S]+?-----END CERTIFICATE-----\r?\n?/)?.[0];
|
|
3134
|
-
const key = pem.match(/-----BEGIN (?:RSA )?PRIVATE KEY-----[\s\S]+?-----END (?:RSA )?PRIVATE KEY-----\r?\n?/)?.[0];
|
|
3135
|
-
return cert && key ? {
|
|
3136
|
-
cert,
|
|
3137
|
-
key
|
|
3138
|
-
} : void 0;
|
|
3139
|
-
}
|
|
3140
|
-
/** Whether a kept certificate still serves: the authority's, every name, in date. */
|
|
3141
|
-
function stillGood(authority, kept, names, now) {
|
|
3142
|
-
try {
|
|
3143
|
-
const root = node_forge.default.pki.certificateFromPem(authority.cert);
|
|
3144
|
-
const cert = node_forge.default.pki.certificateFromPem(kept.cert);
|
|
3145
|
-
if (!root.verify(cert)) return false;
|
|
3146
|
-
if (cert.validity.notAfter.getTime() - now.getTime() < RENEW_WITHIN_DAYS * DAY) return false;
|
|
3147
|
-
const certKey = (0, node_crypto.createPublicKey)(kept.cert).export({
|
|
3148
|
-
type: "spki",
|
|
3149
|
-
format: "der"
|
|
3150
|
-
});
|
|
3151
|
-
const ownKey = (0, node_crypto.createPublicKey)((0, node_crypto.createPrivateKey)(kept.key)).export({
|
|
3152
|
-
type: "spki",
|
|
3153
|
-
format: "der"
|
|
3154
|
-
});
|
|
3155
|
-
if (!certKey.equals(ownKey)) return false;
|
|
3156
|
-
const san = cert.getExtension("subjectAltName");
|
|
3157
|
-
const dns = new Set((san?.altNames ?? []).filter((n) => n.type === 2).map((n) => n.value));
|
|
3158
|
-
return names.every((name) => dns.has(name));
|
|
3159
|
-
} catch {
|
|
3160
|
-
return false;
|
|
3161
|
-
}
|
|
3162
|
-
}
|
|
3163
|
-
/** An RSA key pair, made natively — forge's own generation is slow. */
|
|
3164
|
-
function keyPair() {
|
|
3165
|
-
const { privateKey: pem } = (0, node_crypto.generateKeyPairSync)("rsa", {
|
|
3166
|
-
modulusLength: 2048,
|
|
3167
|
-
publicKeyEncoding: {
|
|
3168
|
-
type: "spki",
|
|
3169
|
-
format: "pem"
|
|
3170
|
-
},
|
|
3171
|
-
privateKeyEncoding: {
|
|
3172
|
-
type: "pkcs8",
|
|
3173
|
-
format: "pem"
|
|
3174
|
-
}
|
|
3175
|
-
});
|
|
3176
|
-
const privateKey = node_forge.default.pki.privateKeyFromPem(pem);
|
|
3177
|
-
return {
|
|
3178
|
-
privateKey,
|
|
3179
|
-
publicKey: node_forge.default.pki.setRsaPublicKey(privateKey.n, privateKey.e)
|
|
3180
|
-
};
|
|
3181
|
-
}
|
|
3182
|
-
/**
|
|
3183
|
-
* Attributes as UTF8String. forge writes PrintableString otherwise, which
|
|
3184
|
-
* has no `@` or `*` — and a TLS stack rejects the certificate outright.
|
|
3185
|
-
*/
|
|
3186
|
-
function utf8(attributes) {
|
|
3187
|
-
return attributes.map((attribute) => ({
|
|
3188
|
-
...attribute,
|
|
3189
|
-
valueTagClass: node_forge.default.asn1.Type.UTF8
|
|
3190
|
-
}));
|
|
3191
|
-
}
|
|
3192
|
-
/** A random, positive serial: sixteen bytes, its high bit clear. */
|
|
3193
|
-
function serialNumber() {
|
|
3194
|
-
const bytes = (0, node_crypto.randomBytes)(16);
|
|
3195
|
-
bytes[0] = bytes[0] & 127;
|
|
3196
|
-
return bytes.toString("hex");
|
|
3197
|
-
}
|
|
3198
|
-
/** `user@host`, as far as the machine will say. */
|
|
3199
|
-
function owner() {
|
|
3200
|
-
let user = "gkm";
|
|
3201
|
-
try {
|
|
3202
|
-
user = (0, node_os.userInfo)().username;
|
|
3203
|
-
} catch {}
|
|
3204
|
-
return `${user}@${(0, node_os.hostname)()}`;
|
|
3205
|
-
}
|
|
3206
|
-
//#endregion
|
|
3207
2860
|
//#region src/reconcile/clients.ts
|
|
3208
2861
|
/**
|
|
3209
2862
|
* The real Postgres and MinIO clients the applier runs against.
|
|
@@ -4082,7 +3735,7 @@ const CHECKOUT_MOUNTS = ["caddy"];
|
|
|
4082
3735
|
const caddySitesPath = (stage) => `.gkm/caddy-sites/${stage}.caddy`;
|
|
4083
3736
|
/**
|
|
4084
3737
|
* Where one stage's certificate is kept: certificate and key in one PEM,
|
|
4085
|
-
* issued from gkm's local authority (
|
|
3738
|
+
* issued from gkm's local authority (`@geekmidas/edge/certificates/local`), beside the
|
|
4086
3739
|
* stage's routes — so the edge reads it through the mount it already has, and
|
|
4087
3740
|
* a stage removed takes its certificate with it.
|
|
4088
3741
|
*/
|
|
@@ -4131,7 +3784,7 @@ async function reconcile(options) {
|
|
|
4131
3784
|
});
|
|
4132
3785
|
const sites = require_compose.sitesFor(plan, project, options.addresses, options.processorAddresses);
|
|
4133
3786
|
const edged = plan.containers.includes("caddy");
|
|
4134
|
-
const authorityPaths = options.authority ?? localAuthorityPaths();
|
|
3787
|
+
const authorityPaths = options.authority ?? (0, _geekmidas_edge_certificates_local.localAuthorityPaths)(require_dns.gkmHome());
|
|
4135
3788
|
const edgePort = ports[require_compose.primaryPortKey("caddy")];
|
|
4136
3789
|
const caddyfile = require_compose.toCaddyfile(sites, {
|
|
4137
3790
|
certificate: `${require_compose.CADDY_SITES_IN_CONTAINER}/${stage}.pem`,
|
|
@@ -4178,7 +3831,7 @@ async function reconcile(options) {
|
|
|
4178
3831
|
hash,
|
|
4179
3832
|
changed: false
|
|
4180
3833
|
};
|
|
4181
|
-
const certificate = edged ? await ensureLocalCertificate(await ensureLocalAuthority(authorityPaths), localCertificateNames(project, sites.flatMap((site) => [
|
|
3834
|
+
const certificate = edged ? await (0, _geekmidas_edge_certificates_local.ensureLocalCertificate)(await (0, _geekmidas_edge_certificates_local.ensureLocalAuthority)(authorityPaths), (0, _geekmidas_edge_certificates_local.localCertificateNames)(project, sites.flatMap((site) => [
|
|
4182
3835
|
site.host,
|
|
4183
3836
|
...site.aliases ?? [],
|
|
4184
3837
|
...site.redirects ?? []
|
|
@@ -5229,18 +4882,6 @@ Object.defineProperty(exports, "dockerfileOf", {
|
|
|
5229
4882
|
return dockerfileOf;
|
|
5230
4883
|
}
|
|
5231
4884
|
});
|
|
5232
|
-
Object.defineProperty(exports, "ensureLocalAuthority", {
|
|
5233
|
-
enumerable: true,
|
|
5234
|
-
get: function() {
|
|
5235
|
-
return ensureLocalAuthority;
|
|
5236
|
-
}
|
|
5237
|
-
});
|
|
5238
|
-
Object.defineProperty(exports, "ensureLocalCertificate", {
|
|
5239
|
-
enumerable: true,
|
|
5240
|
-
get: function() {
|
|
5241
|
-
return ensureLocalCertificate;
|
|
5242
|
-
}
|
|
5243
|
-
});
|
|
5244
4885
|
Object.defineProperty(exports, "ensurePostgresLogin", {
|
|
5245
4886
|
enumerable: true,
|
|
5246
4887
|
get: function() {
|
|
@@ -5349,18 +4990,6 @@ Object.defineProperty(exports, "isUnder", {
|
|
|
5349
4990
|
return isUnder;
|
|
5350
4991
|
}
|
|
5351
4992
|
});
|
|
5352
|
-
Object.defineProperty(exports, "localAuthorityPaths", {
|
|
5353
|
-
enumerable: true,
|
|
5354
|
-
get: function() {
|
|
5355
|
-
return localAuthorityPaths;
|
|
5356
|
-
}
|
|
5357
|
-
});
|
|
5358
|
-
Object.defineProperty(exports, "localCertificateNames", {
|
|
5359
|
-
enumerable: true,
|
|
5360
|
-
get: function() {
|
|
5361
|
-
return localCertificateNames;
|
|
5362
|
-
}
|
|
5363
|
-
});
|
|
5364
4993
|
Object.defineProperty(exports, "localRolePassword", {
|
|
5365
4994
|
enumerable: true,
|
|
5366
4995
|
get: function() {
|
|
@@ -5469,12 +5098,6 @@ Object.defineProperty(exports, "quoteIdentifier", {
|
|
|
5469
5098
|
return quoteIdentifier;
|
|
5470
5099
|
}
|
|
5471
5100
|
});
|
|
5472
|
-
Object.defineProperty(exports, "readLocalAuthority", {
|
|
5473
|
-
enumerable: true,
|
|
5474
|
-
get: function() {
|
|
5475
|
-
return readLocalAuthority;
|
|
5476
|
-
}
|
|
5477
|
-
});
|
|
5478
5101
|
Object.defineProperty(exports, "reconcileWorkspace", {
|
|
5479
5102
|
enumerable: true,
|
|
5480
5103
|
get: function() {
|
|
@@ -5548,4 +5171,4 @@ Object.defineProperty(exports, "workspace_exports", {
|
|
|
5548
5171
|
}
|
|
5549
5172
|
});
|
|
5550
5173
|
|
|
5551
|
-
//# sourceMappingURL=apps-
|
|
5174
|
+
//# sourceMappingURL=apps-qJ5FPJGQ.cjs.map
|