@wildo-ai/platform-config-lib 1.1.10 → 1.1.12

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.
Files changed (396) hide show
  1. package/dist/esm/_unimplemented/soft-warn.d.ts +24 -49
  2. package/dist/esm/_unimplemented/soft-warn.d.ts.map +1 -1
  3. package/dist/esm/_unimplemented/soft-warn.js +24 -49
  4. package/dist/esm/_unimplemented/soft-warn.js.map +1 -1
  5. package/dist/esm/blueprint/anchored-region.d.ts +83 -0
  6. package/dist/esm/blueprint/anchored-region.d.ts.map +1 -0
  7. package/dist/esm/blueprint/anchored-region.js +263 -0
  8. package/dist/esm/blueprint/anchored-region.js.map +1 -0
  9. package/dist/esm/blueprint/blueprint.schemas.d.ts +600 -0
  10. package/dist/esm/blueprint/blueprint.schemas.d.ts.map +1 -0
  11. package/dist/esm/blueprint/blueprint.schemas.js +638 -0
  12. package/dist/esm/blueprint/blueprint.schemas.js.map +1 -0
  13. package/dist/esm/bootstrap/application-backend-env.contracts.js.map +1 -1
  14. package/dist/esm/bootstrap/application-creation-verification-env.contracts.d.ts.map +1 -1
  15. package/dist/esm/bootstrap/application-creation-verification-env.contracts.js.map +1 -1
  16. package/dist/esm/bootstrap/bootstrap-planner.js.map +1 -1
  17. package/dist/esm/bootstrap/bootstrap.contracts.d.ts +13 -1
  18. package/dist/esm/bootstrap/bootstrap.contracts.d.ts.map +1 -1
  19. package/dist/esm/bootstrap/bootstrap.contracts.js +6 -0
  20. package/dist/esm/bootstrap/bootstrap.contracts.js.map +1 -1
  21. package/dist/esm/bootstrap/bootstrap.schemas.d.ts +29 -4
  22. package/dist/esm/bootstrap/bootstrap.schemas.d.ts.map +1 -1
  23. package/dist/esm/bootstrap/bootstrap.schemas.js +29 -4
  24. package/dist/esm/bootstrap/bootstrap.schemas.js.map +1 -1
  25. package/dist/esm/bootstrap/platform-runtime-env.contracts.d.ts +131 -2
  26. package/dist/esm/bootstrap/platform-runtime-env.contracts.d.ts.map +1 -1
  27. package/dist/esm/bootstrap/platform-runtime-env.contracts.js +139 -2
  28. package/dist/esm/bootstrap/platform-runtime-env.contracts.js.map +1 -1
  29. package/dist/esm/bootstrap/platform-store-preconnect.d.ts +21 -0
  30. package/dist/esm/bootstrap/platform-store-preconnect.d.ts.map +1 -1
  31. package/dist/esm/bootstrap/platform-store-preconnect.js +25 -0
  32. package/dist/esm/bootstrap/platform-store-preconnect.js.map +1 -1
  33. package/dist/esm/bootstrap/postgresql-owed-grants.contracts.d.ts +80 -0
  34. package/dist/esm/bootstrap/postgresql-owed-grants.contracts.d.ts.map +1 -0
  35. package/dist/esm/bootstrap/postgresql-owed-grants.contracts.js +81 -0
  36. package/dist/esm/bootstrap/postgresql-owed-grants.contracts.js.map +1 -0
  37. package/dist/esm/bootstrap/runtime-backing-service-access.d.ts +41 -9
  38. package/dist/esm/bootstrap/runtime-backing-service-access.d.ts.map +1 -1
  39. package/dist/esm/bootstrap/runtime-backing-service-access.js +77 -28
  40. package/dist/esm/bootstrap/runtime-backing-service-access.js.map +1 -1
  41. package/dist/esm/bootstrap/runtime-network-policy.d.ts +117 -12
  42. package/dist/esm/bootstrap/runtime-network-policy.d.ts.map +1 -1
  43. package/dist/esm/bootstrap/runtime-network-policy.js +222 -23
  44. package/dist/esm/bootstrap/runtime-network-policy.js.map +1 -1
  45. package/dist/esm/bootstrap/runtime-network-topology.d.ts +31 -4
  46. package/dist/esm/bootstrap/runtime-network-topology.d.ts.map +1 -1
  47. package/dist/esm/bootstrap/runtime-network-topology.js +43 -2
  48. package/dist/esm/bootstrap/runtime-network-topology.js.map +1 -1
  49. package/dist/esm/bootstrap/runtime-platform-access.js.map +1 -1
  50. package/dist/esm/bootstrap/runtime-principal.contracts.d.ts +40 -2
  51. package/dist/esm/bootstrap/runtime-principal.contracts.d.ts.map +1 -1
  52. package/dist/esm/bootstrap/runtime-principal.contracts.js +66 -3
  53. package/dist/esm/bootstrap/runtime-principal.contracts.js.map +1 -1
  54. package/dist/esm/bootstrap/runtime-response-integrity.d.ts +249 -0
  55. package/dist/esm/bootstrap/runtime-response-integrity.d.ts.map +1 -0
  56. package/dist/esm/bootstrap/runtime-response-integrity.js +353 -0
  57. package/dist/esm/bootstrap/runtime-response-integrity.js.map +1 -0
  58. package/dist/esm/bootstrap/runtime-secret-env.contracts.d.ts +32 -0
  59. package/dist/esm/bootstrap/runtime-secret-env.contracts.d.ts.map +1 -0
  60. package/dist/esm/bootstrap/runtime-secret-env.contracts.js +43 -0
  61. package/dist/esm/bootstrap/runtime-secret-env.contracts.js.map +1 -0
  62. package/dist/esm/bootstrap/runtime-topology.contracts.js.map +1 -1
  63. package/dist/esm/bootstrap/wildo-owner-organization.contracts.js.map +1 -1
  64. package/dist/esm/canonical-json/rfc8785-canonical-json.d.ts +51 -0
  65. package/dist/esm/canonical-json/rfc8785-canonical-json.d.ts.map +1 -0
  66. package/dist/esm/canonical-json/rfc8785-canonical-json.js +231 -0
  67. package/dist/esm/canonical-json/rfc8785-canonical-json.js.map +1 -0
  68. package/dist/esm/config-authoring.entry.js.map +1 -1
  69. package/dist/esm/credentials/credential-generator.service.d.ts.map +1 -1
  70. package/dist/esm/credentials/credential-generator.service.js.map +1 -1
  71. package/dist/esm/index.d.ts +20 -1
  72. package/dist/esm/index.d.ts.map +1 -1
  73. package/dist/esm/index.js +20 -1
  74. package/dist/esm/index.js.map +1 -1
  75. package/dist/esm/key-management/application-legacy-envelope-key.contracts.d.ts +119 -0
  76. package/dist/esm/key-management/application-legacy-envelope-key.contracts.d.ts.map +1 -0
  77. package/dist/esm/key-management/application-legacy-envelope-key.contracts.js +109 -0
  78. package/dist/esm/key-management/application-legacy-envelope-key.contracts.js.map +1 -0
  79. package/dist/esm/key-management/application-signing-key-rotation.contracts.d.ts +182 -0
  80. package/dist/esm/key-management/application-signing-key-rotation.contracts.d.ts.map +1 -0
  81. package/dist/esm/key-management/application-signing-key-rotation.contracts.js +145 -0
  82. package/dist/esm/key-management/application-signing-key-rotation.contracts.js.map +1 -0
  83. package/dist/esm/key-management/approval-seal-manifested-copy.d.ts +156 -0
  84. package/dist/esm/key-management/approval-seal-manifested-copy.d.ts.map +1 -0
  85. package/dist/esm/key-management/approval-seal-manifested-copy.js +617 -0
  86. package/dist/esm/key-management/approval-seal-manifested-copy.js.map +1 -0
  87. package/dist/esm/key-management/approval-seal-verifier.d.ts +278 -0
  88. package/dist/esm/key-management/approval-seal-verifier.d.ts.map +1 -0
  89. package/dist/esm/key-management/approval-seal-verifier.js +355 -0
  90. package/dist/esm/key-management/approval-seal-verifier.js.map +1 -0
  91. package/dist/esm/key-management/approval-seal.contracts.d.ts +128 -0
  92. package/dist/esm/key-management/approval-seal.contracts.d.ts.map +1 -0
  93. package/dist/esm/key-management/approval-seal.contracts.js +135 -0
  94. package/dist/esm/key-management/approval-seal.contracts.js.map +1 -0
  95. package/dist/esm/key-management/data-key.contracts.d.ts +106 -0
  96. package/dist/esm/key-management/data-key.contracts.d.ts.map +1 -0
  97. package/dist/esm/key-management/data-key.contracts.js +54 -0
  98. package/dist/esm/key-management/data-key.contracts.js.map +1 -0
  99. package/dist/esm/key-management/es256-jws.d.ts +60 -0
  100. package/dist/esm/key-management/es256-jws.d.ts.map +1 -0
  101. package/dist/esm/key-management/es256-jws.js +135 -0
  102. package/dist/esm/key-management/es256-jws.js.map +1 -0
  103. package/dist/esm/key-management/key-provider.spi.d.ts +158 -0
  104. package/dist/esm/key-management/key-provider.spi.d.ts.map +1 -0
  105. package/dist/esm/key-management/key-provider.spi.js +38 -0
  106. package/dist/esm/key-management/key-provider.spi.js.map +1 -0
  107. package/dist/esm/key-management/keyring-rotation.contracts.d.ts +83 -0
  108. package/dist/esm/key-management/keyring-rotation.contracts.d.ts.map +1 -0
  109. package/dist/esm/key-management/keyring-rotation.contracts.js +101 -0
  110. package/dist/esm/key-management/keyring-rotation.contracts.js.map +1 -0
  111. package/dist/esm/key-management/keyring-status.contracts.d.ts +59 -0
  112. package/dist/esm/key-management/keyring-status.contracts.d.ts.map +1 -0
  113. package/dist/esm/key-management/keyring-status.contracts.js +45 -0
  114. package/dist/esm/key-management/keyring-status.contracts.js.map +1 -0
  115. package/dist/esm/key-management/pdf-incremental-update.d.ts +158 -0
  116. package/dist/esm/key-management/pdf-incremental-update.d.ts.map +1 -0
  117. package/dist/esm/key-management/pdf-incremental-update.js +730 -0
  118. package/dist/esm/key-management/pdf-incremental-update.js.map +1 -0
  119. package/dist/esm/key-management/pdf-truetype-font.d.ts +35 -0
  120. package/dist/esm/key-management/pdf-truetype-font.d.ts.map +1 -0
  121. package/dist/esm/key-management/pdf-truetype-font.js +152 -0
  122. package/dist/esm/key-management/pdf-truetype-font.js.map +1 -0
  123. package/dist/esm/key-management/qr-code.d.ts +38 -0
  124. package/dist/esm/key-management/qr-code.d.ts.map +1 -0
  125. package/dist/esm/key-management/qr-code.js +325 -0
  126. package/dist/esm/key-management/qr-code.js.map +1 -0
  127. package/dist/esm/key-management/signature-request.contracts.d.ts +91 -0
  128. package/dist/esm/key-management/signature-request.contracts.d.ts.map +1 -0
  129. package/dist/esm/key-management/signature-request.contracts.js +96 -0
  130. package/dist/esm/key-management/signature-request.contracts.js.map +1 -0
  131. package/dist/esm/key-management/signing-log-export.contracts.d.ts +215 -0
  132. package/dist/esm/key-management/signing-log-export.contracts.d.ts.map +1 -0
  133. package/dist/esm/key-management/signing-log-export.contracts.js +268 -0
  134. package/dist/esm/key-management/signing-log-export.contracts.js.map +1 -0
  135. package/dist/esm/key-management/vault-custody.contracts.d.ts +98 -0
  136. package/dist/esm/key-management/vault-custody.contracts.d.ts.map +1 -0
  137. package/dist/esm/key-management/vault-custody.contracts.js +154 -0
  138. package/dist/esm/key-management/vault-custody.contracts.js.map +1 -0
  139. package/dist/esm/lockfile/build-parallelism.d.ts.map +1 -1
  140. package/dist/esm/lockfile/build-parallelism.js.map +1 -1
  141. package/dist/esm/lockfile/canonical-json.d.ts +1 -1
  142. package/dist/esm/lockfile/canonical-json.d.ts.map +1 -1
  143. package/dist/esm/lockfile/canonical-json.js +1 -1
  144. package/dist/esm/lockfile/canonical-json.js.map +1 -1
  145. package/dist/esm/lockfile/file-lock-hold.d.ts.map +1 -1
  146. package/dist/esm/lockfile/file-lock-hold.js +2 -1
  147. package/dist/esm/lockfile/file-lock-hold.js.map +1 -1
  148. package/dist/esm/lockfile/lockfile-io.d.ts +13 -17
  149. package/dist/esm/lockfile/lockfile-io.d.ts.map +1 -1
  150. package/dist/esm/lockfile/lockfile-io.js +29 -30
  151. package/dist/esm/lockfile/lockfile-io.js.map +1 -1
  152. package/dist/esm/lockfile/materialize-infra-section.d.ts +22 -20
  153. package/dist/esm/lockfile/materialize-infra-section.d.ts.map +1 -1
  154. package/dist/esm/lockfile/materialize-infra-section.js +13 -14
  155. package/dist/esm/lockfile/materialize-infra-section.js.map +1 -1
  156. package/dist/esm/lockfile/wildo-saas-lock.shared.schemas.d.ts +27 -249
  157. package/dist/esm/lockfile/wildo-saas-lock.shared.schemas.d.ts.map +1 -1
  158. package/dist/esm/lockfile/wildo-saas-lock.shared.schemas.js +28 -3
  159. package/dist/esm/lockfile/wildo-saas-lock.shared.schemas.js.map +1 -1
  160. package/dist/esm/pnpm-settings/application-pnpm-settings.d.ts +146 -0
  161. package/dist/esm/pnpm-settings/application-pnpm-settings.d.ts.map +1 -0
  162. package/dist/esm/pnpm-settings/application-pnpm-settings.js +573 -0
  163. package/dist/esm/pnpm-settings/application-pnpm-settings.js.map +1 -0
  164. package/dist/esm/project-config/application-public-pricing-catalog.loader.d.ts.map +1 -1
  165. package/dist/esm/project-config/application-public-pricing-catalog.loader.js +22 -3
  166. package/dist/esm/project-config/application-public-pricing-catalog.loader.js.map +1 -1
  167. package/dist/esm/project-config/application-served-public-documents.loader.d.ts +26 -0
  168. package/dist/esm/project-config/application-served-public-documents.loader.d.ts.map +1 -0
  169. package/dist/esm/project-config/application-served-public-documents.loader.js +86 -0
  170. package/dist/esm/project-config/application-served-public-documents.loader.js.map +1 -0
  171. package/dist/esm/project-config/backend-compliance-section.reader.d.ts +35 -0
  172. package/dist/esm/project-config/backend-compliance-section.reader.d.ts.map +1 -0
  173. package/dist/esm/project-config/backend-compliance-section.reader.js +123 -0
  174. package/dist/esm/project-config/backend-compliance-section.reader.js.map +1 -0
  175. package/dist/esm/project-config/backend-compliance-section.worker.d.ts +20 -0
  176. package/dist/esm/project-config/backend-compliance-section.worker.d.ts.map +1 -0
  177. package/dist/esm/project-config/backend-compliance-section.worker.js +78 -0
  178. package/dist/esm/project-config/backend-compliance-section.worker.js.map +1 -0
  179. package/dist/esm/project-config/config-module-resolution.d.ts +32 -0
  180. package/dist/esm/project-config/config-module-resolution.d.ts.map +1 -0
  181. package/dist/esm/project-config/config-module-resolution.js +33 -0
  182. package/dist/esm/project-config/config-module-resolution.js.map +1 -0
  183. package/dist/esm/project-config/define-framework-config.js.map +1 -1
  184. package/dist/esm/project-config/define-infra-env-config.d.ts +344 -69
  185. package/dist/esm/project-config/define-infra-env-config.d.ts.map +1 -1
  186. package/dist/esm/project-config/define-infra-env-config.js +194 -143
  187. package/dist/esm/project-config/define-infra-env-config.js.map +1 -1
  188. package/dist/esm/project-config/define-minion-config.d.ts +26 -36
  189. package/dist/esm/project-config/define-minion-config.d.ts.map +1 -1
  190. package/dist/esm/project-config/define-minion-config.js +64 -25
  191. package/dist/esm/project-config/define-minion-config.js.map +1 -1
  192. package/dist/esm/project-config/define-saas-config.d.ts +82 -348
  193. package/dist/esm/project-config/define-saas-config.d.ts.map +1 -1
  194. package/dist/esm/project-config/define-saas-config.js +262 -103
  195. package/dist/esm/project-config/define-saas-config.js.map +1 -1
  196. package/dist/esm/project-config/define-worker-config.d.ts +10 -20
  197. package/dist/esm/project-config/define-worker-config.d.ts.map +1 -1
  198. package/dist/esm/project-config/define-worker-config.js +10 -12
  199. package/dist/esm/project-config/define-worker-config.js.map +1 -1
  200. package/dist/esm/project-config/hosted-infra-env-config.d.ts.map +1 -1
  201. package/dist/esm/project-config/hosted-infra-env-config.js +4 -1
  202. package/dist/esm/project-config/hosted-infra-env-config.js.map +1 -1
  203. package/dist/esm/project-config/index.d.ts +5 -0
  204. package/dist/esm/project-config/index.d.ts.map +1 -1
  205. package/dist/esm/project-config/index.js +5 -0
  206. package/dist/esm/project-config/index.js.map +1 -1
  207. package/dist/esm/project-config/loader-instances-zod.d.ts +19 -0
  208. package/dist/esm/project-config/loader-instances-zod.d.ts.map +1 -0
  209. package/dist/esm/project-config/loader-instances-zod.js +40 -0
  210. package/dist/esm/project-config/loader-instances-zod.js.map +1 -0
  211. package/dist/esm/project-config/loader.d.ts +131 -14
  212. package/dist/esm/project-config/loader.d.ts.map +1 -1
  213. package/dist/esm/project-config/loader.js +226 -12
  214. package/dist/esm/project-config/loader.js.map +1 -1
  215. package/dist/esm/project-config/minion-liveness.contracts.d.ts +131 -0
  216. package/dist/esm/project-config/minion-liveness.contracts.d.ts.map +1 -0
  217. package/dist/esm/project-config/minion-liveness.contracts.js +167 -0
  218. package/dist/esm/project-config/minion-liveness.contracts.js.map +1 -0
  219. package/dist/esm/project-config/minion-local-provider-registration.d.ts.map +1 -1
  220. package/dist/esm/project-config/minion-local-provider-registration.js.map +1 -1
  221. package/dist/esm/project-config/npm-version-range.d.ts.map +1 -1
  222. package/dist/esm/project-config/npm-version-range.js +39 -16
  223. package/dist/esm/project-config/npm-version-range.js.map +1 -1
  224. package/dist/esm/project-config/owning-package-tsconfig.d.ts +15 -0
  225. package/dist/esm/project-config/owning-package-tsconfig.d.ts.map +1 -0
  226. package/dist/esm/project-config/owning-package-tsconfig.js +29 -0
  227. package/dist/esm/project-config/owning-package-tsconfig.js.map +1 -0
  228. package/dist/esm/project-config/provider-catalog-types.js.map +1 -1
  229. package/dist/esm/project-config/provider-companion-discovery.d.ts +4 -4
  230. package/dist/esm/project-config/provider-companion-discovery.d.ts.map +1 -1
  231. package/dist/esm/project-config/provider-companion-discovery.js +16 -10
  232. package/dist/esm/project-config/provider-companion-discovery.js.map +1 -1
  233. package/dist/esm/project-config/provider-runtime-artifacts.d.ts +103 -49
  234. package/dist/esm/project-config/provider-runtime-artifacts.d.ts.map +1 -1
  235. package/dist/esm/project-config/provider-runtime-artifacts.js +216 -16
  236. package/dist/esm/project-config/provider-runtime-artifacts.js.map +1 -1
  237. package/dist/esm/project-config/shared/application-creation-verification.schemas.d.ts +0 -2
  238. package/dist/esm/project-config/shared/application-creation-verification.schemas.d.ts.map +1 -1
  239. package/dist/esm/project-config/shared/application-creation-verification.schemas.js.map +1 -1
  240. package/dist/esm/project-config/shared/application-modules.schemas.js.map +1 -1
  241. package/dist/esm/project-config/shared/application-modules.utils.js.map +1 -1
  242. package/dist/esm/project-config/shared/auth.schemas.d.ts +0 -17
  243. package/dist/esm/project-config/shared/auth.schemas.d.ts.map +1 -1
  244. package/dist/esm/project-config/shared/auth.schemas.js.map +1 -1
  245. package/dist/esm/project-config/shared/backing-service-servability.js.map +1 -1
  246. package/dist/esm/project-config/shared/backing-services.schemas.d.ts +9 -10
  247. package/dist/esm/project-config/shared/backing-services.schemas.d.ts.map +1 -1
  248. package/dist/esm/project-config/shared/backing-services.schemas.js +13 -15
  249. package/dist/esm/project-config/shared/backing-services.schemas.js.map +1 -1
  250. package/dist/esm/project-config/shared/cdn.schemas.d.ts +0 -51
  251. package/dist/esm/project-config/shared/cdn.schemas.d.ts.map +1 -1
  252. package/dist/esm/project-config/shared/cdn.schemas.js.map +1 -1
  253. package/dist/esm/project-config/shared/csp-defaults.d.ts +36 -9
  254. package/dist/esm/project-config/shared/csp-defaults.d.ts.map +1 -1
  255. package/dist/esm/project-config/shared/csp-defaults.js +54 -11
  256. package/dist/esm/project-config/shared/csp-defaults.js.map +1 -1
  257. package/dist/esm/project-config/shared/csp-emit.d.ts +60 -13
  258. package/dist/esm/project-config/shared/csp-emit.d.ts.map +1 -1
  259. package/dist/esm/project-config/shared/csp-emit.js +77 -24
  260. package/dist/esm/project-config/shared/csp-emit.js.map +1 -1
  261. package/dist/esm/project-config/shared/csp.schemas.d.ts +72 -85
  262. package/dist/esm/project-config/shared/csp.schemas.d.ts.map +1 -1
  263. package/dist/esm/project-config/shared/csp.schemas.js +40 -13
  264. package/dist/esm/project-config/shared/csp.schemas.js.map +1 -1
  265. package/dist/esm/project-config/shared/data-services.schemas.d.ts +0 -8
  266. package/dist/esm/project-config/shared/data-services.schemas.d.ts.map +1 -1
  267. package/dist/esm/project-config/shared/data-services.schemas.js.map +1 -1
  268. package/dist/esm/project-config/shared/env-example-defaults.d.ts.map +1 -1
  269. package/dist/esm/project-config/shared/env-example-defaults.js.map +1 -1
  270. package/dist/esm/project-config/shared/environment.schemas.d.ts +101 -8
  271. package/dist/esm/project-config/shared/environment.schemas.d.ts.map +1 -1
  272. package/dist/esm/project-config/shared/environment.schemas.js +128 -9
  273. package/dist/esm/project-config/shared/environment.schemas.js.map +1 -1
  274. package/dist/esm/project-config/shared/infra-providers.schemas.d.ts +10 -4
  275. package/dist/esm/project-config/shared/infra-providers.schemas.d.ts.map +1 -1
  276. package/dist/esm/project-config/shared/infra-providers.schemas.js.map +1 -1
  277. package/dist/esm/project-config/shared/infra-service.schemas.js.map +1 -1
  278. package/dist/esm/project-config/shared/infrastructure-defaults.schemas.d.ts +2 -1
  279. package/dist/esm/project-config/shared/infrastructure-defaults.schemas.d.ts.map +1 -1
  280. package/dist/esm/project-config/shared/infrastructure-defaults.schemas.js +4 -1
  281. package/dist/esm/project-config/shared/infrastructure-defaults.schemas.js.map +1 -1
  282. package/dist/esm/project-config/shared/k8s-utils.d.ts.map +1 -1
  283. package/dist/esm/project-config/shared/k8s-utils.js.map +1 -1
  284. package/dist/esm/project-config/shared/minion-platform-access.vocabulary.d.ts.map +1 -1
  285. package/dist/esm/project-config/shared/minion-platform-access.vocabulary.js.map +1 -1
  286. package/dist/esm/project-config/shared/minion-resource-access.validation.d.ts +24 -0
  287. package/dist/esm/project-config/shared/minion-resource-access.validation.d.ts.map +1 -1
  288. package/dist/esm/project-config/shared/minion-resource-access.validation.js +25 -2
  289. package/dist/esm/project-config/shared/minion-resource-access.validation.js.map +1 -1
  290. package/dist/esm/project-config/shared/object-storage-session-policy.d.ts.map +1 -1
  291. package/dist/esm/project-config/shared/object-storage-session-policy.js.map +1 -1
  292. package/dist/esm/project-config/shared/platform-key-management.schemas.d.ts +276 -0
  293. package/dist/esm/project-config/shared/platform-key-management.schemas.d.ts.map +1 -0
  294. package/dist/esm/project-config/shared/platform-key-management.schemas.js +296 -0
  295. package/dist/esm/project-config/shared/platform-key-management.schemas.js.map +1 -0
  296. package/dist/esm/project-config/shared/platform-services.schemas.js.map +1 -1
  297. package/dist/esm/project-config/shared/platform-storage.schemas.d.ts +2 -2
  298. package/dist/esm/project-config/shared/platform-storage.schemas.d.ts.map +1 -1
  299. package/dist/esm/project-config/shared/platform-storage.schemas.js +16 -2
  300. package/dist/esm/project-config/shared/platform-storage.schemas.js.map +1 -1
  301. package/dist/esm/project-config/shared/service-definitions.schemas.d.ts +21 -23
  302. package/dist/esm/project-config/shared/service-definitions.schemas.d.ts.map +1 -1
  303. package/dist/esm/project-config/shared/service-definitions.schemas.js +4 -5
  304. package/dist/esm/project-config/shared/service-definitions.schemas.js.map +1 -1
  305. package/dist/esm/project-config/shared/systems-of-record-env.schemas.d.ts +0 -18
  306. package/dist/esm/project-config/shared/systems-of-record-env.schemas.d.ts.map +1 -1
  307. package/dist/esm/project-config/shared/systems-of-record-env.schemas.js.map +1 -1
  308. package/dist/esm/project-config/static-asset-import-noop.d.ts +20 -3
  309. package/dist/esm/project-config/static-asset-import-noop.d.ts.map +1 -1
  310. package/dist/esm/project-config/static-asset-import-noop.js +36 -20
  311. package/dist/esm/project-config/static-asset-import-noop.js.map +1 -1
  312. package/dist/esm/registry/artifact-domain.schemas.d.ts +0 -5
  313. package/dist/esm/registry/artifact-domain.schemas.d.ts.map +1 -1
  314. package/dist/esm/registry/artifact-domain.schemas.js.map +1 -1
  315. package/dist/esm/registry/digest.schemas.js.map +1 -1
  316. package/dist/esm/registry/index.d.ts +3 -3
  317. package/dist/esm/registry/index.d.ts.map +1 -1
  318. package/dist/esm/registry/index.js +3 -3
  319. package/dist/esm/registry/index.js.map +1 -1
  320. package/dist/esm/registry/local-checkout-source.d.ts +22 -2
  321. package/dist/esm/registry/local-checkout-source.d.ts.map +1 -1
  322. package/dist/esm/registry/local-checkout-source.js +66 -3
  323. package/dist/esm/registry/local-checkout-source.js.map +1 -1
  324. package/dist/esm/registry/lockfile-modules-section.schemas.d.ts +11 -98
  325. package/dist/esm/registry/lockfile-modules-section.schemas.d.ts.map +1 -1
  326. package/dist/esm/registry/lockfile-modules-section.schemas.js +1 -2
  327. package/dist/esm/registry/lockfile-modules-section.schemas.js.map +1 -1
  328. package/dist/esm/registry/module-artifact.schemas.d.ts +40 -17
  329. package/dist/esm/registry/module-artifact.schemas.d.ts.map +1 -1
  330. package/dist/esm/registry/module-artifact.schemas.js.map +1 -1
  331. package/dist/esm/registry/module-manifest.schemas.d.ts +324 -74
  332. package/dist/esm/registry/module-manifest.schemas.d.ts.map +1 -1
  333. package/dist/esm/registry/module-manifest.schemas.js +377 -19
  334. package/dist/esm/registry/module-manifest.schemas.js.map +1 -1
  335. package/dist/esm/registry/module-search.schemas.d.ts +2 -0
  336. package/dist/esm/registry/module-search.schemas.d.ts.map +1 -1
  337. package/dist/esm/registry/module-search.schemas.js +14 -1
  338. package/dist/esm/registry/module-search.schemas.js.map +1 -1
  339. package/dist/esm/registry/registry-config.schemas.d.ts +0 -18
  340. package/dist/esm/registry/registry-config.schemas.d.ts.map +1 -1
  341. package/dist/esm/registry/registry-config.schemas.js.map +1 -1
  342. package/dist/esm/registry/registry-defaults.constants.d.ts.map +1 -1
  343. package/dist/esm/registry/registry-defaults.constants.js.map +1 -1
  344. package/dist/esm/registry/registry-errors.d.ts +103 -5
  345. package/dist/esm/registry/registry-errors.d.ts.map +1 -1
  346. package/dist/esm/registry/registry-errors.js +213 -6
  347. package/dist/esm/registry/registry-errors.js.map +1 -1
  348. package/dist/esm/registry/registry-keys.schemas.js.map +1 -1
  349. package/dist/esm/registry/registry-section-schemas.constants.d.ts +5 -0
  350. package/dist/esm/registry/registry-section-schemas.constants.d.ts.map +1 -1
  351. package/dist/esm/registry/registry-section-schemas.constants.js.map +1 -1
  352. package/dist/esm/registry/registry-url-resolution.d.ts +72 -0
  353. package/dist/esm/registry/registry-url-resolution.d.ts.map +1 -0
  354. package/dist/esm/registry/registry-url-resolution.js +157 -0
  355. package/dist/esm/registry/registry-url-resolution.js.map +1 -0
  356. package/dist/esm/release/framework-release.constants.d.ts.map +1 -1
  357. package/dist/esm/release/framework-release.constants.js.map +1 -1
  358. package/dist/esm/schemas/framework-info.schemas.js.map +1 -1
  359. package/dist/esm/schemas/framework-secrets.schemas.d.ts +48 -0
  360. package/dist/esm/schemas/framework-secrets.schemas.d.ts.map +1 -1
  361. package/dist/esm/schemas/framework-secrets.schemas.js +53 -0
  362. package/dist/esm/schemas/framework-secrets.schemas.js.map +1 -1
  363. package/dist/esm/schemas/platform-application-config.schemas.d.ts +1 -1
  364. package/dist/esm/schemas/platform-application-config.schemas.js.map +1 -1
  365. package/dist/esm/schemas/platform-application-secrets.schemas.d.ts +1 -1
  366. package/dist/esm/schemas/platform-application-secrets.schemas.js.map +1 -1
  367. package/dist/esm/schemas/platform-config.schemas.d.ts +2 -2
  368. package/dist/esm/schemas/platform-config.schemas.js.map +1 -1
  369. package/dist/esm/workspace-scope/application-subject-manifest.js.map +1 -1
  370. package/dist/esm/workspace-scope/index.js.map +1 -1
  371. package/dist/esm/workspace-scope/resolve-homes.d.ts.map +1 -1
  372. package/dist/esm/workspace-scope/resolve-homes.js.map +1 -1
  373. package/dist/esm/workspace-scope/workspace-homes.schemas.d.ts.map +1 -1
  374. package/dist/esm/workspace-scope/workspace-homes.schemas.js.map +1 -1
  375. package/dist/esm/workspace-scope/workspace-scope-detector.d.ts.map +1 -1
  376. package/dist/esm/workspace-scope/workspace-scope-detector.js.map +1 -1
  377. package/dist/esm/workspace-scope/workspace-scope.schemas.d.ts.map +1 -1
  378. package/dist/esm/workspace-scope/workspace-scope.schemas.js.map +1 -1
  379. package/dist/tsconfig.build.tsbuildinfo +1 -1
  380. package/package.json +12 -12
  381. package/dist/esm/_unimplemented/index.d.ts +0 -3
  382. package/dist/esm/_unimplemented/index.d.ts.map +0 -1
  383. package/dist/esm/_unimplemented/index.js +0 -3
  384. package/dist/esm/_unimplemented/index.js.map +0 -1
  385. package/dist/esm/_unimplemented/unimplemented-field-warning.d.ts +0 -137
  386. package/dist/esm/_unimplemented/unimplemented-field-warning.d.ts.map +0 -1
  387. package/dist/esm/_unimplemented/unimplemented-field-warning.js +0 -153
  388. package/dist/esm/_unimplemented/unimplemented-field-warning.js.map +0 -1
  389. package/dist/esm/project-config/shared/cdn.example.d.ts +0 -14
  390. package/dist/esm/project-config/shared/cdn.example.d.ts.map +0 -1
  391. package/dist/esm/project-config/shared/cdn.example.js +0 -38
  392. package/dist/esm/project-config/shared/cdn.example.js.map +0 -1
  393. package/dist/esm/project-config/shared/schema-version.schemas.d.ts +0 -15
  394. package/dist/esm/project-config/shared/schema-version.schemas.d.ts.map +0 -1
  395. package/dist/esm/project-config/shared/schema-version.schemas.js +0 -40
  396. package/dist/esm/project-config/shared/schema-version.schemas.js.map +0 -1
@@ -1,4 +1,5 @@
1
1
  import { InfraCapability } from '../project-config/shared/infra-providers.schemas';
2
+ import { DatabaseEngine } from '../project-config/shared/environment.schemas';
2
3
  import { type ApplicationRuntimePrincipal } from './runtime-principal.contracts';
3
4
  /**
4
5
  * WHICH backing services a runtime may reach, derived from what it DECLARED.
@@ -21,9 +22,13 @@ import { type ApplicationRuntimePrincipal } from './runtime-principal.contracts'
21
22
  * distinguish.
22
23
  *
23
24
  * So this is deliberately NOT a helper each consumer may reimplement "for its own
24
- * needs". Consumers call it; none re-derives. That is the whole anti-bypass
25
- * strategy, and the enumeration of who must call it lives in
26
- * `.claude/plans/minion-nature-and-authority.md` (Step 5-egress).
25
+ * needs". Consumers call it; none re-derives. Two of the three enforcement points
26
+ * call it directly: the network membership (both deployment lanes) and the
27
+ * connection topology (the env builders). The third, the apps-manager mint, does
28
+ * not: it reaches the same database store through
29
+ * `AppInitializationService.derivePersistenceSelection` over the same resolved
30
+ * engine, and `runtime-network-follows-credentials.test.ts` (apps-manager) holds
31
+ * membership equal to the minted credentials for every principal (#3367).
27
32
  *
28
33
  * ## The vocabulary is `InfraCapability`, not a new enum
29
34
  *
@@ -34,7 +39,7 @@ import { type ApplicationRuntimePrincipal } from './runtime-principal.contracts'
34
39
  export interface RuntimeBackingServiceAccess {
35
40
  /**
36
41
  * Capabilities this runtime may reach. Empty is a legitimate, meaningful answer
37
- * — see the WORKER case — and must never be read as "unspecified, allow all".
42
+ * — see the static website, which is no runtime principal — and must never be read as "unspecified, allow all".
38
43
  */
39
44
  readonly capabilities: ReadonlySet<InfraCapability>;
40
45
  /**
@@ -58,9 +63,11 @@ export interface RuntimeAccessDeclaration {
58
63
  * The minion's authored `resourceAccess`, or `undefined` when it declared none.
59
64
  *
60
65
  * The distinction is load-bearing and mirrors `deriveMinionResourceGrants`:
61
- * ABSENT means application-data access was never requested (D11/R3), so no
62
- * database credential is minted AND no database network is joined. An empty but
63
- * PRESENT declaration is a different statement and is not this.
66
+ * ABSENT means application-data access was never requested, so no business
67
+ * table is granted and no object-storage route is joined. It does NOT mean "no
68
+ * database": every minion holds the engine-floor database role and the route to
69
+ * it (#1771, see {@link MINION_UNCONDITIONAL_CAPABILITIES}). An empty but PRESENT
70
+ * declaration is a different statement and is not this.
64
71
  */
65
72
  readonly resourceAccess?: {
66
73
  read?: readonly string[];
@@ -70,10 +77,35 @@ export interface RuntimeAccessDeclaration {
70
77
  readonly requiresInternetEgress?: boolean | undefined;
71
78
  }
72
79
  /**
73
- * Derive a runtime's backing-service access from its principal and declaration.
80
+ * The application facts that bound what ANY of its runtimes may reach, whatever the runtime declared.
81
+ *
82
+ * REQUIRED at every call, so a caller cannot forget it and silently keep both database stores.
83
+ */
84
+ export interface RuntimeApplicationStores {
85
+ /**
86
+ * The application's own database engine, `resolveApplicationDatabaseEngine(applicationDatabase)`.
87
+ *
88
+ * It is the ONE store database credentials are minted on: apps-manager registers an application with
89
+ * `useMongoDB` / `usePostgreSQL` derived from this same resolved engine (`AppInitializationService`), and writes a
90
+ * per-principal role only in that store. A runtime given a route to the OTHER store would hold a route with no
91
+ * credential behind it (#3367), the inverse of #1771.
92
+ *
93
+ * One engine, not a set, by decision: an application uses exactly one transactional store (#3328), and the registry
94
+ * refuses a resource declaring the other, so no runtime needs a route, topology or credential for a second store.
95
+ */
96
+ readonly applicationDatabaseEngine: DatabaseEngine;
97
+ }
98
+ /**
99
+ * Derive a runtime's backing-service access from its principal, its declaration and its application's store.
74
100
  *
75
101
  * Fails CLOSED on every axis: an unknown principal kind, an absent declaration and
76
102
  * an absent `resourceAccess` all narrow rather than widen.
103
+ *
104
+ * The database capabilities are then narrowed to the application's own store (#3367), for EVERY principal, the backend
105
+ * included: that is the only store any of them holds a credential for. The env topology and the network membership of
106
+ * both deployment lanes read this answer. The apps-manager mint does not call it: it reaches the same store through
107
+ * `AppInitializationService.derivePersistenceSelection` over the same resolved engine, and
108
+ * `runtime-network-follows-credentials.test.ts` (apps-manager) holds the two to each other for every principal.
77
109
  */
78
- export declare function resolveRuntimeBackingServiceAccess(principal: ApplicationRuntimePrincipal | undefined, declaration?: RuntimeAccessDeclaration | undefined): RuntimeBackingServiceAccess;
110
+ export declare function resolveRuntimeBackingServiceAccess(principal: ApplicationRuntimePrincipal | undefined, declaration: RuntimeAccessDeclaration | undefined, applicationStores: RuntimeApplicationStores): RuntimeBackingServiceAccess;
79
111
  //# sourceMappingURL=runtime-backing-service-access.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"runtime-backing-service-access.d.ts","sourceRoot":"","sources":["../../../src/bootstrap/runtime-backing-service-access.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,kDAAkD,CAAC;AACnF,OAAO,EAAmC,KAAK,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAElH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,MAAM,WAAW,2BAA2B;IAC1C;;;OAGG;IACH,QAAQ,CAAC,YAAY,EAAE,WAAW,CAAC,eAAe,CAAC,CAAC;IACpD;;;;;;;OAOG;IACH,QAAQ,CAAC,sBAAsB,EAAE,OAAO,CAAC;CAC1C;AAED;;;;;GAKG;AACH,MAAM,WAAW,wBAAwB;IACvC;;;;;;;OAOG;IACH,QAAQ,CAAC,cAAc,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;QAAC,KAAK,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;KAAE,GAAG,SAAS,CAAC;IAC9F,uFAAuF;IACvF,QAAQ,CAAC,sBAAsB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CACvD;AAqCD;;;;;GAKG;AACH,wBAAgB,kCAAkC,CAChD,SAAS,EAAE,2BAA2B,GAAG,SAAS,EAClD,WAAW,CAAC,EAAE,wBAAwB,GAAG,SAAS,GACjD,2BAA2B,CA+C7B"}
1
+ {"version":3,"file":"runtime-backing-service-access.d.ts","sourceRoot":"","sources":["../../../src/bootstrap/runtime-backing-service-access.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,kDAAkD,CAAC;AACnF,OAAO,EAAE,cAAc,EAAE,MAAM,8CAA8C,CAAC;AAC9E,OAAO,EAAmC,KAAK,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAElH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,MAAM,WAAW,2BAA2B;IAC1C;;;OAGG;IACH,QAAQ,CAAC,YAAY,EAAE,WAAW,CAAC,eAAe,CAAC,CAAC;IACpD;;;;;;;OAOG;IACH,QAAQ,CAAC,sBAAsB,EAAE,OAAO,CAAC;CAC1C;AAED;;;;;GAKG;AACH,MAAM,WAAW,wBAAwB;IACvC;;;;;;;;;OASG;IACH,QAAQ,CAAC,cAAc,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;QAAC,KAAK,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;KAAE,GAAG,SAAS,CAAC;IAC9F,uFAAuF;IACvF,QAAQ,CAAC,sBAAsB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CACvD;AAuDD;;;;GAIG;AACH,MAAM,WAAW,wBAAwB;IACvC;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,yBAAyB,EAAE,cAAc,CAAC;CACpD;AAWD;;;;;;;;;;;GAWG;AACH,wBAAgB,kCAAkC,CAChD,SAAS,EAAE,2BAA2B,GAAG,SAAS,EAClD,WAAW,EAAE,wBAAwB,GAAG,SAAS,EACjD,iBAAiB,EAAE,wBAAwB,GAC1C,2BAA2B,CAgB7B"}
@@ -1,4 +1,5 @@
1
1
  import { InfraCapability } from '../project-config/shared/infra-providers.schemas.js';
2
+ import { DatabaseEngine } from '../project-config/shared/environment.schemas.js';
2
3
  import { ApplicationRuntimePrincipalKind } from './runtime-principal.contracts.js';
3
4
  /**
4
5
  * Capabilities every MINION reaches regardless of what it declared.
@@ -13,6 +14,26 @@ import { ApplicationRuntimePrincipalKind } from './runtime-principal.contracts.j
13
14
  const MINION_UNCONDITIONAL_CAPABILITIES = [
14
15
  InfraCapability.QUEUING_SYSTEM,
15
16
  InfraCapability.CACHE_MANAGER,
17
+ // The DATABASE is unconditional too (#1771), decided by what a minion does at startup rather than by what
18
+ // it declared. `StartMinionApplicationBackendService.initialize` runs the full backend startup, which
19
+ // connects the application's selected store and fails the boot if it cannot; and every minion installs the
20
+ // tick consumer, whose durable coordinator and recovery scanner read and maintain `jobexecutions` and
21
+ // `jobpayloadstorage` and append `auditlogs`. A minion with no route to its database therefore cannot boot.
22
+ //
23
+ // So the credential side mints every minion the engine FLOOR role (`deriveMinionDatabaseGrants` over an
24
+ // empty authored grant: the framework's own tables and no business table), and this side gives it the route
25
+ // to use that role. Least privilege lives in the ROLE, which grants nothing `resourceAccess` did not ask for;
26
+ // withholding the route only produced a credential nobody could use and a minion that could not start.
27
+ //
28
+ // Rejected: "absent `resourceAccess` means no database at all" (the reading this file had until #1771, D11/R3).
29
+ // It cannot be honoured without a second minion runtime that skips the application lifecycle, and the mint
30
+ // had already stopped honouring it in 5c8936f86 because the tick consumer needs the floor.
31
+ //
32
+ // Both kinds are listed because an application is backed by one or the other and this layer does not know
33
+ // which here. `resolveRuntimeBackingServiceAccess` then keeps only the application's own store (#3367), the one
34
+ // every database credential is minted on.
35
+ InfraCapability.DOCUMENT_DATABASE,
36
+ InfraCapability.RELATIONAL_DATABASE,
16
37
  // Telemetry is unconditional for the same reason the platform segment is: every
17
38
  // runtime emits it, it carries no application data, and withholding it breaks
18
39
  // observability with NO signal — the collector appears in no readiness check, so
@@ -22,46 +43,68 @@ const MINION_UNCONDITIONAL_CAPABILITIES = [
22
43
  /**
23
44
  * Capabilities a minion reaches ONLY when it declared application-data access.
24
45
  *
25
- * Both database kinds are listed because an application is backed by one or the
26
- * other and this layer does not know which; the consumer intersects with the
27
- * capabilities the application actually provisions. Listing only the provisioned
28
- * one here would make this function depend on infrastructure configuration to
29
- * answer a question about a DECLARATION.
46
+ * Object storage alone: the engine floor is a property of holding a DATABASE role, and the object-storage
47
+ * credential is confined to the declared resources' key prefixes. The route follows the DECLARATION, not the
48
+ * size of that prefix set: an absent declaration gets no route (apps-manager derives no grant, so an empty
49
+ * prefix set), while a present one gets the route even when it names no resource, the absent/empty
50
+ * distinction kept everywhere else (an empty declaration's credential is still confined to no prefix).
30
51
  */
31
52
  const MINION_DATA_CAPABILITIES = [
32
- InfraCapability.DOCUMENT_DATABASE,
33
- InfraCapability.RELATIONAL_DATABASE,
34
53
  InfraCapability.OBJECT_STORAGE,
35
54
  ];
36
55
  /**
37
- * Derive a runtime's backing-service access from its principal and declaration.
56
+ * The database capability of each engine. Total, so an engine added to {@link DatabaseEngine} is a compile error here
57
+ * rather than a store no runtime can reach.
58
+ */
59
+ const DATABASE_CAPABILITY_OF_ENGINE = {
60
+ [DatabaseEngine.MONGODB]: InfraCapability.DOCUMENT_DATABASE,
61
+ [DatabaseEngine.POSTGRESQL]: InfraCapability.RELATIONAL_DATABASE,
62
+ };
63
+ /**
64
+ * Derive a runtime's backing-service access from its principal, its declaration and its application's store.
38
65
  *
39
66
  * Fails CLOSED on every axis: an unknown principal kind, an absent declaration and
40
67
  * an absent `resourceAccess` all narrow rather than widen.
68
+ *
69
+ * The database capabilities are then narrowed to the application's own store (#3367), for EVERY principal, the backend
70
+ * included: that is the only store any of them holds a credential for. The env topology and the network membership of
71
+ * both deployment lanes read this answer. The apps-manager mint does not call it: it reaches the same store through
72
+ * `AppInitializationService.derivePersistenceSelection` over the same resolved engine, and
73
+ * `runtime-network-follows-credentials.test.ts` (apps-manager) holds the two to each other for every principal.
41
74
  */
42
- export function resolveRuntimeBackingServiceAccess(principal, declaration) {
75
+ export function resolveRuntimeBackingServiceAccess(principal, declaration, applicationStores) {
76
+ const declared = resolveDeclaredBackingServiceAccess(principal, declaration);
77
+ const applicationStore = DATABASE_CAPABILITY_OF_ENGINE[applicationStores?.applicationDatabaseEngine];
78
+ if (!applicationStore) {
79
+ // A caller that reached here without the engine (an untyped path, a cast) would otherwise lose BOTH stores
80
+ // silently, or, written the other way, keep both. Neither is a reachability decision; refuse.
81
+ throw new Error(`resolveRuntimeBackingServiceAccess needs the application's database engine, got `
82
+ + `${JSON.stringify(applicationStores?.applicationDatabaseEngine)}. Pass resolveApplicationDatabaseEngine(applicationDatabase).`);
83
+ }
84
+ const otherStores = new Set(Object.values(DATABASE_CAPABILITY_OF_ENGINE).filter((capability) => capability !== applicationStore));
85
+ return {
86
+ capabilities: new Set([...declared.capabilities].filter((capability) => !otherStores.has(capability))),
87
+ requiresInternetEgress: declared.requiresInternetEgress,
88
+ };
89
+ }
90
+ /** What the principal and its declaration allow, before the application's store bounds it. */
91
+ function resolveDeclaredBackingServiceAccess(principal, declaration) {
43
92
  const requiresInternetEgress = declaration?.requiresInternetEgress === true;
44
93
  switch (principal?.kind) {
45
94
  case ApplicationRuntimePrincipalKind.APPLICATION_BACKEND:
46
95
  // The general runtime: it serves every request the application exposes, so
47
- // its access is the application's own provisioned set rather than anything
48
- // narrowed here. Returning the full vocabulary and letting the consumer
49
- // intersect with what the app provisions keeps THIS function about
50
- // declarations and the consumer about infrastructure.
96
+ // its access is the full vocabulary, bounded by the application's store in
97
+ // `resolveRuntimeBackingServiceAccess` and by what the environment provisions
98
+ // at each consumer.
51
99
  return {
52
100
  capabilities: new Set(Object.values(InfraCapability)),
53
101
  requiresInternetEgress,
54
102
  };
55
103
  case ApplicationRuntimePrincipalKind.MINION: {
56
104
  const capabilities = new Set(MINION_UNCONDITIONAL_CAPABILITIES);
57
- // ABSENT resourceAccess ⇒ no data capability at all: a minion that never
58
- // asked for application data must not have a route to it.
59
- //
60
- // ⚠️ This is NO LONGER the same gate as the credential minting. Since
61
- // 5c8936f86 the PostgreSQL mint gives such a minion a role carrying the
62
- // infrastructure floor (observed live 2026-09-26), so a credential is
63
- // issued that this layer gives no route to use. One rule has to be chosen
64
- // and derived for both layers — #1771.
105
+ // ABSENT resourceAccess ⇒ the database route (unconditional, for the floor role every minion is minted)
106
+ // and no object-storage route. The same gate as the credential side: the mint grants the floor to every
107
+ // minion and business tables and storage prefixes only from a declaration (#1771).
65
108
  if (declaration?.resourceAccess) {
66
109
  for (const capability of MINION_DATA_CAPABILITIES)
67
110
  capabilities.add(capability);
@@ -69,13 +112,19 @@ export function resolveRuntimeBackingServiceAccess(principal, declaration) {
69
112
  return { capabilities, requiresInternetEgress };
70
113
  }
71
114
  case ApplicationRuntimePrincipalKind.WORKER:
72
- // EMPTY, and this is a measured fact rather than a conservative guess: a
73
- // worker never boots the application lifecycle — it is standalone by design
74
- // with no backing-service access, which is why it has no member in
75
- // `ApplicationRuntimeProfile` at all. D22/KD-3 says the same thing from the
76
- // credential side. Segmentation turns that policy into a reachability fact
77
- // instead of a promise about what nobody remembered to inject.
78
- return { capabilities: new Set(), requiresInternetEgress };
115
+ // TELEMETRY ONLY, and both halves are measured rather than guessed (#3368).
116
+ //
117
+ // No backing service: a worker never boots the application lifecycle — it is standalone by design, which is
118
+ // why it has no member in `ApplicationRuntimeProfile` at all — and D22/KD-3 mints it no credential (the
119
+ // apps-manager mint loop skips it). Its environment (`buildApplicationWorkerEnv`) carries no database, cache,
120
+ // broker or storage topology.
121
+ //
122
+ // Telemetry: it DOES emit, like every runtime. `buildApplicationWorkerEnv` emits the `OTEL_*` posture
123
+ // ("workers emit OTEL_* like backends", audit A-2) and a Node worker runs under
124
+ // `--import @wildo-ai/saas-backend-lib/otel-preload`. Withholding the collector segment dropped its spans with no
125
+ // readiness signal, the failure `MINION_UNCONDITIONAL_CAPABILITIES` records for minions. The collector carries no
126
+ // application data and no credential.
127
+ return { capabilities: new Set([InfraCapability.METRICS_TELEMETRY]), requiresInternetEgress };
79
128
  default:
80
129
  // An unrecognised or absent principal gets NOTHING. Every caller uses this
81
130
  // to decide how narrowly a runtime is confined, so a permissive default
@@ -1 +1 @@
1
- {"version":3,"file":"runtime-backing-service-access.js","sourceRoot":"","sources":["../../../../src/bootstrap/runtime-backing-service-access.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,kDAAkD,CAAC;AACnF,OAAO,EAAE,+BAA+B,EAAoC,MAAM,+BAA+B,CAAC;AAsElH;;;;;;;;;GASG;AACH,MAAM,iCAAiC,GAA+B;IACpE,eAAe,CAAC,cAAc;IAC9B,eAAe,CAAC,aAAa;IAC7B,gFAAgF;IAChF,8EAA8E;IAC9E,iFAAiF;IACjF,gFAAgF;IAChF,eAAe,CAAC,iBAAiB;CAClC,CAAC;AAEF;;;;;;;;GAQG;AACH,MAAM,wBAAwB,GAA+B;IAC3D,eAAe,CAAC,iBAAiB;IACjC,eAAe,CAAC,mBAAmB;IACnC,eAAe,CAAC,cAAc;CAC/B,CA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apability } from '../project-config/shared/infra-providers.schemas';\nimport { ApplicationRuntimePrincipalKind, type ApplicationRuntimePrincipal } from './runtime-principal.contracts';\n\n/**\n * WHICH backing services a runtime may reach, derived from what it DECLARED.\n *\n * ## Why this exists as one function\n *\n * Three enforcement points must agree about a runtime's backing-service access:\n * the CREDENTIALS apps-manager mints for it, the network MEMBERSHIP its container\n * gets, and the connection TOPOLOGY written into its environment. Each is\n * independently sufficient to deny, which is the point — but only while they\n * describe the same set.\n *\n * They are also each capable of silently disagreeing. A runtime kept off a\n * service's network while still receiving that service's connect URL is the worst\n * of the three combinations: `isConfigured()` reports true, a health probe or a\n * first use runs, and an unroutable host fails as a timeout for a runtime that was\n * never supposed to have the service at all. The fix is not a compensating branch\n * in a health check — it is that the two derive from HERE, so a non-declaring\n * runtime is never configured in the first place and there is nothing to\n * distinguish.\n *\n * So this is deliberately NOT a helper each consumer may reimplement \"for its own\n * needs\". Consumers call it; none re-derives. That is the whole anti-bypass\n * strategy, and the enumeration of who must call it lives in\n * `.claude/plans/minion-nature-and-authority.md` (Step 5-egress).\n *\n * ## The vocabulary is `InfraCapability`, not a new enum\n *\n * That is already what an infra provider module declares it supplies, so a\n * capability named here and a provider that serves it cannot drift into two\n * spellings of one concept.\n */\nexport interface RuntimeBackingServiceAccess {\n /**\n * Capabilities this runtime may reach. Empty is a legitimate, meaningful answer\n * — see the WORKER case — and must never be read as \"unspecified, allow all\".\n */\n readonly capabilities: ReadonlySet<InfraCapability>;\n /**\n * Whether this runtime needs a route off the host at all.\n *\n * Authored, never inferred: a scraper minion legitimately reaches the public\n * internet, and the point of the flag is not to refuse that but to stop egress\n * being universal and unstated. Default false, so the safe answer is the one you\n * get by not thinking about it.\n */\n readonly requiresInternetEgress: boolean;\n}\n\n/**\n * What a minion declares about its access to the application's data.\n *\n * Structural rather than importing the app-declaration type, so this contract does\n * not acquire the whole configuration graph for two fields.\n */\nexport interface RuntimeAccessDeclaration {\n /**\n * The minion's authored `resourceAccess`, or `undefined` when it declared none.\n *\n * The distinction is load-bearing and mirrors `deriveMinionResourceGrants`:\n * ABSENT means application-data access was never requested (D11/R3), so no\n * database credential is minted AND no database network is joined. An empty but\n * PRESENT declaration is a different statement and is not this.\n */\n readonly resourceAccess?: { read?: readonly string[]; write?: readonly string[] } | undefined;\n /** Authored opt-in; see {@link RuntimeBackingServiceAccess.requiresInternetEgress}. */\n readonly requiresInternetEgress?: boolean | undefined;\n}\n\n/**\n * Capabilities every MINION reaches regardless of what it declared.\n *\n * A minion is tick-driven and single-flighted: it consumes its tick queue and its\n * own RPC reply queue (QUEUING_SYSTEM) and holds a per-principal Redis namespace\n * (CACHE_MANAGER) used for its single-flight lease. Both credentials are minted\n * unconditionally for every minion today, so withholding either network would\n * strand a credential the platform issued — the incoherence this module exists to\n * prevent, arriving from the other direction.\n */\nconst MINION_UNCONDITIONAL_CAPABILITIES: readonly InfraCapability[] = [\n InfraCapability.QUEUING_SYSTEM,\n InfraCapability.CACHE_MANAGER,\n // Telemetry is unconditional for the same reason the platform segment is: every\n // runtime emits it, it carries no application data, and withholding it breaks\n // observability with NO signal — the collector appears in no readiness check, so\n // the failure surfaces as \"spans stopped\" long after the change that caused it.\n InfraCapability.METRICS_TELEMETRY,\n];\n\n/**\n * Capabilities a minion reaches ONLY when it declared application-data access.\n *\n * Both database kinds are listed because an application is backed by one or the\n * other and this layer does not know which; the consumer intersects with the\n * capabilities the application actually provisions. Listing only the provisioned\n * one here would make this function depend on infrastructure configuration to\n * answer a question about a DECLARATION.\n */\nconst MINION_DATA_CAPABILITIES: readonly InfraCapability[] = [\n InfraCapability.DOCUMENT_DATABASE,\n InfraCapability.RELATIONAL_DATABASE,\n InfraCapability.OBJECT_STORAGE,\n];\n\n/**\n * Derive a runtime's backing-service access from its principal and declaration.\n *\n * Fails CLOSED on every axis: an unknown principal kind, an absent declaration and\n * an absent `resourceAccess` all narrow rather than widen.\n */\nexport function resolveRuntimeBackingServiceAccess(\n principal: ApplicationRuntimePrincipal | undefined,\n declaration?: RuntimeAccessDeclaration | undefined,\n): RuntimeBackingServiceAccess {\n const requiresInternetEgress = declaration?.requiresInternetEgress === true;\n\n switch (principal?.kind) {\n case ApplicationRuntimePrincipalKind.APPLICATION_BACKEND:\n // The general runtime: it serves every request the application exposes, so\n // its access is the application's own provisioned set rather than anything\n // narrowed here. Returning the full vocabulary and letting the consumer\n // intersect with what the app provisions keeps THIS function about\n // declarations and the consumer about infrastructure.\n return {\n capabilities: new Set(Object.values(InfraCapability)),\n requiresInternetEgress,\n };\n\n case ApplicationRuntimePrincipalKind.MINION: {\n const capabilities = new Set(MINION_UNCONDITIONAL_CAPABILITIES);\n // ABSENT resourceAccess ⇒ no data capability at all: a minion that never\n // asked for application data must not have a route to it.\n //\n // ⚠️ This is NO LONGER the same gate as the credential minting. Since\n // 5c8936f86 the PostgreSQL mint gives such a minion a role carrying the\n // infrastructure floor (observed live 2026-09-26), so a credential is\n // issued that this layer gives no route to use. One rule has to be chosen\n // and derived for both layers — #1771.\n if (declaration?.resourceAccess) {\n for (const capability of MINION_DATA_CAPABILITIES) capabilities.add(capability);\n }\n return { capabilities, requiresInternetEgress };\n }\n\n case ApplicationRuntimePrincipalKind.WORKER:\n // EMPTY, and this is a measured fact rather than a conservative guess: a\n // worker never boots the application lifecycle — it is standalone by design\n // with no backing-service access, which is why it has no member in\n // `ApplicationRuntimeProfile` at all. D22/KD-3 says the same thing from the\n // credential side. Segmentation turns that policy into a reachability fact\n // instead of a promise about what nobody remembered to inject.\n return { capabilities: new Set(), requiresInternetEgress };\n\n default:\n // An unrecognised or absent principal gets NOTHING. Every caller uses this\n // to decide how narrowly a runtime is confined, so a permissive default\n // would widen confinement silently — the one direction that cannot be\n // detected by anything downstream.\n return { capabilities: new Set(), requiresInternetEgress: false };\n }\n}\n"]}
1
+ {"version":3,"file":"runtime-backing-service-access.js","sourceRoot":"","sources":["../../../src/bootstrap/runtime-backing-service-access.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MA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AAE,YAAY,EAAE,sBAAsB,EAAE,CAAC;QAClD,CAAC;QAED,KAAK,+BAA+B,CAAC,MAAM;YACzC,4EAA4E;YAC5E,EAAE;YACF,4GAA4G;YAC5G,wGAAwG;YACxG,8GAA8G;YAC9G,8BAA8B;YAC9B,EAAE;YACF,sGAAsG;YACtG,gFAAgF;YAChF,kHAAkH;YAClH,kHAAkH;YAClH,sCAAsC;YACtC,OAAO,EAAE,YAAY,EAAE,IAAI,GAAG,CAAC,CAAC,eAAe,CAAC,iBAAiB,CAAC,CAAC,EAAE,sBAAsB,EAAE,CAAC;QAEhG;YACE,2EAA2E;YAC3E,wEAAwE;YACxE,sEAAsE;YACtE,mCAAmC;YACnC,OAAO,EAAE,YAAY,EAAE,IAAI,GAAG,EAAE,EAAE,sBAAsB,EAAE,KAAK,EAAE,CAAC;IACtE,CAAC;AACH,CAAC","sourcesContent":["import { InfraCapability } from '../project-config/shared/infra-providers.schemas';\nimport { DatabaseEngine } from '../project-config/shared/environment.schemas';\nimport { ApplicationRuntimePrincipalKind, type ApplicationRuntimePrincipal } from './runtime-principal.contracts';\n\n/**\n * WHICH backing services a runtime may reach, derived from what it DECLARED.\n *\n * ## Why this exists as one function\n *\n * Three enforcement points must agree about a runtime's backing-service access:\n * the CREDENTIALS apps-manager mints for it, the network MEMBERSHIP its container\n * gets, and the connection TOPOLOGY written into its environment. Each is\n * independently sufficient to deny, which is the point — but only while they\n * describe the same set.\n *\n * They are also each capable of silently disagreeing. A runtime kept off a\n * service's network while still receiving that service's connect URL is the worst\n * of the three combinations: `isConfigured()` reports true, a health probe or a\n * first use runs, and an unroutable host fails as a timeout for a runtime that was\n * never supposed to have the service at all. The fix is not a compensating branch\n * in a health check — it is that the two derive from HERE, so a non-declaring\n * runtime is never configured in the first place and there is nothing to\n * distinguish.\n *\n * So this is deliberately NOT a helper each consumer may reimplement \"for its own\n * needs\". Consumers call it; none re-derives. Two of the three enforcement points\n * call it directly: the network membership (both deployment lanes) and the\n * connection topology (the env builders). The third, the apps-manager mint, does\n * not: it reaches the same database store through\n * `AppInitializationService.derivePersistenceSelection` over the same resolved\n * engine, and `runtime-network-follows-credentials.test.ts` (apps-manager) holds\n * membership equal to the minted credentials for every principal (#3367).\n *\n * ## The vocabulary is `InfraCapability`, not a new enum\n *\n * That is already what an infra provider module declares it supplies, so a\n * capability named here and a provider that serves it cannot drift into two\n * spellings of one concept.\n */\nexport interface RuntimeBackingServiceAccess {\n /**\n * Capabilities this runtime may reach. Empty is a legitimate, meaningful answer\n * — see the static website, which is no runtime principal — and must never be read as \"unspecified, allow all\".\n */\n readonly capabilities: ReadonlySet<InfraCapability>;\n /**\n * Whether this runtime needs a route off the host at all.\n *\n * Authored, never inferred: a scraper minion legitimately reaches the public\n * internet, and the point of the flag is not to refuse that but to stop egress\n * being universal and unstated. Default false, so the safe answer is the one you\n * get by not thinking about it.\n */\n readonly requiresInternetEgress: boolean;\n}\n\n/**\n * What a minion declares about its access to the application's data.\n *\n * Structural rather than importing the app-declaration type, so this contract does\n * not acquire the whole configuration graph for two fields.\n */\nexport interface RuntimeAccessDeclaration {\n /**\n * The minion's authored `resourceAccess`, or `undefined` when it declared none.\n *\n * The distinction is load-bearing and mirrors `deriveMinionResourceGrants`:\n * ABSENT means application-data access was never requested, so no business\n * table is granted and no object-storage route is joined. It does NOT mean \"no\n * database\": every minion holds the engine-floor database role and the route to\n * it (#1771, see {@link MINION_UNCONDITIONAL_CAPABILITIES}). An empty but PRESENT\n * declaration is a different statement and is not this.\n */\n readonly resourceAccess?: { read?: readonly string[]; write?: readonly string[] } | undefined;\n /** Authored opt-in; see {@link RuntimeBackingServiceAccess.requiresInternetEgress}. */\n readonly requiresInternetEgress?: boolean | undefined;\n}\n\n/**\n * Capabilities every MINION reaches regardless of what it declared.\n *\n * A minion is tick-driven and single-flighted: it consumes its tick queue and its\n * own RPC reply queue (QUEUING_SYSTEM) and holds a per-principal Redis namespace\n * (CACHE_MANAGER) used for its single-flight lease. Both credentials are minted\n * unconditionally for every minion today, so withholding either network would\n * strand a credential the platform issued — the incoherence this module exists to\n * prevent, arriving from the other direction.\n */\nconst MINION_UNCONDITIONAL_CAPABILITIES: readonly InfraCapability[] = [\n InfraCapability.QUEUING_SYSTEM,\n InfraCapability.CACHE_MANAGER,\n // The DATABASE is unconditional too (#1771), decided by what a minion does at startup rather than by what\n // it declared. `StartMinionApplicationBackendService.initialize` runs the full backend startup, which\n // connects the application's selected store and fails the boot if it cannot; and every minion installs the\n // tick consumer, whose durable coordinator and recovery scanner read and maintain `jobexecutions` and\n // `jobpayloadstorage` and append `auditlogs`. A minion with no route to its database therefore cannot boot.\n //\n // So the credential side mints every minion the engine FLOOR role (`deriveMinionDatabaseGrants` over an\n // empty authored grant: the framework's own tables and no business table), and this side gives it the route\n // to use that role. Least privilege lives in the ROLE, which grants nothing `resourceAccess` did not ask for;\n // withholding the route only produced a credential nobody could use and a minion that could not start.\n //\n // Rejected: \"absent `resourceAccess` means no database at all\" (the reading this file had until #1771, D11/R3).\n // It cannot be honoured without a second minion runtime that skips the application lifecycle, and the mint\n // had already stopped honouring it in 5c8936f86 because the tick consumer needs the floor.\n //\n // Both kinds are listed because an application is backed by one or the other and this layer does not know\n // which here. `resolveRuntimeBackingServiceAccess` then keeps only the application's own store (#3367), the one\n // every database credential is minted on.\n InfraCapability.DOCUMENT_DATABASE,\n InfraCapability.RELATIONAL_DATABASE,\n // Telemetry is unconditional for the same reason the platform segment is: every\n // runtime emits it, it carries no application data, and withholding it breaks\n // observability with NO signal — the collector appears in no readiness check, so\n // the failure surfaces as \"spans stopped\" long after the change that caused it.\n InfraCapability.METRICS_TELEMETRY,\n];\n\n/**\n * Capabilities a minion reaches ONLY when it declared application-data access.\n *\n * Object storage alone: the engine floor is a property of holding a DATABASE role, and the object-storage\n * credential is confined to the declared resources' key prefixes. The route follows the DECLARATION, not the\n * size of that prefix set: an absent declaration gets no route (apps-manager derives no grant, so an empty\n * prefix set), while a present one gets the route even when it names no resource, the absent/empty\n * distinction kept everywhere else (an empty declaration's credential is still confined to no prefix).\n */\nconst MINION_DATA_CAPABILITIES: readonly InfraCapability[] = [\n InfraCapability.OBJECT_STORAGE,\n];\n\n/**\n * The application facts that bound what ANY of its runtimes may reach, whatever the runtime declared.\n *\n * REQUIRED at every call, so a caller cannot forget it and silently keep both database stores.\n */\nexport interface RuntimeApplicationStores {\n /**\n * The application's own database engine, `resolveApplicationDatabaseEngine(applicationDatabase)`.\n *\n * It is the ONE store database credentials are minted on: apps-manager registers an application with\n * `useMongoDB` / `usePostgreSQL` derived from this same resolved engine (`AppInitializationService`), and writes a\n * per-principal role only in that store. A runtime given a route to the OTHER store would hold a route with no\n * credential behind it (#3367), the inverse of #1771.\n *\n * One engine, not a set, by decision: an application uses exactly one transactional store (#3328), and the registry\n * refuses a resource declaring the other, so no runtime needs a route, topology or credential for a second store.\n */\n readonly applicationDatabaseEngine: DatabaseEngine;\n}\n\n/**\n * The database capability of each engine. Total, so an engine added to {@link DatabaseEngine} is a compile error here\n * rather than a store no runtime can reach.\n */\nconst DATABASE_CAPABILITY_OF_ENGINE: Record<DatabaseEngine, InfraCapability> = {\n [DatabaseEngine.MONGODB]: InfraCapability.DOCUMENT_DATABASE,\n [DatabaseEngine.POSTGRESQL]: InfraCapability.RELATIONAL_DATABASE,\n};\n\n/**\n * Derive a runtime's backing-service access from its principal, its declaration and its application's store.\n *\n * Fails CLOSED on every axis: an unknown principal kind, an absent declaration and\n * an absent `resourceAccess` all narrow rather than widen.\n *\n * The database capabilities are then narrowed to the application's own store (#3367), for EVERY principal, the backend\n * included: that is the only store any of them holds a credential for. The env topology and the network membership of\n * both deployment lanes read this answer. The apps-manager mint does not call it: it reaches the same store through\n * `AppInitializationService.derivePersistenceSelection` over the same resolved engine, and\n * `runtime-network-follows-credentials.test.ts` (apps-manager) holds the two to each other for every principal.\n */\nexport function resolveRuntimeBackingServiceAccess(\n principal: ApplicationRuntimePrincipal | undefined,\n declaration: RuntimeAccessDeclaration | undefined,\n applicationStores: RuntimeApplicationStores,\n): RuntimeBackingServiceAccess {\n const declared = resolveDeclaredBackingServiceAccess(principal, declaration);\n const applicationStore = DATABASE_CAPABILITY_OF_ENGINE[applicationStores?.applicationDatabaseEngine];\n if (!applicationStore) {\n // A caller that reached here without the engine (an untyped path, a cast) would otherwise lose BOTH stores\n // silently, or, written the other way, keep both. Neither is a reachability decision; refuse.\n throw new Error(\n `resolveRuntimeBackingServiceAccess needs the application's database engine, got `\n + `${JSON.stringify(applicationStores?.applicationDatabaseEngine)}. Pass resolveApplicationDatabaseEngine(applicationDatabase).`,\n );\n }\n const otherStores = new Set(Object.values(DATABASE_CAPABILITY_OF_ENGINE).filter((capability) => capability !== applicationStore));\n return {\n capabilities: new Set([...declared.capabilities].filter((capability) => !otherStores.has(capability))),\n requiresInternetEgress: declared.requiresInternetEgress,\n };\n}\n\n/** What the principal and its declaration allow, before the application's store bounds it. */\nfunction resolveDeclaredBackingServiceAccess(\n principal: ApplicationRuntimePrincipal | undefined,\n declaration: RuntimeAccessDeclaration | undefined,\n): RuntimeBackingServiceAccess {\n const requiresInternetEgress = declaration?.requiresInternetEgress === true;\n\n switch (principal?.kind) {\n case ApplicationRuntimePrincipalKind.APPLICATION_BACKEND:\n // The general runtime: it serves every request the application exposes, so\n // its access is the full vocabulary, bounded by the application's store in\n // `resolveRuntimeBackingServiceAccess` and by what the environment provisions\n // at each consumer.\n return {\n capabilities: new Set(Object.values(InfraCapability)),\n requiresInternetEgress,\n };\n\n case ApplicationRuntimePrincipalKind.MINION: {\n const capabilities = new Set(MINION_UNCONDITIONAL_CAPABILITIES);\n // ABSENT resourceAccess ⇒ the database route (unconditional, for the floor role every minion is minted)\n // and no object-storage route. The same gate as the credential side: the mint grants the floor to every\n // minion and business tables and storage prefixes only from a declaration (#1771).\n if (declaration?.resourceAccess) {\n for (const capability of MINION_DATA_CAPABILITIES) capabilities.add(capability);\n }\n return { capabilities, requiresInternetEgress };\n }\n\n case ApplicationRuntimePrincipalKind.WORKER:\n // TELEMETRY ONLY, and both halves are measured rather than guessed (#3368).\n //\n // No backing service: a worker never boots the application lifecycle — it is standalone by design, which is\n // why it has no member in `ApplicationRuntimeProfile` at all — and D22/KD-3 mints it no credential (the\n // apps-manager mint loop skips it). Its environment (`buildApplicationWorkerEnv`) carries no database, cache,\n // broker or storage topology.\n //\n // Telemetry: it DOES emit, like every runtime. `buildApplicationWorkerEnv` emits the `OTEL_*` posture\n // (\"workers emit OTEL_* like backends\", audit A-2) and a Node worker runs under\n // `--import @wildo-ai/saas-backend-lib/otel-preload`. Withholding the collector segment dropped its spans with no\n // readiness signal, the failure `MINION_UNCONDITIONAL_CAPABILITIES` records for minions. The collector carries no\n // application data and no credential.\n return { capabilities: new Set([InfraCapability.METRICS_TELEMETRY]), requiresInternetEgress };\n\n default:\n // An unrecognised or absent principal gets NOTHING. Every caller uses this\n // to decide how narrowly a runtime is confined, so a permissive default\n // would widen confinement silently — the one direction that cannot be\n // detected by anything downstream.\n return { capabilities: new Set(), requiresInternetEgress: false };\n }\n}\n"]}
@@ -1,5 +1,6 @@
1
1
  import type { ApplicationRuntimePrincipal } from './runtime-principal.contracts';
2
2
  import type { RuntimeAccessDeclaration } from './runtime-backing-service-access';
3
+ import { WildoRuntimeNetwork, type RuntimeNetworkMembershipOptions } from './runtime-network-topology';
3
4
  /**
4
5
  * The Kubernetes rendering of {@link WildoRuntimeNetwork} (Step 5-egress, half A).
5
6
  *
@@ -26,9 +27,19 @@ export declare const RUNTIME_NETWORK_LABEL_PREFIX = "wildo.ai/net-";
26
27
  * a policy that allowed `net-mongo != 'true'` would admit every pod that simply
27
28
  * never set the label.
28
29
  */
29
- export declare function buildRuntimeNetworkPodLabels(principal: ApplicationRuntimePrincipal | undefined, declaration?: RuntimeAccessDeclaration | undefined, options?: {
30
- readonly servesHttp?: boolean;
31
- }): Record<string, string>;
30
+ export declare function buildRuntimeNetworkPodLabels(principal: ApplicationRuntimePrincipal | undefined, declaration: RuntimeAccessDeclaration | undefined, options: RuntimeNetworkMembershipOptions): Record<string, string>;
31
+ /**
32
+ * Pod labels for a pod that is not an application runtime principal (a backing service, a platform service, a one-shot
33
+ * init Job), from the segments it belongs to (#3372).
34
+ *
35
+ * The same `wildo.ai/net-<segment>: "true"` vocabulary as {@link buildRuntimeNetworkPodLabels}, deliberately: a
36
+ * Kubernetes segment is FLAT, exactly like the compose network it renders (every member reaches every member), so the
37
+ * service and its clients are described by one string. A label per role (`serves-` / `joins-`) was considered and
38
+ * rejected: compose leaves every intra-segment call implicit (the backend dispatching to a worker over the platform
39
+ * segment, mongod and mongot dialling each other over the Mongo one), so a role split would have to enumerate edges
40
+ * nobody has written down, and a missed one is an outage the compose lane does not have.
41
+ */
42
+ export declare function buildNetworkMembershipPodLabels(networks: Iterable<WildoRuntimeNetwork>): Record<string, string>;
32
43
  /** A `NetworkPolicy` document, in the shape the manifest renderer serialises. */
33
44
  export interface RuntimeNetworkPolicyDocument {
34
45
  readonly apiVersion: 'networking.k8s.io/v1';
@@ -39,6 +50,79 @@ export interface RuntimeNetworkPolicyDocument {
39
50
  };
40
51
  readonly spec: Record<string, unknown>;
41
52
  }
53
+ /**
54
+ * Where the cluster DNS answers, for the egress allow every pod needs (#3372).
55
+ *
56
+ * The control plane sets an immutable `kubernetes.io/metadata.name` label on every namespace, so a policy can name
57
+ * `kube-system`; CoreDNS keeps `k8s-app: kube-dns` for backward compatibility with the kube-dns it replaced. Port 53 on
58
+ * BOTH protocols: UDP for ordinary lookups, TCP for a truncated answer.
59
+ *
60
+ * spec-cite: https://kubernetes.io/docs/concepts/services-networking/network-policies/ — "Targeting a Namespace by its
61
+ * name"; https://kubernetes.io/docs/tasks/administer-cluster/dns-debugging-resolution/ — "Check if the DNS pod is
62
+ * running" (the `k8s-app=kube-dns` value for CoreDNS).
63
+ */
64
+ export declare const CLUSTER_DNS_SELECTOR: {
65
+ readonly NAMESPACE_LABELS: {
66
+ readonly 'kubernetes.io/metadata.name': "kube-system";
67
+ };
68
+ readonly POD_LABELS: {
69
+ readonly 'k8s-app': "kube-dns";
70
+ };
71
+ readonly PORT: 53;
72
+ };
73
+ /** The name of the segment-allow policy for one network, shared by the builder and anything that reads its output. */
74
+ export declare function runtimeNetworkPolicyName(network: WildoRuntimeNetwork): string;
75
+ /** The name of the namespace-wide DNS egress allow. */
76
+ export declare const RUNTIME_NETWORK_DNS_POLICY_NAME = "wildo-allow-dns";
77
+ /**
78
+ * A backing service a segment's members reach OFF the cluster (#3511): an environment that declares it MANAGED (a
79
+ * MongoDB Atlas cluster, a managed PostgreSQL, a managed broker) has no pod for it in the namespace, so the segment's
80
+ * pod-selector allow reaches nothing and the default-deny would cut its clients off. The deployment lane derives these
81
+ * from the environment's declared providers; this module only renders them.
82
+ */
83
+ export interface RuntimeNetworkOffClusterService {
84
+ /** The INTERNAL segment whose members are the service's clients. */
85
+ readonly network: WildoRuntimeNetwork;
86
+ /** The TCP ports the service answers on. */
87
+ readonly ports: readonly number[];
88
+ }
89
+ /** What the namespace's policy set depends on beyond the segment vocabulary. */
90
+ export interface RuntimeNetworkPolicyOptions {
91
+ /** The backing services served off the cluster, one egress allow per segment. Empty when everything is self-hosted. */
92
+ readonly offClusterServices?: readonly RuntimeNetworkOffClusterService[];
93
+ /**
94
+ * Whether certificates are issued in this namespace by an ACME HTTP-01 issuer (the remote cluster's cert-manager
95
+ * `ClusterIssuer`). cert-manager then creates a temporary solver pod in the namespace, which the ingress controller
96
+ * must reach for the challenge to be answered; under the default-deny it could not, and no certificate would issue.
97
+ */
98
+ readonly admitsAcmeHttp01Solver?: boolean;
99
+ }
100
+ /** The name of the off-cluster egress allow of one segment. */
101
+ export declare function runtimeNetworkOffClusterPolicyName(network: WildoRuntimeNetwork): string;
102
+ /**
103
+ * Every address, in both families: the destination of an off-cluster allow, which is then bounded by the service's
104
+ * ports and by the segment label rather than by an address range.
105
+ */
106
+ export declare const OFF_CLUSTER_ADDRESS_BLOCKS: readonly ["0.0.0.0/0", "::/0"];
107
+ /**
108
+ * cert-manager's ACME HTTP-01 solver pod: the label cert-manager puts on it and the port it listens on, read from
109
+ * cert-manager's source (`SolverIdentificationLabelKey`, `acmeSolverListenPort`). The pod is created in the namespace
110
+ * of the Challenge, which is the namespace of the Ingress that asked for the certificate, so this namespace.
111
+ *
112
+ * spec-cite: https://github.com/cert-manager/cert-manager/blob/master/pkg/apis/acme/v1/types.go —
113
+ * `SolverIdentificationLabelKey = "acme.cert-manager.io/http01-solver"`;
114
+ * https://github.com/cert-manager/cert-manager/blob/master/pkg/issuer/acme/http/http.go — `acmeSolverListenPort = 8089`;
115
+ * https://cert-manager.io/docs/configuration/acme/http01/ — "Network Policy Considerations" (allow the ingress controller
116
+ * to reach the temporary solver resources).
117
+ */
118
+ export declare const ACME_HTTP01_SOLVER_SELECTOR: {
119
+ readonly POD_LABELS: {
120
+ readonly 'acme.cert-manager.io/http01-solver': "true";
121
+ };
122
+ readonly PORT: 8089;
123
+ };
124
+ /** The name of the ingress allow for cert-manager's ACME HTTP-01 solver pods. */
125
+ export declare const ACME_HTTP01_SOLVER_POLICY_NAME = "wildo-allow-acme-http01-solver";
42
126
  /**
43
127
  * The static policy set for a namespace.
44
128
  *
@@ -47,17 +131,38 @@ export interface RuntimeNetworkPolicyDocument {
47
131
  * 1. **A default-deny for ingress AND egress.** Both, because an egress-only
48
132
  * policy still lets an unlabelled pod be REACHED, and the pair is what makes
49
133
  * absence-of-label mean denial.
50
- * 2. **One ingress policy per INTERNAL network**, admitting only pods carrying
51
- * that network's label. The backing service itself is selected by the same
52
- * label, so a service and its clients are described by one string.
53
- * 3. **One egress policy for `wildo-egress`**, the only door off the cluster
134
+ * 2. **A DNS egress allow for every pod** (#3372). A default-deny egress also
135
+ * denies the lookup that precedes every connection, so without it no pod can
136
+ * resolve the Service of a backing service it is otherwise allowed to reach.
137
+ * It opens the cluster DNS pods on port 53 and nothing else.
138
+ * 3. **One policy per INTERNAL network, in BOTH directions** (#3372): a pod carrying
139
+ * the network's label may reach, and be reached by, every other pod carrying
140
+ * it. Until #3372 this was ingress-only, and under a default-deny egress that
141
+ * meant no client could open a connection to its backing service at all; the
142
+ * backing-service pods carried no label either, so they were unreachable from
143
+ * both ends.
144
+ * 4. **An ingress allow for `wildo-edge`** (#3372): a pod serving a public route is
145
+ * reached through the ingress controller, which runs in another namespace (or
146
+ * on the node's network), so its ingress is open to every source. The edge is
147
+ * public by definition; segmenting it here would only cut the route the
148
+ * ingress object exists to provide. It grants the edge pod no egress.
149
+ * 5. **One egress policy for `wildo-egress`**, the only door off the cluster
54
150
  * below the edge, admitting only pods that AUTHORED the need.
151
+ * 6. **One egress policy per segment whose backing service is served OFF the
152
+ * cluster** (#3511), from `options.offClusterServices`: the segment's members
153
+ * may open a connection to any address on that service's ports, and nothing
154
+ * else. See {@link buildOffClusterServicePolicy} for why the destination is
155
+ * every address.
156
+ * 7. **An ingress allow for cert-manager's ACME HTTP-01 solver pods** (#3511),
157
+ * when `options.admitsAcmeHttp01Solver`: open to every source on the solver's
158
+ * port, for the same reason as the edge (the challenge arrives through the
159
+ * ingress controller, from the ACME server on the internet).
55
160
  *
56
161
  * ⚠️ The default-deny is inert until pods carry labels from
57
- * {@link buildRuntimeNetworkPodLabels}. Emitting the policies WITHOUT wiring the
58
- * labels would deny everything at the first deployment — so the two must land in
59
- * the same change. This is the reverse of the usual vacuity trap: not a control
60
- * that enforces nothing, but a control that enforces everything.
162
+ * {@link buildRuntimeNetworkPodLabels} / {@link buildNetworkMembershipPodLabels}.
163
+ * Emitting the policies WITHOUT wiring the labels denies everything at the first
164
+ * deployment — which is what #3372 found: the application runtimes were
165
+ * labelled, the backing services they dial were not.
61
166
  */
62
- export declare function buildRuntimeNetworkPolicyDocuments(namespace?: string): readonly RuntimeNetworkPolicyDocument[];
167
+ export declare function buildRuntimeNetworkPolicyDocuments(namespace?: string, options?: RuntimeNetworkPolicyOptions): readonly RuntimeNetworkPolicyDocument[];
63
168
  //# sourceMappingURL=runtime-network-policy.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"runtime-network-policy.d.ts","sourceRoot":"","sources":["../../../src/bootstrap/runtime-network-policy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AACjF,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAOjF;;;;;;;;;;;;;;;GAeG;AAEH,gEAAgE;AAChE,eAAO,MAAM,4BAA4B,kBAAkB,CAAC;AAE5D;;;;;;;GAOG;AACH,wBAAgB,4BAA4B,CAC1C,SAAS,EAAE,2BAA2B,GAAG,SAAS,EAClD,WAAW,CAAC,EAAE,wBAAwB,GAAG,SAAS,EAClD,OAAO,CAAC,EAAE;IAAE,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAA;CAAE,GAC1C,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAMxB;AAED,iFAAiF;AACjF,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,CAAC,UAAU,EAAE,sBAAsB,CAAC;IAC5C,QAAQ,CAAC,IAAI,EAAE,eAAe,CAAC;IAC/B,QAAQ,CAAC,QAAQ,EAAE;QAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC1E,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACxC;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,kCAAkC,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,4BAA4B,EAAE,CAoD9G"}
1
+ {"version":3,"file":"runtime-network-policy.d.ts","sourceRoot":"","sources":["../../../src/bootstrap/runtime-network-policy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AACjF,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AACjF,OAAO,EACL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