@geekmidas/cli 10.0.0-alpha.189 → 10.0.0-alpha.190
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/{LegacyStateStore-BI0-sXct.mjs → LegacyStateStore-CWiswz6T.mjs} +2 -2
- package/dist/{LegacyStateStore-BI0-sXct.mjs.map → LegacyStateStore-CWiswz6T.mjs.map} +1 -1
- package/dist/{LegacyStateStore-DSl-Kjhn.cjs → LegacyStateStore-CuSe37fl.cjs} +2 -2
- package/dist/{LegacyStateStore-DSl-Kjhn.cjs.map → LegacyStateStore-CuSe37fl.cjs.map} +1 -1
- package/dist/{LocalStateStore-DlXihNk5.cjs → LocalStateStore-BciJ_DF0.cjs} +2 -2
- package/dist/{LocalStateStore-DlXihNk5.cjs.map → LocalStateStore-BciJ_DF0.cjs.map} +1 -1
- package/dist/{LocalStateStore-CKoytnSh.mjs → LocalStateStore-CLHasLJI.mjs} +2 -2
- package/dist/{LocalStateStore-CKoytnSh.mjs.map → LocalStateStore-CLHasLJI.mjs.map} +1 -1
- package/dist/{S3StateStore-DAQh1WJ_.cjs → S3StateStore-BHLRjoj3.cjs} +4 -4
- package/dist/{S3StateStore-DAQh1WJ_.cjs.map → S3StateStore-BHLRjoj3.cjs.map} +1 -1
- package/dist/{S3StateStore-BWiLJgjA.mjs → S3StateStore-CTiv2_ON.mjs} +4 -4
- package/dist/{S3StateStore-BWiLJgjA.mjs.map → S3StateStore-CTiv2_ON.mjs.map} +1 -1
- package/dist/{SSMStateStore-CwpsKiqW.cjs → SSMStateStore-BqT3MXXb.cjs} +2 -2
- package/dist/{SSMStateStore-CwpsKiqW.cjs.map → SSMStateStore-BqT3MXXb.cjs.map} +1 -1
- package/dist/{SSMStateStore-Dtjc3Tcy.mjs → SSMStateStore-D6qqaem2.mjs} +2 -2
- package/dist/{SSMStateStore-Dtjc3Tcy.mjs.map → SSMStateStore-D6qqaem2.mjs.map} +1 -1
- package/dist/{add-DgoqWfHX.cjs → add-B2OmIQzs.cjs} +4 -4
- package/dist/{add-DgoqWfHX.cjs.map → add-B2OmIQzs.cjs.map} +1 -1
- package/dist/{add-CgR8OZmf.mjs → add-CXwL549o.mjs} +4 -4
- package/dist/{add-CgR8OZmf.mjs.map → add-CXwL549o.mjs.map} +1 -1
- package/dist/{bundler-B0GTqknw.mjs → bundler-CHXyJFsS.mjs} +6 -6
- package/dist/{bundler-B0GTqknw.mjs.map → bundler-CHXyJFsS.mjs.map} +1 -1
- package/dist/{bundler-ZNjpx5xS.cjs → bundler-CLoVtcBi.cjs} +6 -6
- package/dist/{bundler-ZNjpx5xS.cjs.map → bundler-CLoVtcBi.cjs.map} +1 -1
- package/dist/{cli-bjBjd1zg.mjs → cli-Bjua3PaZ.mjs} +4 -4
- package/dist/{cli-bjBjd1zg.mjs.map → cli-Bjua3PaZ.mjs.map} +1 -1
- package/dist/{cli-DqEhTw8n.cjs → cli-DiuUr1Am.cjs} +4 -4
- package/dist/{cli-DqEhTw8n.cjs.map → cli-DiuUr1Am.cjs.map} +1 -1
- package/dist/{clientTelemetry-C3GsvvLK.d.cts → clientTelemetry-DXuYNH-J.d.cts} +2 -2
- package/dist/clientTelemetry-DXuYNH-J.d.cts.map +1 -0
- package/dist/{clientTelemetry-Dcp0jgkV.d.mts → clientTelemetry-eC8VQ6nB.d.mts} +2 -2
- package/dist/clientTelemetry-eC8VQ6nB.d.mts.map +1 -0
- package/dist/{compose-BE2Fi1Bs.mjs → compose-DUOETDhc.mjs} +225 -17
- package/dist/compose-DUOETDhc.mjs.map +1 -0
- package/dist/{compose-QHm47c8E.cjs → compose-gnNrY3NQ.cjs} +226 -17
- package/dist/compose-gnNrY3NQ.cjs.map +1 -0
- package/dist/{config-CDulXPTe.d.mts → config-1zirYXeO.d.mts} +3 -3
- package/dist/{config-B_pfl-ZN.d.cts.map → config-1zirYXeO.d.mts.map} +1 -1
- package/dist/{config-B_pfl-ZN.d.cts → config-rSlB-bXj.d.cts} +3 -3
- package/dist/{config-CDulXPTe.d.mts.map → config-rSlB-bXj.d.cts.map} +1 -1
- package/dist/config.cjs +1 -1
- package/dist/config.d.cts +3 -3
- package/dist/config.d.mts +3 -3
- package/dist/config.mjs +1 -1
- package/dist/{credentials-No8csre7.cjs → credentials-BI52H1ad.cjs} +5 -5
- package/dist/{credentials-No8csre7.cjs.map → credentials-BI52H1ad.cjs.map} +1 -1
- package/dist/{credentials--QL1R8mL.cjs → credentials-Cp09PIsc.cjs} +4 -4
- package/dist/{credentials--QL1R8mL.cjs.map → credentials-Cp09PIsc.cjs.map} +1 -1
- package/dist/{credentials-CRgp0huX.mjs → credentials-DbjLhvix.mjs} +4 -4
- package/dist/{credentials-CRgp0huX.mjs.map → credentials-DbjLhvix.mjs.map} +1 -1
- package/dist/{credentials-0Kmo6GAw.mjs → credentials-VLP_959f.mjs} +5 -5
- package/dist/{credentials-0Kmo6GAw.mjs.map → credentials-VLP_959f.mjs.map} +1 -1
- package/dist/{dbTunnel-DOiMt-yL.mjs → dbTunnel-CLsqWr7o.mjs} +5 -5
- package/dist/{dbTunnel-DOiMt-yL.mjs.map → dbTunnel-CLsqWr7o.mjs.map} +1 -1
- package/dist/{dbTunnel-CEHBYvbM.cjs → dbTunnel-DQcdaaLi.cjs} +5 -5
- package/dist/{dbTunnel-CEHBYvbM.cjs.map → dbTunnel-DQcdaaLi.cjs.map} +1 -1
- package/dist/deploy/public.cjs +10 -10
- package/dist/deploy/public.d.cts +5 -5
- package/dist/deploy/public.d.mts +5 -5
- package/dist/deploy/public.mjs +10 -10
- package/dist/{deploy-KdBFBME1.mjs → deploy-DhIy2Ftj.mjs} +17 -12
- package/dist/deploy-DhIy2Ftj.mjs.map +1 -0
- package/dist/{deploy-Pkvk9jIL.cjs → deploy-DpQ_4Pu1.cjs} +17 -12
- package/dist/deploy-DpQ_4Pu1.cjs.map +1 -0
- package/dist/{destroy-oqNna46x.cjs → destroy-DmTDT6V7.cjs} +9 -9
- package/dist/{destroy-oqNna46x.cjs.map → destroy-DmTDT6V7.cjs.map} +1 -1
- package/dist/{destroy-CFc0rdP4.mjs → destroy-wV9yNLQV.mjs} +9 -9
- package/dist/{destroy-CFc0rdP4.mjs.map → destroy-wV9yNLQV.mjs.map} +1 -1
- package/dist/{dokploy-CxEzce91.cjs → dokploy-B61ww4Yb.cjs} +2 -2
- package/dist/{dokploy-CxEzce91.cjs.map → dokploy-B61ww4Yb.cjs.map} +1 -1
- package/dist/{dokploy-BkwTpeNU.mjs → dokploy-Jhl3sPd4.mjs} +2 -2
- package/dist/{dokploy-BkwTpeNU.mjs.map → dokploy-Jhl3sPd4.mjs.map} +1 -1
- package/dist/{eas-vzSPhv0B.mjs → eas-BmvO40xS.mjs} +3 -3
- package/dist/{eas-vzSPhv0B.mjs.map → eas-BmvO40xS.mjs.map} +1 -1
- package/dist/{eas-DbDHF2WZ.cjs → eas-X09Gz8_E.cjs} +3 -3
- package/dist/{eas-DbDHF2WZ.cjs.map → eas-X09Gz8_E.cjs.map} +1 -1
- package/dist/{encryption-4xb0WByC.cjs → encryption-BBIUewnL.cjs} +3 -3
- package/dist/{encryption-4xb0WByC.cjs.map → encryption-BBIUewnL.cjs.map} +1 -1
- package/dist/{encryption-BJirKe8H.mjs → encryption-BOmswIgE.mjs} +3 -3
- package/dist/{encryption-BJirKe8H.mjs.map → encryption-BOmswIgE.mjs.map} +1 -1
- package/dist/{engine-C-tyF0OQ.cjs → engine-BhjhShKf.cjs} +7 -7
- package/dist/{engine-C-tyF0OQ.cjs.map → engine-BhjhShKf.cjs.map} +1 -1
- package/dist/{engine-Blw0271a.mjs → engine-DW2H3KNa.mjs} +7 -7
- package/dist/{engine-Blw0271a.mjs.map → engine-DW2H3KNa.mjs.map} +1 -1
- package/dist/{github-C_h3NRr7.mjs → github-Ptbigbrq.mjs} +7 -7
- package/dist/{github-C_h3NRr7.mjs.map → github-Ptbigbrq.mjs.map} +1 -1
- package/dist/{github-Aydv6vu5.cjs → github-xUtu4Ur7.cjs} +7 -7
- package/dist/{github-Aydv6vu5.cjs.map → github-xUtu4Ur7.cjs.map} +1 -1
- package/dist/{googlePlay-DpJTysGZ.cjs → googlePlay-B4xhz5xT.cjs} +4 -4
- package/dist/{googlePlay-DpJTysGZ.cjs.map → googlePlay-B4xhz5xT.cjs.map} +1 -1
- package/dist/{googlePlay-B7AYn6Pc.mjs → googlePlay-C9rrwN5b.mjs} +4 -4
- package/dist/{googlePlay-B7AYn6Pc.mjs.map → googlePlay-C9rrwN5b.mjs.map} +1 -1
- package/dist/{iam-DlPqLzjO.cjs → iam-D7mXd6by.cjs} +2 -2
- package/dist/{iam-DlPqLzjO.cjs.map → iam-D7mXd6by.cjs.map} +1 -1
- package/dist/{iam-CE1QQeEQ.mjs → iam-DNlbVN_l.mjs} +2 -2
- package/dist/{iam-CE1QQeEQ.mjs.map → iam-DNlbVN_l.mjs.map} +1 -1
- package/dist/{index-CBl51bCQ.d.cts → index-B1gfXH5K.d.mts} +2 -2
- package/dist/{index-CBl51bCQ.d.cts.map → index-B1gfXH5K.d.mts.map} +1 -1
- package/dist/{index-Dqp1lLjF.d.mts → index-CunkOPOu.d.cts} +2 -2
- package/dist/{index-Dqp1lLjF.d.mts.map → index-CunkOPOu.d.cts.map} +1 -1
- package/dist/index.cjs +60 -60
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +60 -60
- package/dist/index.mjs.map +1 -1
- package/dist/{local-ZaXGH2eP.mjs → local-CvC-z86k.mjs} +2 -2
- package/dist/{local-ZaXGH2eP.mjs.map → local-CvC-z86k.mjs.map} +1 -1
- package/dist/{local-BEM8UVsa.cjs → local-DAJrhvSC.cjs} +2 -2
- package/dist/{local-BEM8UVsa.cjs.map → local-DAJrhvSC.cjs.map} +1 -1
- package/dist/{migrate-DTMYWQn6.cjs → migrate-0-A4BOcd.cjs} +5 -5
- package/dist/{migrate-DTMYWQn6.cjs.map → migrate-0-A4BOcd.cjs.map} +1 -1
- package/dist/{migrate-CkeIl9YW.mjs → migrate-C_36JSwV.mjs} +3 -3
- package/dist/{migrate-CkeIl9YW.mjs.map → migrate-C_36JSwV.mjs.map} +1 -1
- package/dist/{migrate-BuReWK8R.mjs → migrate-DHbXzZIJ.mjs} +5 -5
- package/dist/{migrate-BuReWK8R.mjs.map → migrate-DHbXzZIJ.mjs.map} +1 -1
- package/dist/{migrate-Cq4s3V1M.cjs → migrate-fGWfv2DV.cjs} +3 -3
- package/dist/{migrate-Cq4s3V1M.cjs.map → migrate-fGWfv2DV.cjs.map} +1 -1
- package/dist/openapi.cjs +1 -1
- package/dist/openapi.d.cts +2 -2
- package/dist/openapi.d.mts +2 -2
- package/dist/openapi.mjs +1 -1
- package/dist/{projectBucket-CBzCpLML.cjs → projectBucket-BAoFOQtA.cjs} +2 -2
- package/dist/{projectBucket-CBzCpLML.cjs.map → projectBucket-BAoFOQtA.cjs.map} +1 -1
- package/dist/{projectBucket-BaZfu9b6.mjs → projectBucket-Dxub09V1.mjs} +2 -2
- package/dist/{projectBucket-BaZfu9b6.mjs.map → projectBucket-Dxub09V1.mjs.map} +1 -1
- package/dist/{publish-CLYnKn-k.cjs → publish-BX8_zXaf.cjs} +2 -2
- package/dist/{publish-CLYnKn-k.cjs.map → publish-BX8_zXaf.cjs.map} +1 -1
- package/dist/{publish-UxavszCu.mjs → publish-DE_yBzlz.mjs} +2 -2
- package/dist/{publish-UxavszCu.mjs.map → publish-DE_yBzlz.mjs.map} +1 -1
- package/dist/reconcile/public.d.cts +1 -1
- package/dist/reconcile/public.d.mts +1 -1
- package/dist/{resolve-CeeNr_ex.cjs → resolve-CPB2jkB4.cjs} +4 -4
- package/dist/{resolve-CeeNr_ex.cjs.map → resolve-CPB2jkB4.cjs.map} +1 -1
- package/dist/{resolve-Bk9a9BVj.mjs → resolve-DCPtP7-X.mjs} +4 -4
- package/dist/{resolve-Bk9a9BVj.mjs.map → resolve-DCPtP7-X.mjs.map} +1 -1
- package/dist/{rollback-DyMVhn7L.mjs → rollback-sefKrjlE.mjs} +7 -7
- package/dist/{rollback-DyMVhn7L.mjs.map → rollback-sefKrjlE.mjs.map} +1 -1
- package/dist/{rollback-D6AdPlie.cjs → rollback-ygh2qRWo.cjs} +7 -7
- package/dist/{rollback-D6AdPlie.cjs.map → rollback-ygh2qRWo.cjs.map} +1 -1
- package/dist/{runtime-DFG1CAWA.d.mts → runtime-BwiWhqkI.d.cts} +2 -2
- package/dist/{runtime-DFG1CAWA.d.mts.map → runtime-BwiWhqkI.d.cts.map} +1 -1
- package/dist/{runtime-DjhB4Oxn.d.cts → runtime-Dx5F8-IL.d.mts} +2 -2
- package/dist/{runtime-DjhB4Oxn.d.cts.map → runtime-Dx5F8-IL.d.mts.map} +1 -1
- package/dist/{s3-FbPmbPft.cjs → s3-Bcvbg8io.cjs} +3 -3
- package/dist/{s3-FbPmbPft.cjs.map → s3-Bcvbg8io.cjs.map} +1 -1
- package/dist/{s3-B9UimcQe.mjs → s3-DK1ofU4f.mjs} +3 -3
- package/dist/{s3-B9UimcQe.mjs.map → s3-DK1ofU4f.mjs.map} +1 -1
- package/dist/{serverSetup-CeFkPTVz.cjs → serverSetup-ClU2iSeU.cjs} +7 -7
- package/dist/{serverSetup-CeFkPTVz.cjs.map → serverSetup-ClU2iSeU.cjs.map} +1 -1
- package/dist/{serverSetup-BH7_Zt0N.mjs → serverSetup-D68Otrp0.mjs} +7 -7
- package/dist/{serverSetup-BH7_Zt0N.mjs.map → serverSetup-D68Otrp0.mjs.map} +1 -1
- package/dist/{sniffer-B83jVMSA.cjs → sniffer-CFOmQQit.cjs} +7 -7
- package/dist/{sniffer-B83jVMSA.cjs.map → sniffer-CFOmQQit.cjs.map} +1 -1
- package/dist/{sniffer-8TlRbqb0.mjs → sniffer-CRF3eD_B.mjs} +7 -7
- package/dist/{sniffer-8TlRbqb0.mjs.map → sniffer-CRF3eD_B.mjs.map} +1 -1
- package/dist/{snsSubscriptions-BQcD_3UK.mjs → snsSubscriptions-CwA6Ceg2.mjs} +21 -12
- package/dist/snsSubscriptions-CwA6Ceg2.mjs.map +1 -0
- package/dist/{snsSubscriptions-B7uEpoJ2.cjs → snsSubscriptions-S_CMCXqI.cjs} +21 -12
- package/dist/snsSubscriptions-S_CMCXqI.cjs.map +1 -0
- package/dist/{sst-D0t-8yEl.cjs → sst-BgG7dJJu.cjs} +6 -6
- package/dist/{sst-D0t-8yEl.cjs.map → sst-BgG7dJJu.cjs.map} +1 -1
- package/dist/{sst-w90IUOX_.mjs → sst-CDnHFO3U.mjs} +6 -6
- package/dist/{sst-w90IUOX_.mjs.map → sst-CDnHFO3U.mjs.map} +1 -1
- package/dist/{stack-B5-pHmtX.mjs → stack-BXmLQf3K.mjs} +163 -27
- package/dist/stack-BXmLQf3K.mjs.map +1 -0
- package/dist/{stack-CBgOAZDP.cjs → stack-BtnflNSa.cjs} +161 -25
- package/dist/stack-BtnflNSa.cjs.map +1 -0
- package/dist/{stage-C6ogkiRu.mjs → stage-BbQidxxa.mjs} +5 -5
- package/dist/{stage-C6ogkiRu.mjs.map → stage-BbQidxxa.mjs.map} +1 -1
- package/dist/{stage-EnQ76HLW.cjs → stage-ssuPXLhP.cjs} +5 -5
- package/dist/{stage-EnQ76HLW.cjs.map → stage-ssuPXLhP.cjs.map} +1 -1
- package/dist/{stages-C8HQ9ozh.cjs → stages-CQwD2QxS.cjs} +2 -2
- package/dist/{stages-C8HQ9ozh.cjs.map → stages-CQwD2QxS.cjs.map} +1 -1
- package/dist/{stages-DnN6lwL4.mjs → stages-MA2sXnX4.mjs} +2 -2
- package/dist/{stages-DnN6lwL4.mjs.map → stages-MA2sXnX4.mjs.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-Cb58S1Yx.mjs → terminal-BEGE1AEV.mjs} +2 -2
- package/dist/{terminal-Cb58S1Yx.mjs.map → terminal-BEGE1AEV.mjs.map} +1 -1
- package/dist/{terminal-D9abUcq9.cjs → terminal-BecJpgA3.cjs} +2 -2
- package/dist/{terminal-D9abUcq9.cjs.map → terminal-BecJpgA3.cjs.map} +1 -1
- package/dist/{types-B-ohhDwy.d.mts → types-BvokH0ya.d.cts} +40 -1
- package/dist/types-BvokH0ya.d.cts.map +1 -0
- package/dist/{types-BAqI--_q.d.cts → types-DmLnGeii.d.mts} +39 -2
- package/dist/types-DmLnGeii.d.mts.map +1 -0
- package/dist/workspace/index.cjs +1 -1
- package/dist/workspace/index.d.cts +2 -2
- package/dist/workspace/index.d.mts +2 -2
- package/dist/workspace/index.mjs +1 -1
- package/dist/{workspace-K403npiD.cjs → workspace-DEmfa9RO.cjs} +74 -4
- package/dist/workspace-DEmfa9RO.cjs.map +1 -0
- package/dist/{workspace-BSGUH2DO.mjs → workspace-RgU7TBgg.mjs} +69 -5
- package/dist/workspace-RgU7TBgg.mjs.map +1 -0
- package/package.json +16 -16
- package/dist/clientTelemetry-C3GsvvLK.d.cts.map +0 -1
- package/dist/clientTelemetry-Dcp0jgkV.d.mts.map +0 -1
- package/dist/compose-BE2Fi1Bs.mjs.map +0 -1
- package/dist/compose-QHm47c8E.cjs.map +0 -1
- package/dist/deploy-KdBFBME1.mjs.map +0 -1
- package/dist/deploy-Pkvk9jIL.cjs.map +0 -1
- package/dist/snsSubscriptions-B7uEpoJ2.cjs.map +0 -1
- package/dist/snsSubscriptions-BQcD_3UK.mjs.map +0 -1
- package/dist/stack-B5-pHmtX.mjs.map +0 -1
- package/dist/stack-CBgOAZDP.cjs.map +0 -1
- package/dist/types-B-ohhDwy.d.mts.map +0 -1
- package/dist/types-BAqI--_q.d.cts.map +0 -1
- package/dist/workspace-BSGUH2DO.mjs.map +0 -1
- package/dist/workspace-K403npiD.cjs.map +0 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-BhDjJH2R.mjs";
|
|
2
2
|
import { t as GkmError } from "./errors-C9uIyIDt.mjs";
|
|
3
|
-
import { L as stageTag, M as imageRef, f as initStageSecrets, h as toEmbeddableSecrets } from "./credentials-
|
|
4
|
-
import { $n as runOutput, $t as imageLayout, An as envFor, At as backendsOf, Bt as assertEdgeHostsFree, Cn as applyNotifications, Dn as postgresStatements, Gt as removeEdgeRoutes, Ht as edgePorts, It as LEGACY_LOCAL_LOGIN, K as ensureDockerignore, Kn as dockerCompose, Kt as writeEdgeRoutes, Lt as ensurePostgresLogin, Mn as stageEnv, Ot as workerEnvKeys, Qt as fromBuildRoot, Rt as bucketClient, Sn as applyLifecycles, St as appEnvKeys, T as createComposeState, Tn as applyPostgres, Ut as edgeRef, Vt as assertEdgePorts, Wt as ensureEdge, _ as ensureEdgeDnsSecrets, c as replicaNames, d as withCaddyConfigs, f as withLogsPort, fn as BACKUPS_SERVICE, g as ensureEdgeAcmeKey, h as acmeDnsZone, hn as POSTGRES_SERVICE, i as composeStack, in as nextPrerenderManifest, jt as constructGlobs, k as recordRelease, l as stackDir, m as acmeDnsSecrets, n as LOOPBACK_SERVICES, r as composeProject, rn as findBuildRoot, s as envFile, t as LOG_ROTATION, vn as backupsRoleStatements, wn as applyPolicies, xn as applyBuckets, zt as pgClient } from "./stack-
|
|
5
|
-
import { B as LOGS_PORT, Dt as ComposeTlsFileMissing,
|
|
3
|
+
import { L as stageTag, M as imageRef, f as initStageSecrets, h as toEmbeddableSecrets, t as MissingCredential } from "./credentials-DbjLhvix.mjs";
|
|
4
|
+
import { $n as runOutput, $t as imageLayout, An as envFor, At as backendsOf, Bt as assertEdgeHostsFree, Cn as applyNotifications, Dn as postgresStatements, Gt as removeEdgeRoutes, Ht as edgePorts, It as LEGACY_LOCAL_LOGIN, K as ensureDockerignore, Kn as dockerCompose, Kt as writeEdgeRoutes, Lt as ensurePostgresLogin, Mn as stageEnv, Ot as workerEnvKeys, Qt as fromBuildRoot, Rt as bucketClient, Sn as applyLifecycles, St as appEnvKeys, T as createComposeState, Tn as applyPostgres, Ut as edgeRef, Vt as assertEdgePorts, Wt as ensureEdge, _ as ensureEdgeDnsSecrets, c as replicaNames, d as withCaddyConfigs, f as withLogsPort, fn as BACKUPS_SERVICE, g as ensureEdgeAcmeKey, h as acmeDnsZone, hn as POSTGRES_SERVICE, i as composeStack, in as nextPrerenderManifest, jt as constructGlobs, k as recordRelease, l as stackDir, m as acmeDnsSecrets, n as LOOPBACK_SERVICES, r as composeProject, rn as findBuildRoot, s as envFile, t as LOG_ROTATION, vn as backupsRoleStatements, wn as applyPolicies, xn as applyBuckets, zt as pgClient } from "./stack-BXmLQf3K.mjs";
|
|
5
|
+
import { B as LOGS_PORT, Dt as ComposeTlsFileMissing, It as SERVER_IPV4_KEY, L as resolveStageTelemetry, zt as isReservedStageKey } from "./workspace-RgU7TBgg.mjs";
|
|
6
6
|
import { t as defineTarget } from "./define-BfrNaY82.mjs";
|
|
7
|
-
import { C as REDIS_SERVICE, Ct as logsAccess, E as runsRedis, O as withRedisPassword, St as LogsPortTaken, X as usesTelemetry, d as loadLocalCredentials, g as withGeneratedSecrets, kt as withLogsLogin, mt as primaryPortKey, xt as LOGS_SERVICE } from "./credentials-
|
|
7
|
+
import { C as REDIS_SERVICE, Ct as logsAccess, E as runsRedis, O as withRedisPassword, St as LogsPortTaken, X as usesTelemetry, d as loadLocalCredentials, g as withGeneratedSecrets, kt as withLogsLogin, mt as primaryPortKey, xt as LOGS_SERVICE } from "./credentials-VLP_959f.mjs";
|
|
8
8
|
import { o as installedFrom } from "./drivers-BQRb3KsL.mjs";
|
|
9
9
|
import { i as discover } from "./discover-Dfmn6HQ7.mjs";
|
|
10
|
-
import { a as provisionedTopics, c as subscriptionResource, f as isLocalHost, g as serverAddressHint, h as requiredServerAddress, i as confirmPendingSubscriptions, l as topicConnection, n as SUBSCRIPTION_TYPE, o as recordedPushSubscriptions, s as subscriptionKey, t as PushSubscriptionsUnconfirmed, u as HostNotPointingAtServer, v as stackHosts, x as systemLookup, y as stageDns } from "./snsSubscriptions-
|
|
10
|
+
import { a as provisionedTopics, c as subscriptionResource, f as isLocalHost, g as serverAddressHint, h as requiredServerAddress, i as confirmPendingSubscriptions, l as topicConnection, n as SUBSCRIPTION_TYPE, o as recordedPushSubscriptions, s as subscriptionKey, t as PushSubscriptionsUnconfirmed, u as HostNotPointingAtServer, v as stackHosts, x as systemLookup, y as stageDns } from "./snsSubscriptions-CwA6Ceg2.mjs";
|
|
11
11
|
import { d as dnsResources, f as forgetDnsResource, i as currentActor, n as reportDatabaseRuns, p as recordDnsChanges, r as reportPlannedSeeds, s as DeployJournal, t as DeploySeedsFailed, u as dnsResourceKey } from "./seeds-Ccn0Ru2T.mjs";
|
|
12
12
|
import { f as plannedSeeds, o as SeedFailed, p as seedDatabases, u as migrateDatabases } from "./databases-CV22HzrI.mjs";
|
|
13
13
|
import { dirname, join, relative } from "node:path";
|
|
@@ -17,11 +17,13 @@ import { chmod, mkdir, readFile, readdir, rm, writeFile } from "node:fs/promises
|
|
|
17
17
|
import { hostname, userInfo } from "node:os";
|
|
18
18
|
import { spawn } from "node:child_process";
|
|
19
19
|
import { createConnection, createServer } from "node:net";
|
|
20
|
+
import { X509Certificate, createPrivateKey, generateKeyPairSync } from "node:crypto";
|
|
20
21
|
import { ensureLocalAuthority, ensureLocalCertificate, localCertificateNames, readLocalAuthority } from "@geekmidas/edge/certificates/local";
|
|
21
22
|
import { EDGE_PROJECT, EDGE_SERVICE } from "@geekmidas/edge/proxy/traefik";
|
|
22
23
|
import { providedKeyFor } from "@geekmidas/manifest";
|
|
23
24
|
import { stringify } from "yaml";
|
|
24
25
|
import { request } from "node:http";
|
|
26
|
+
import forge from "node-forge";
|
|
25
27
|
import { request as request$1 } from "node:https";
|
|
26
28
|
//#region src/compose/server.ts
|
|
27
29
|
/**
|
|
@@ -391,6 +393,151 @@ function pinImages(file, digests, images) {
|
|
|
391
393
|
});
|
|
392
394
|
}
|
|
393
395
|
//#endregion
|
|
396
|
+
//#region src/compose/originCertificate.ts
|
|
397
|
+
/**
|
|
398
|
+
* The origin certificate a CDN issues for the hosts it answers — what the
|
|
399
|
+
* server shows the CDN when it connects (`deploy.cdn.<stage>.certificate`,
|
|
400
|
+
* `'origin'` by default).
|
|
401
|
+
*
|
|
402
|
+
* A host behind Cloudflare's proxy resolves to Cloudflare, so Let's
|
|
403
|
+
* Encrypt's HTTP challenge no longer reliably reaches the server. Cloudflare
|
|
404
|
+
* issues certificates for its own origins instead: trusted by its proxy and
|
|
405
|
+
* by nothing else, valid up to 15 years, for whatever hosts the request
|
|
406
|
+
* names. So the deploy:
|
|
407
|
+
*
|
|
408
|
+
* - **makes the key here**, on the machine that runs the deploy, and sends
|
|
409
|
+
* Cloudflare's Origin CA only a signing request — the key is never sent;
|
|
410
|
+
* - **asks for exactly the hosts the CDN answers**, never a wildcard it did
|
|
411
|
+
* not declare: the edge is shared, and a certificate is served for every
|
|
412
|
+
* name it covers;
|
|
413
|
+
* - **keeps both in the stage's secrets**, under keys gkm reserves for the
|
|
414
|
+
* server (`GKM_SERVER_*`, never handed to an app), so every later deploy
|
|
415
|
+
* reuses them — and the server holds no Cloudflare token;
|
|
416
|
+
* - **asks again** only when the hosts it is for change, its key no longer
|
|
417
|
+
* matches, or it is within {@link ORIGIN_RENEW_BEFORE_DAYS} of expiring.
|
|
418
|
+
*
|
|
419
|
+
* The token is the deploy's own (`CLOUDFLARE_API_TOKEN`), which then needs
|
|
420
|
+
* `Zone → SSL and Certificates → Edit` beside its DNS permissions.
|
|
421
|
+
*/
|
|
422
|
+
/** The stage secret holding the origin certificate, PEM. */
|
|
423
|
+
const ORIGIN_CERT_KEY = "GKM_SERVER_ORIGIN_CERT";
|
|
424
|
+
/** The stage secret holding its private key, PEM. */
|
|
425
|
+
const ORIGIN_KEY_KEY = "GKM_SERVER_ORIGIN_KEY";
|
|
426
|
+
/** What is asked for: the Origin CA's longest, 15 years. */
|
|
427
|
+
const ORIGIN_VALIDITY_DAYS = 5475;
|
|
428
|
+
/** The names a certificate covers, lowercase: its DNS subject alternative names. */
|
|
429
|
+
function certificateHosts(cert) {
|
|
430
|
+
return new Set((cert.subjectAltName ?? "").split(",").map((entry) => entry.trim()).filter((entry) => entry.startsWith("DNS:")).map((entry) => entry.slice(4).toLowerCase()));
|
|
431
|
+
}
|
|
432
|
+
/**
|
|
433
|
+
* What is wrong with a kept certificate for `hosts` at `now`, or `undefined`
|
|
434
|
+
* when it serves them: it covers each by name, its key is its own, and it
|
|
435
|
+
* is not about to expire.
|
|
436
|
+
*/
|
|
437
|
+
function originCertificateProblem(kept, hosts, now = /* @__PURE__ */ new Date()) {
|
|
438
|
+
if (!kept?.cert || !kept.key) return "missing";
|
|
439
|
+
let cert;
|
|
440
|
+
try {
|
|
441
|
+
cert = new X509Certificate(kept.cert);
|
|
442
|
+
if (!cert.checkPrivateKey(createPrivateKey(kept.key))) return "key";
|
|
443
|
+
} catch {
|
|
444
|
+
return "unreadable";
|
|
445
|
+
}
|
|
446
|
+
const covered = certificateHosts(cert);
|
|
447
|
+
if (!hosts.every((host) => covered.has(host.toLowerCase()))) return "hosts";
|
|
448
|
+
const renewAt = new Date(cert.validTo).getTime() - 2592e6;
|
|
449
|
+
if (now.getTime() >= renewAt) return "expiring";
|
|
450
|
+
}
|
|
451
|
+
/**
|
|
452
|
+
* A new private key and a signing request for `hosts` — RSA, which every
|
|
453
|
+
* proxy serves. The key stays here; only the request is sent.
|
|
454
|
+
*/
|
|
455
|
+
function originSigningRequest(hosts) {
|
|
456
|
+
const { privateKey, publicKey } = generateKeyPairSync("rsa", { modulusLength: 2048 });
|
|
457
|
+
const key = privateKey.export({
|
|
458
|
+
type: "pkcs8",
|
|
459
|
+
format: "pem"
|
|
460
|
+
}).toString();
|
|
461
|
+
const csr = forge.pki.createCertificationRequest();
|
|
462
|
+
csr.publicKey = forge.pki.publicKeyFromPem(publicKey.export({
|
|
463
|
+
type: "spki",
|
|
464
|
+
format: "pem"
|
|
465
|
+
}).toString());
|
|
466
|
+
csr.setSubject([{
|
|
467
|
+
name: "commonName",
|
|
468
|
+
value: hosts[0]
|
|
469
|
+
}]);
|
|
470
|
+
csr.setAttributes([{
|
|
471
|
+
name: "extensionRequest",
|
|
472
|
+
extensions: [{
|
|
473
|
+
name: "subjectAltName",
|
|
474
|
+
altNames: hosts.map((value) => ({
|
|
475
|
+
type: 2,
|
|
476
|
+
value
|
|
477
|
+
}))
|
|
478
|
+
}]
|
|
479
|
+
}]);
|
|
480
|
+
csr.sign(forge.pki.privateKeyFromPem(key), forge.md.sha256.create());
|
|
481
|
+
return {
|
|
482
|
+
csr: forge.pki.certificationRequestToPem(csr),
|
|
483
|
+
key
|
|
484
|
+
};
|
|
485
|
+
}
|
|
486
|
+
const REASONS = {
|
|
487
|
+
missing: "there is none yet",
|
|
488
|
+
unreadable: "the one kept cannot be read",
|
|
489
|
+
key: "the one kept does not match its key",
|
|
490
|
+
hosts: "the hosts it is for changed",
|
|
491
|
+
expiring: `the one kept expires within 30 days`
|
|
492
|
+
};
|
|
493
|
+
/**
|
|
494
|
+
* The stage's origin certificate for `hosts`: the one kept, while it serves
|
|
495
|
+
* them, and otherwise a new one from Cloudflare's Origin CA, kept before it
|
|
496
|
+
* is returned. A dry run issues nothing, and says it would.
|
|
497
|
+
*
|
|
498
|
+
* @throws {MissingCredential} when one must be issued and there is no token
|
|
499
|
+
*/
|
|
500
|
+
async function ensureOriginCertificate(input) {
|
|
501
|
+
const log = input.log ?? ((line) => console.log(line));
|
|
502
|
+
const hosts = [...new Set(input.hosts.map((h) => h.toLowerCase()))].sort();
|
|
503
|
+
const kept = {
|
|
504
|
+
cert: input.custom?.[ORIGIN_CERT_KEY],
|
|
505
|
+
key: input.custom?.[ORIGIN_KEY_KEY]
|
|
506
|
+
};
|
|
507
|
+
const problem = originCertificateProblem(kept, hosts, input.now);
|
|
508
|
+
if (!problem) return kept;
|
|
509
|
+
const why = REASONS[problem];
|
|
510
|
+
if (input.dryRun) {
|
|
511
|
+
log(` 🔐 would have Cloudflare issue an origin certificate for ${hosts.join(", ")} — ${why}`);
|
|
512
|
+
return problem === "expiring" || problem === "hosts" ? kept : void 0;
|
|
513
|
+
}
|
|
514
|
+
const credential = await input.credentials.get({ kind: "cloudflare" });
|
|
515
|
+
if (!credential?.token) throw new MissingCredential("cloudflare", `${input.stage}'s origin certificate`);
|
|
516
|
+
log(` 🔐 Cloudflare issues an origin certificate for ${hosts.join(", ")} — ${why}`);
|
|
517
|
+
const issuer = await (input.issuer ?? cloudflareIssuer)(credential.token);
|
|
518
|
+
const { csr, key } = originSigningRequest(hosts);
|
|
519
|
+
const { certificate } = await issuer.createOriginCertificate(input.zone, {
|
|
520
|
+
csr,
|
|
521
|
+
hostnames: hosts,
|
|
522
|
+
days: ORIGIN_VALIDITY_DAYS,
|
|
523
|
+
type: "origin-rsa"
|
|
524
|
+
});
|
|
525
|
+
const issued = {
|
|
526
|
+
cert: certificate,
|
|
527
|
+
key
|
|
528
|
+
};
|
|
529
|
+
await input.keep({
|
|
530
|
+
[ORIGIN_CERT_KEY]: issued.cert,
|
|
531
|
+
[ORIGIN_KEY_KEY]: key
|
|
532
|
+
});
|
|
533
|
+
return issued;
|
|
534
|
+
}
|
|
535
|
+
/** Cloudflare's own Origin CA, through the deploy's token. */
|
|
536
|
+
async function cloudflareIssuer(token) {
|
|
537
|
+
const { CloudflareApi } = await import("@geekmidas/edge/dns/cloudflare");
|
|
538
|
+
return new CloudflareApi({ credential: { token } });
|
|
539
|
+
}
|
|
540
|
+
//#endregion
|
|
394
541
|
//#region src/compose/secrets.ts
|
|
395
542
|
function deployedStackSecrets(workspace, stage, stored, manifest) {
|
|
396
543
|
const withSeed = withGeneratedSecrets(stored ?? initStageSecrets(stage), manifest);
|
|
@@ -1118,7 +1265,7 @@ async function validateCompose(ctx, deps, options = {}) {
|
|
|
1118
1265
|
}
|
|
1119
1266
|
if (!push && !check && !stack.local) {
|
|
1120
1267
|
requiredServerAddress(stage, workspace.domains?.[stage], secrets?.custom);
|
|
1121
|
-
if (stack.proxy === "traefik" && stack
|
|
1268
|
+
if (stack.proxy === "traefik" && dnsChallenged(stack)) {
|
|
1122
1269
|
const zone = acmeDnsZone(workspace, stage);
|
|
1123
1270
|
if (zone) acmeDnsSecrets(zone, stage, secrets?.custom);
|
|
1124
1271
|
}
|
|
@@ -1196,6 +1343,23 @@ async function readyCompose(ctx, run, deps) {
|
|
|
1196
1343
|
...caFile ? [caFile] : []
|
|
1197
1344
|
]) if (!existsSync(file)) throw new ComposeTlsFileMissing(ctx.stage, file);
|
|
1198
1345
|
}
|
|
1346
|
+
if (stack.cdn?.certificate === "origin" && !buildsOnly(run)) {
|
|
1347
|
+
const issued = await ensureOriginCertificate({
|
|
1348
|
+
stage: ctx.stage,
|
|
1349
|
+
zone: stack.cdn.zone,
|
|
1350
|
+
hosts: stack.cdn.hosts,
|
|
1351
|
+
custom: run.secrets?.custom,
|
|
1352
|
+
credentials: ctx.credentials,
|
|
1353
|
+
keep: (values) => keepStageSecrets(ctx, run, values),
|
|
1354
|
+
...ctx.dryRun ? { dryRun: true } : {},
|
|
1355
|
+
log: (line) => ctx.logger.info(line),
|
|
1356
|
+
...deps.originIssuer ? { issuer: deps.originIssuer } : {}
|
|
1357
|
+
});
|
|
1358
|
+
if (issued) {
|
|
1359
|
+
ctx.secrets.mask(issued.key);
|
|
1360
|
+
run.originCertificate = issued;
|
|
1361
|
+
}
|
|
1362
|
+
}
|
|
1199
1363
|
if (stack.local) {
|
|
1200
1364
|
await edgeHostsFree(ctx, run, deps);
|
|
1201
1365
|
return;
|
|
@@ -1203,7 +1367,7 @@ async function readyCompose(ctx, run, deps) {
|
|
|
1203
1367
|
if (run.server && !ctx.dryRun && !run.push) await deps.server.check(run.server);
|
|
1204
1368
|
await edgeHostsFree(ctx, run, deps);
|
|
1205
1369
|
await logsPortOnServer(ctx, run, deps);
|
|
1206
|
-
const prune = await stageHostsDns(ctx, deps, stackHosts(stack).filter((host) => !isLocalHost(host)), run.secrets?.custom, stack.wildcard?.host);
|
|
1370
|
+
const prune = await stageHostsDns(ctx, deps, stackHosts(stack).filter((host) => !isLocalHost(host)), run.secrets?.custom, stack.wildcard?.host, stack.cdn?.hosts);
|
|
1207
1371
|
if (prune) run.pruneDns = prune;
|
|
1208
1372
|
}
|
|
1209
1373
|
/**
|
|
@@ -1323,7 +1487,7 @@ function recordedForStack(recorded, providerDns) {
|
|
|
1323
1487
|
const asked = new Set(providerDns ?? []);
|
|
1324
1488
|
return recorded.filter((record) => record.source !== "provider" || providerDns !== void 0 && !asked.has(dnsResourceKey(record.fqdn, record.type)));
|
|
1325
1489
|
}
|
|
1326
|
-
async function stageHostsDns(ctx, deps, hosts, custom, wildcard) {
|
|
1490
|
+
async function stageHostsDns(ctx, deps, hosts, custom, wildcard, proxied) {
|
|
1327
1491
|
const { workspace, stage } = ctx;
|
|
1328
1492
|
const server = requiredServerAddress(stage, workspace.domains?.[stage], custom);
|
|
1329
1493
|
if (hosts.length === 0) return;
|
|
@@ -1346,6 +1510,7 @@ async function stageHostsDns(ctx, deps, hosts, custom, wildcard) {
|
|
|
1346
1510
|
dns: workspace.dns,
|
|
1347
1511
|
recorded: recordedForStack(dnsResources(stored?.resources ?? {}), ctx.providerDns),
|
|
1348
1512
|
...wildcard ? { wildcard } : {},
|
|
1513
|
+
...proxied?.length ? { proxied } : {},
|
|
1349
1514
|
credentials: ctx.credentials,
|
|
1350
1515
|
log,
|
|
1351
1516
|
lookup: deps.lookup ?? systemLookup,
|
|
@@ -1441,7 +1606,7 @@ function withPinnedImages(stack, file, digests) {
|
|
|
1441
1606
|
*/
|
|
1442
1607
|
async function planCompose(ctx, run) {
|
|
1443
1608
|
if (run.generated.length > 0) ctx.logger.info(`🔑 "${ctx.stage}" has no ${run.generated.join(", ")} yet; this dry run used values it did not keep.`);
|
|
1444
|
-
run.files = await writeStack(ctx.cwd, run.dir, run.stack);
|
|
1609
|
+
run.files = await writeStack(ctx.cwd, run.dir, run.stack, run.originCertificate);
|
|
1445
1610
|
printPlan(ctx, run);
|
|
1446
1611
|
if (!run.push && run.stack.infra.includes("postgres")) reportPlannedSeeds((await plannedSeeds({
|
|
1447
1612
|
root: ctx.workspace.root,
|
|
@@ -1507,6 +1672,47 @@ async function planCompose(ctx, run) {
|
|
|
1507
1672
|
});
|
|
1508
1673
|
}
|
|
1509
1674
|
/**
|
|
1675
|
+
* Keys written into the stage's secrets now, on top of what the store holds
|
|
1676
|
+
* — not at the end of the run, so a value the CDN hands over once is kept
|
|
1677
|
+
* the moment it exists — and into the run's copy, so a later write of it
|
|
1678
|
+
* keeps them too.
|
|
1679
|
+
*/
|
|
1680
|
+
async function keepStageSecrets(ctx, run, values) {
|
|
1681
|
+
const stored = await ctx.secrets.read() ?? run.secrets;
|
|
1682
|
+
if (!stored) throw new StageSecretsMissingForKeep(ctx.stage);
|
|
1683
|
+
await ctx.secrets.write({
|
|
1684
|
+
...stored,
|
|
1685
|
+
updatedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
1686
|
+
custom: {
|
|
1687
|
+
...stored.custom,
|
|
1688
|
+
...values
|
|
1689
|
+
}
|
|
1690
|
+
});
|
|
1691
|
+
if (run.secrets) run.secrets = {
|
|
1692
|
+
...run.secrets,
|
|
1693
|
+
custom: {
|
|
1694
|
+
...run.secrets.custom,
|
|
1695
|
+
...values
|
|
1696
|
+
}
|
|
1697
|
+
};
|
|
1698
|
+
}
|
|
1699
|
+
/** A deployed stage with no secrets to keep a value in. */
|
|
1700
|
+
var StageSecretsMissingForKeep = class extends GkmError {
|
|
1701
|
+
stage;
|
|
1702
|
+
constructor(stage) {
|
|
1703
|
+
super(`'${stage}' has no secrets yet to keep its CDN's origin certificate in. Set them up first: gkm secrets:init --stage ${stage}.`);
|
|
1704
|
+
this.stage = stage;
|
|
1705
|
+
this.name = "StageSecretsMissingForKeep";
|
|
1706
|
+
}
|
|
1707
|
+
};
|
|
1708
|
+
/**
|
|
1709
|
+
* Whether the shared edge gets any of the stack's certificates over the DNS
|
|
1710
|
+
* challenge: a wildcard site's, or the hosts a CDN answers.
|
|
1711
|
+
*/
|
|
1712
|
+
function dnsChallenged(stack) {
|
|
1713
|
+
return stack.wildcard?.tls === "dns" || stack.cdn?.certificate === "dns";
|
|
1714
|
+
}
|
|
1715
|
+
/**
|
|
1510
1716
|
* The shared edge's key for the stage's wildcard certificate, through the
|
|
1511
1717
|
* DNS provider holding the stage's domain — before the stack's routes ask
|
|
1512
1718
|
* for the certificate. Route 53's is issued through IAM, allowed the DNS
|
|
@@ -1586,7 +1792,7 @@ async function provisionCompose(ctx, run, deps) {
|
|
|
1586
1792
|
});
|
|
1587
1793
|
if (run.topicSubscriptions) await subscribeTopics(ctx, run, deps);
|
|
1588
1794
|
const { stack } = run;
|
|
1589
|
-
run.files = await writeStack(ctx.cwd, run.dir, stack);
|
|
1795
|
+
run.files = await writeStack(ctx.cwd, run.dir, stack, run.originCertificate);
|
|
1590
1796
|
printPlan(ctx, run);
|
|
1591
1797
|
if (stack.proxy === "traefik") {
|
|
1592
1798
|
if (ownCaddy) {
|
|
@@ -1612,7 +1818,7 @@ async function provisionCompose(ctx, run, deps) {
|
|
|
1612
1818
|
id: `${EDGE_PROJECT}/${EDGE_SERVICE}`,
|
|
1613
1819
|
via: "found"
|
|
1614
1820
|
});
|
|
1615
|
-
if (stack
|
|
1821
|
+
if (dnsChallenged(stack)) await edgeAcmeKey(ctx, run, deps);
|
|
1616
1822
|
}
|
|
1617
1823
|
if (stack.infra.length > 0) {
|
|
1618
1824
|
ctx.logger.info(`\n🗄️ Starting ${stack.infra.join(", ")}…`);
|
|
@@ -1804,7 +2010,7 @@ async function buildCompose(ctx, run, deps) {
|
|
|
1804
2010
|
];
|
|
1805
2011
|
const apps = images.map((image) => image.app);
|
|
1806
2012
|
if (buildsOnly(run)) {
|
|
1807
|
-
run.files = await writeStack(ctx.cwd, run.dir, stack);
|
|
2013
|
+
run.files = await writeStack(ctx.cwd, run.dir, stack, run.originCertificate);
|
|
1808
2014
|
printPlan(ctx, run);
|
|
1809
2015
|
}
|
|
1810
2016
|
const prerendered = prerenderedHere(run);
|
|
@@ -1870,7 +2076,7 @@ async function releaseCompose(ctx, run, deps) {
|
|
|
1870
2076
|
...ref.output ? { output: ref.output } : {}
|
|
1871
2077
|
});
|
|
1872
2078
|
if (stack.proxy === "traefik" && stack.traefik) {
|
|
1873
|
-
const written = await writeEdgeRoutes(deps.docker, edge, stack.project, stack.traefik, await edgeCertificate(run.dir, stack));
|
|
2079
|
+
const written = await writeEdgeRoutes(deps.docker, edge, stack.project, stack.traefik, await edgeCertificate(run.dir, stack), run.originCertificate);
|
|
1874
2080
|
ctx.logger.info(`🌐 Registered ${stack.routes.length} route(s) with ${EDGE_PROJECT}: ${written.at(-1)}`);
|
|
1875
2081
|
} else if (!stack.local || existsSync(edgeFile(run))) await removeEdgeRoutes(deps.docker, edge, stack.project);
|
|
1876
2082
|
const prerendered = prerenderedHere(run);
|
|
@@ -2450,7 +2656,7 @@ async function localEdgeCertificate(dir, stack, authority) {
|
|
|
2450
2656
|
};
|
|
2451
2657
|
}
|
|
2452
2658
|
/** Write the stack's files: owner-only, since the env files hold secrets. */
|
|
2453
|
-
async function writeStack(root, dir, stack) {
|
|
2659
|
+
async function writeStack(root, dir, stack, origin) {
|
|
2454
2660
|
await mkdir(dir, {
|
|
2455
2661
|
recursive: true,
|
|
2456
2662
|
mode: 448
|
|
@@ -2465,11 +2671,13 @@ async function writeStack(root, dir, stack) {
|
|
|
2465
2671
|
};
|
|
2466
2672
|
const issued = await edgeCertificate(dir, stack);
|
|
2467
2673
|
const tls = stack.proxy === "caddy" ? issued : void 0;
|
|
2674
|
+
const originTls = stack.proxy === "caddy" ? origin : void 0;
|
|
2468
2675
|
const compose = stack.caddyfile !== void 0 ? withCaddyConfigs(stack.compose, {
|
|
2469
2676
|
caddyfile: stack.caddyfile,
|
|
2470
|
-
...tls ? { tls } : {}
|
|
2677
|
+
...tls ? { tls } : {},
|
|
2678
|
+
...originTls ? { origin: originTls } : {}
|
|
2471
2679
|
}) : stack.compose;
|
|
2472
|
-
await write(join(dir, "docker-compose.yml"), composeYaml(stack, compose), tls ? 384 : 420);
|
|
2680
|
+
await write(join(dir, "docker-compose.yml"), composeYaml(stack, compose), tls || originTls ? 384 : 420);
|
|
2473
2681
|
if (stack.caddyfile !== void 0) {
|
|
2474
2682
|
await write(join(dir, "Caddyfile"), stack.caddyfile);
|
|
2475
2683
|
await rm(join(dir, "traefik.yml"), { force: true });
|
|
@@ -2644,4 +2852,4 @@ function composeTarget(options = {}) {
|
|
|
2644
2852
|
//#endregion
|
|
2645
2853
|
export { stackOverrideFile as a, deployedStackSecrets as c, composeServer as d, dockerHost as f, ComposePushNeedsBuild as i, parseDigests as l, sshTarget as m, compose_exports as n, StartupCheckNeedsBuild as o, sshAccess as p, ComposePinNeedsPull as r, assertCheckable as s, composeTarget as t, pinnedRef as u };
|
|
2646
2854
|
|
|
2647
|
-
//# sourceMappingURL=compose-
|
|
2855
|
+
//# sourceMappingURL=compose-DUOETDhc.mjs.map
|