@venizia/ignis-atlas 0.1.0-1

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 (436) hide show
  1. package/LICENSE.md +104 -0
  2. package/README.md +144 -0
  3. package/dist/cjs/cli/modes.d.ts +29 -0
  4. package/dist/cjs/cli/modes.d.ts.map +1 -0
  5. package/dist/cjs/cli/modes.js +70 -0
  6. package/dist/cjs/cli/modes.js.map +1 -0
  7. package/dist/cjs/cli.d.ts +3 -0
  8. package/dist/cjs/cli.d.ts.map +1 -0
  9. package/dist/cjs/cli.js +60 -0
  10. package/dist/cjs/cli.js.map +1 -0
  11. package/dist/cjs/common/constants.d.ts +22 -0
  12. package/dist/cjs/common/constants.d.ts.map +1 -0
  13. package/dist/cjs/common/constants.js +32 -0
  14. package/dist/cjs/common/constants.js.map +1 -0
  15. package/dist/cjs/common/index.d.ts +3 -0
  16. package/dist/cjs/common/index.d.ts.map +1 -0
  17. package/dist/cjs/common/index.js +19 -0
  18. package/dist/cjs/common/index.js.map +1 -0
  19. package/dist/cjs/common/logger.d.ts +21 -0
  20. package/dist/cjs/common/logger.d.ts.map +1 -0
  21. package/dist/cjs/common/logger.js +50 -0
  22. package/dist/cjs/common/logger.js.map +1 -0
  23. package/dist/cjs/common/types.d.ts +5 -0
  24. package/dist/cjs/common/types.d.ts.map +1 -0
  25. package/dist/cjs/common/types.js +3 -0
  26. package/dist/cjs/common/types.js.map +1 -0
  27. package/dist/cjs/corpus/chunker.d.ts +12 -0
  28. package/dist/cjs/corpus/chunker.d.ts.map +1 -0
  29. package/dist/cjs/corpus/chunker.js +298 -0
  30. package/dist/cjs/corpus/chunker.js.map +1 -0
  31. package/dist/cjs/corpus/common/index.d.ts +2 -0
  32. package/dist/cjs/corpus/common/index.d.ts.map +1 -0
  33. package/dist/cjs/corpus/common/index.js +18 -0
  34. package/dist/cjs/corpus/common/index.js.map +1 -0
  35. package/dist/cjs/corpus/common/types.d.ts +37 -0
  36. package/dist/cjs/corpus/common/types.d.ts.map +1 -0
  37. package/dist/cjs/corpus/common/types.js +3 -0
  38. package/dist/cjs/corpus/common/types.js.map +1 -0
  39. package/dist/cjs/corpus/frontmatter.d.ts +13 -0
  40. package/dist/cjs/corpus/frontmatter.d.ts.map +1 -0
  41. package/dist/cjs/corpus/frontmatter.js +31 -0
  42. package/dist/cjs/corpus/frontmatter.js.map +1 -0
  43. package/dist/cjs/corpus/index.d.ts +6 -0
  44. package/dist/cjs/corpus/index.d.ts.map +1 -0
  45. package/dist/cjs/corpus/index.js +22 -0
  46. package/dist/cjs/corpus/index.js.map +1 -0
  47. package/dist/cjs/corpus/loader.d.ts +16 -0
  48. package/dist/cjs/corpus/loader.d.ts.map +1 -0
  49. package/dist/cjs/corpus/loader.js +72 -0
  50. package/dist/cjs/corpus/loader.js.map +1 -0
  51. package/dist/cjs/corpus/roots.d.ts +9 -0
  52. package/dist/cjs/corpus/roots.d.ts.map +1 -0
  53. package/dist/cjs/corpus/roots.js +30 -0
  54. package/dist/cjs/corpus/roots.js.map +1 -0
  55. package/dist/cjs/index.d.ts +2 -0
  56. package/dist/cjs/index.d.ts.map +1 -0
  57. package/dist/cjs/index.js +18 -0
  58. package/dist/cjs/index.js.map +1 -0
  59. package/dist/cjs/protocol/common/constants.d.ts +9 -0
  60. package/dist/cjs/protocol/common/constants.d.ts.map +1 -0
  61. package/dist/cjs/protocol/common/constants.js +13 -0
  62. package/dist/cjs/protocol/common/constants.js.map +1 -0
  63. package/dist/cjs/protocol/common/index.d.ts +4 -0
  64. package/dist/cjs/protocol/common/index.d.ts.map +1 -0
  65. package/dist/cjs/protocol/common/index.js +20 -0
  66. package/dist/cjs/protocol/common/index.js.map +1 -0
  67. package/dist/cjs/protocol/common/rpc-error.d.ts +9 -0
  68. package/dist/cjs/protocol/common/rpc-error.d.ts.map +1 -0
  69. package/dist/cjs/protocol/common/rpc-error.js +12 -0
  70. package/dist/cjs/protocol/common/rpc-error.js.map +1 -0
  71. package/dist/cjs/protocol/common/types.d.ts +32 -0
  72. package/dist/cjs/protocol/common/types.d.ts.map +1 -0
  73. package/dist/cjs/protocol/common/types.js +3 -0
  74. package/dist/cjs/protocol/common/types.js.map +1 -0
  75. package/dist/cjs/protocol/index.d.ts +3 -0
  76. package/dist/cjs/protocol/index.d.ts.map +1 -0
  77. package/dist/cjs/protocol/index.js +19 -0
  78. package/dist/cjs/protocol/index.js.map +1 -0
  79. package/dist/cjs/protocol/transport.d.ts +28 -0
  80. package/dist/cjs/protocol/transport.d.ts.map +1 -0
  81. package/dist/cjs/protocol/transport.js +155 -0
  82. package/dist/cjs/protocol/transport.js.map +1 -0
  83. package/dist/cjs/search/common/constants.d.ts +23 -0
  84. package/dist/cjs/search/common/constants.d.ts.map +1 -0
  85. package/dist/cjs/search/common/constants.js +56 -0
  86. package/dist/cjs/search/common/constants.js.map +1 -0
  87. package/dist/cjs/search/common/index.d.ts +3 -0
  88. package/dist/cjs/search/common/index.d.ts.map +1 -0
  89. package/dist/cjs/search/common/index.js +19 -0
  90. package/dist/cjs/search/common/index.js.map +1 -0
  91. package/dist/cjs/search/common/types.d.ts +18 -0
  92. package/dist/cjs/search/common/types.d.ts.map +1 -0
  93. package/dist/cjs/search/common/types.js +3 -0
  94. package/dist/cjs/search/common/types.js.map +1 -0
  95. package/dist/cjs/search/index.d.ts +4 -0
  96. package/dist/cjs/search/index.d.ts.map +1 -0
  97. package/dist/cjs/search/index.js +20 -0
  98. package/dist/cjs/search/index.js.map +1 -0
  99. package/dist/cjs/search/planner.d.ts +13 -0
  100. package/dist/cjs/search/planner.d.ts.map +1 -0
  101. package/dist/cjs/search/planner.js +58 -0
  102. package/dist/cjs/search/planner.js.map +1 -0
  103. package/dist/cjs/search/store.d.ts +37 -0
  104. package/dist/cjs/search/store.d.ts.map +1 -0
  105. package/dist/cjs/search/store.js +141 -0
  106. package/dist/cjs/search/store.js.map +1 -0
  107. package/dist/cjs/server/freshness.d.ts +40 -0
  108. package/dist/cjs/server/freshness.d.ts.map +1 -0
  109. package/dist/cjs/server/freshness.js +85 -0
  110. package/dist/cjs/server/freshness.js.map +1 -0
  111. package/dist/cjs/server.d.ts +12 -0
  112. package/dist/cjs/server.d.ts.map +1 -0
  113. package/dist/cjs/server.js +65 -0
  114. package/dist/cjs/server.js.map +1 -0
  115. package/dist/cjs/tools/common/index.d.ts +2 -0
  116. package/dist/cjs/tools/common/index.d.ts.map +1 -0
  117. package/dist/cjs/tools/common/index.js +18 -0
  118. package/dist/cjs/tools/common/index.js.map +1 -0
  119. package/dist/cjs/tools/common/schemas.d.ts +23 -0
  120. package/dist/cjs/tools/common/schemas.d.ts.map +1 -0
  121. package/dist/cjs/tools/common/schemas.js +37 -0
  122. package/dist/cjs/tools/common/schemas.js.map +1 -0
  123. package/dist/cjs/tools/get.tool.d.ts +6 -0
  124. package/dist/cjs/tools/get.tool.d.ts.map +1 -0
  125. package/dist/cjs/tools/get.tool.js +115 -0
  126. package/dist/cjs/tools/get.tool.js.map +1 -0
  127. package/dist/cjs/tools/index.d.ts +4 -0
  128. package/dist/cjs/tools/index.d.ts.map +1 -0
  129. package/dist/cjs/tools/index.js +20 -0
  130. package/dist/cjs/tools/index.js.map +1 -0
  131. package/dist/cjs/tools/search.tool.d.ts +6 -0
  132. package/dist/cjs/tools/search.tool.d.ts.map +1 -0
  133. package/dist/cjs/tools/search.tool.js +58 -0
  134. package/dist/cjs/tools/search.tool.js.map +1 -0
  135. package/dist/corpus/changelogs/2025-12-16-initial-architecture.md +145 -0
  136. package/dist/corpus/changelogs/2025-12-16-model-repo-datasource-refactor.md +300 -0
  137. package/dist/corpus/changelogs/2025-12-17-refactor.md +90 -0
  138. package/dist/corpus/changelogs/2025-12-18-performance-optimizations.md +130 -0
  139. package/dist/corpus/changelogs/2025-12-18-repository-validation-security.md +255 -0
  140. package/dist/corpus/changelogs/2025-12-26-nested-relations-and-generics.md +86 -0
  141. package/dist/corpus/changelogs/2025-12-26-transaction-support.md +57 -0
  142. package/dist/corpus/changelogs/2025-12-29-dynamic-binding-registration.md +104 -0
  143. package/dist/corpus/changelogs/2025-12-29-snowflake-uid-helper.md +100 -0
  144. package/dist/corpus/changelogs/2025-12-30-repository-enhancements.md +214 -0
  145. package/dist/corpus/changelogs/2025-12-31-json-path-filtering-array-operators.md +214 -0
  146. package/dist/corpus/changelogs/2025-12-31-string-id-custom-generator.md +137 -0
  147. package/dist/corpus/changelogs/2026-01-02-default-filter-and-repository-mixins.md +421 -0
  148. package/dist/corpus/changelogs/2026-01-05-range-queries-content-range.md +184 -0
  149. package/dist/corpus/changelogs/2026-01-06-basic-authentication.md +103 -0
  150. package/dist/corpus/changelogs/2026-01-07-controller-route-customization.md +190 -0
  151. package/dist/corpus/changelogs/2026-01-11-logger-optimization-hf-logger.md +254 -0
  152. package/dist/corpus/changelogs/2026-02-06-socket-io-integration-fix.md +541 -0
  153. package/dist/corpus/changelogs/2026-02-10-websocket-heartbeat-payload.md +173 -0
  154. package/dist/corpus/changelogs/2026-02-11-crypto-refactor-ecdh.md +217 -0
  155. package/dist/corpus/changelogs/2026-02-11-websocket-encrypted-delivery.md +209 -0
  156. package/dist/corpus/changelogs/2026-02-11-websocket-generic-types.md +134 -0
  157. package/dist/corpus/changelogs/2026-02-16-authorization-system.md +378 -0
  158. package/dist/corpus/changelogs/2026-02-26-core-helpers-decoupling.md +145 -0
  159. package/dist/corpus/changelogs/2026-02-27-jwks-authentication.md +391 -0
  160. package/dist/corpus/changelogs/2026-03-02-model-authorize-settings.md +155 -0
  161. package/dist/corpus/changelogs/2026-03-04-jwt-payload-field-codecs.md +219 -0
  162. package/dist/corpus/changelogs/2026-03-06-filter-offset-skip-fix.md +88 -0
  163. package/dist/corpus/changelogs/2026-03-10-kafka-helpers-refactor.md +225 -0
  164. package/dist/corpus/changelogs/2026-03-12-kafka-helpers-enhancement.md +169 -0
  165. package/dist/corpus/changelogs/2026-03-15-grpc-controller-system.md +281 -0
  166. package/dist/corpus/changelogs/2026-03-30-row-level-locking.md +134 -0
  167. package/dist/corpus/changelogs/2026-03-31-typescript-6-and-toolchain.md +100 -0
  168. package/dist/corpus/changelogs/2026-04-23-error-response-extra-fields.md +131 -0
  169. package/dist/corpus/changelogs/2026-05-05-refresh-token-endpoint.md +116 -0
  170. package/dist/corpus/changelogs/2026-05-08-crud-route-toggles-and-typed-responses.md +136 -0
  171. package/dist/corpus/changelogs/2026-05-20-relation-scope-default-limit.md +133 -0
  172. package/dist/corpus/changelogs/2026-05-21-mass-mutation-guards.md +102 -0
  173. package/dist/corpus/changelogs/2026-05-22-casbin-adapter-schema-qualification.md +72 -0
  174. package/dist/corpus/changelogs/2026-05-25-per-model-default-limit.md +68 -0
  175. package/dist/corpus/changelogs/2026-05-27-casbin-domain-matching-function.md +90 -0
  176. package/dist/corpus/changelogs/2026-06-02-authorize-scoped-rbac.md +105 -0
  177. package/dist/corpus/changelogs/2026-06-14-validation-codes-and-error-hardening.md +124 -0
  178. package/dist/corpus/changelogs/2026-06-18-auth-user-information-endpoint.md +69 -0
  179. package/dist/corpus/changelogs/2026-06-25-redis-helpers-refactor.md +199 -0
  180. package/dist/corpus/changelogs/2026-07-05-unified-repository-connectors.md +206 -0
  181. package/dist/corpus/changelogs/2026-07-08-typesense-advanced-search.md +72 -0
  182. package/dist/corpus/changelogs/2026-07-11-connectors-consistency-hardening.md +192 -0
  183. package/dist/corpus/changelogs/2026-07-11-postgres-driver-seam-supabase.md +146 -0
  184. package/dist/corpus/changelogs/2026-07-12-core-consolidation-dedup.md +127 -0
  185. package/dist/corpus/changelogs/2026-07-13-hardening-round.md +99 -0
  186. package/dist/corpus/changelogs/2026-07-14-driver-class-bundling.md +100 -0
  187. package/dist/corpus/changelogs/2026-07-16-error-catalog-and-structured-message.md +64 -0
  188. package/dist/corpus/changelogs/2026-07-16-secrets-vault-integration.md +72 -0
  189. package/dist/corpus/changelogs/2026-07-17-error-module-redesign.md +202 -0
  190. package/dist/corpus/changelogs/2026-07-17-logger-correctness-pass.md +46 -0
  191. package/dist/corpus/changelogs/2026-07-17-secrets-bundler-invisible-peers.md +30 -0
  192. package/dist/corpus/changelogs/2026-07-18-dependency-refresh.md +55 -0
  193. package/dist/corpus/changelogs/2026-07-18-logger-overhaul.md +104 -0
  194. package/dist/corpus/changelogs/2026-07-18-repository-read-retry.md +74 -0
  195. package/dist/corpus/changelogs/2026-07-20-casbin-custom-grants.md +72 -0
  196. package/dist/corpus/changelogs/2026-07-20-casbin-single-wave-extraction.md +58 -0
  197. package/dist/corpus/changelogs/2026-07-20-error-from-error-client.md +66 -0
  198. package/dist/corpus/changelogs/2026-07-21-casbin-connector-resolution-fix.md +36 -0
  199. package/dist/corpus/changelogs/2026-07-25-error-logging.md +129 -0
  200. package/dist/corpus/changelogs/2026-07-25-ignis-filter-package.md +75 -0
  201. package/dist/corpus/changelogs/2026-07-26-search-and-mail-error-codes.md +58 -0
  202. package/dist/corpus/changelogs/2026-08-01-relational-connector-lift.md +403 -0
  203. package/dist/corpus/changelogs/2026-08-02-sqlite-and-pglite-connectors.md +177 -0
  204. package/dist/corpus/changelogs/2026-08-05-search-dialect-relational-parity.md +90 -0
  205. package/dist/corpus/changelogs/2026-08-06-aes-pbkdf2-and-key-rotation.md +131 -0
  206. package/dist/corpus/changelogs/2026-08-07-default-query-by.md +62 -0
  207. package/dist/corpus/changelogs/2026-08-07-nested-fields-and-order-validation.md +75 -0
  208. package/dist/corpus/changelogs/2026-08-07-typesense-multi-search-transport.md +97 -0
  209. package/dist/corpus/changelogs/2026-08-12-json-log-arguments.md +69 -0
  210. package/dist/corpus/changelogs/2026-08-13-browser-pure-kernel.md +130 -0
  211. package/dist/corpus/changelogs/2026-08-18-esm-builds-and-one-default-stack.md +104 -0
  212. package/dist/corpus/changelogs/2026-08-18-opaque-uid-helper.md +43 -0
  213. package/dist/corpus/changelogs/2026-08-19-browser-bff-multi-tab.md +88 -0
  214. package/dist/corpus/changelogs/2026-08-19-service-authentication-phase-1.md +157 -0
  215. package/dist/corpus/changelogs/2026-08-21-service-authentication-strategy.md +127 -0
  216. package/dist/corpus/changelogs/2026-08-22-logger-color-off-outside-development.md +48 -0
  217. package/dist/corpus/changelogs/2026-08-24-query-wrapper-schemas.md +77 -0
  218. package/dist/corpus/changelogs/2026-08-29-casbin-domain-hierarchy.md +66 -0
  219. package/dist/corpus/changelogs/2026-08-30-authorize-no-enforcer-fails-closed.md +60 -0
  220. package/dist/corpus/changelogs/2026-08-30-crypto-hashing.md +158 -0
  221. package/dist/corpus/changelogs/2026-08-30-policy-definition-extra-variants.md +62 -0
  222. package/dist/corpus/changelogs/2026-08-30-row-scope-filter.md +221 -0
  223. package/dist/corpus/changelogs/2026-08-30-search-connector-health-and-import-contract.md +46 -0
  224. package/dist/corpus/changelogs/2026-08-30-tree-and-recursive-sql.md +188 -0
  225. package/dist/corpus/changelogs/2026-08-30-typed-where-clauses.md +114 -0
  226. package/dist/corpus/changelogs/2026-08-31-entity-id-brand.md +70 -0
  227. package/dist/corpus/changelogs/2026-08-31-event-bus-retry.md +143 -0
  228. package/dist/corpus/changelogs/2026-08-31-policy-domain-split-release-b.md +54 -0
  229. package/dist/corpus/changelogs/2026-08-31-policy-domain-split.md +175 -0
  230. package/dist/corpus/changelogs/2026-08-31-scope-filter-boot-checks.md +77 -0
  231. package/dist/corpus/changelogs/2026-09-02-bundle-safe-helpers.md +71 -0
  232. package/dist/corpus/changelogs/2026-09-02-decorator-artifact-registration.md +119 -0
  233. package/dist/corpus/changelogs/2026-09-03-deprecated-boot-api-removed.md +133 -0
  234. package/dist/corpus/changelogs/2026-09-04-dependency-floors-raised.md +61 -0
  235. package/dist/corpus/changelogs/2026-09-05-boot-checks.md +57 -0
  236. package/dist/corpus/changelogs/2026-09-05-core-drops-boot-dependency.md +44 -0
  237. package/dist/corpus/changelogs/2026-09-05-list-response-contract.md +74 -0
  238. package/dist/corpus/changelogs/2026-09-06-bun-serve-options.md +51 -0
  239. package/dist/corpus/changelogs/2026-09-06-ignis-atlas.md +54 -0
  240. package/dist/corpus/changelogs/2026-09-06-repository-inheritance-and-quiet-cli.md +46 -0
  241. package/dist/corpus/changelogs/2026-09-06-shared-singletons-across-module-copies.md +43 -0
  242. package/dist/corpus/changelogs/index.md +135 -0
  243. package/dist/corpus/changelogs/planned-schema-migrator.md +553 -0
  244. package/dist/corpus/changelogs/template.md +64 -0
  245. package/dist/corpus/wiki/best-practices/api-usage-examples.md +617 -0
  246. package/dist/corpus/wiki/best-practices/architectural-patterns.md +437 -0
  247. package/dist/corpus/wiki/best-practices/architecture-decisions.md +524 -0
  248. package/dist/corpus/wiki/best-practices/code-style-standards/advanced-patterns.md +283 -0
  249. package/dist/corpus/wiki/best-practices/code-style-standards/constants-configuration.md +240 -0
  250. package/dist/corpus/wiki/best-practices/code-style-standards/control-flow.md +280 -0
  251. package/dist/corpus/wiki/best-practices/code-style-standards/documentation.md +241 -0
  252. package/dist/corpus/wiki/best-practices/code-style-standards/function-patterns.md +178 -0
  253. package/dist/corpus/wiki/best-practices/code-style-standards/index.md +114 -0
  254. package/dist/corpus/wiki/best-practices/code-style-standards/naming-conventions.md +200 -0
  255. package/dist/corpus/wiki/best-practices/code-style-standards/route-definitions.md +205 -0
  256. package/dist/corpus/wiki/best-practices/code-style-standards/tooling.md +168 -0
  257. package/dist/corpus/wiki/best-practices/code-style-standards/type-safety.md +199 -0
  258. package/dist/corpus/wiki/best-practices/common-pitfalls.md +447 -0
  259. package/dist/corpus/wiki/best-practices/contribution-workflow.md +211 -0
  260. package/dist/corpus/wiki/best-practices/data-modeling.md +548 -0
  261. package/dist/corpus/wiki/best-practices/deployment-strategies.md +736 -0
  262. package/dist/corpus/wiki/best-practices/error-handling.md +604 -0
  263. package/dist/corpus/wiki/best-practices/index.md +206 -0
  264. package/dist/corpus/wiki/best-practices/performance-optimization.md +437 -0
  265. package/dist/corpus/wiki/best-practices/security-guidelines.md +523 -0
  266. package/dist/corpus/wiki/best-practices/testing-strategies.md +639 -0
  267. package/dist/corpus/wiki/best-practices/troubleshooting-tips.md +227 -0
  268. package/dist/corpus/wiki/extensions/atlas/index.md +65 -0
  269. package/dist/corpus/wiki/extensions/components/api-reference.md +268 -0
  270. package/dist/corpus/wiki/extensions/components/authentication/api.md +643 -0
  271. package/dist/corpus/wiki/extensions/components/authentication/errors.md +211 -0
  272. package/dist/corpus/wiki/extensions/components/authentication/index.md +171 -0
  273. package/dist/corpus/wiki/extensions/components/authentication/usage.md +464 -0
  274. package/dist/corpus/wiki/extensions/components/authorization/api.md +1509 -0
  275. package/dist/corpus/wiki/extensions/components/authorization/errors.md +397 -0
  276. package/dist/corpus/wiki/extensions/components/authorization/getting-started.md +227 -0
  277. package/dist/corpus/wiki/extensions/components/authorization/index.md +155 -0
  278. package/dist/corpus/wiki/extensions/components/authorization/usage.md +587 -0
  279. package/dist/corpus/wiki/extensions/components/health-check.md +227 -0
  280. package/dist/corpus/wiki/extensions/components/index.md +26 -0
  281. package/dist/corpus/wiki/extensions/components/mail/api.md +773 -0
  282. package/dist/corpus/wiki/extensions/components/mail/errors.md +190 -0
  283. package/dist/corpus/wiki/extensions/components/mail/index.md +182 -0
  284. package/dist/corpus/wiki/extensions/components/mail/usage.md +370 -0
  285. package/dist/corpus/wiki/extensions/components/request-tracker.md +152 -0
  286. package/dist/corpus/wiki/extensions/components/socket-io/api.md +728 -0
  287. package/dist/corpus/wiki/extensions/components/socket-io/errors.md +119 -0
  288. package/dist/corpus/wiki/extensions/components/socket-io/index.md +116 -0
  289. package/dist/corpus/wiki/extensions/components/socket-io/usage.md +429 -0
  290. package/dist/corpus/wiki/extensions/components/static-asset/api.md +593 -0
  291. package/dist/corpus/wiki/extensions/components/static-asset/errors.md +159 -0
  292. package/dist/corpus/wiki/extensions/components/static-asset/index.md +160 -0
  293. package/dist/corpus/wiki/extensions/components/static-asset/usage.md +253 -0
  294. package/dist/corpus/wiki/extensions/components/template/api-page.md +125 -0
  295. package/dist/corpus/wiki/extensions/components/template/errors-page.md +100 -0
  296. package/dist/corpus/wiki/extensions/components/template/index.md +104 -0
  297. package/dist/corpus/wiki/extensions/components/template/setup-page.md +134 -0
  298. package/dist/corpus/wiki/extensions/components/template/single-page.md +132 -0
  299. package/dist/corpus/wiki/extensions/components/template/usage-page.md +127 -0
  300. package/dist/corpus/wiki/extensions/components/websocket/api.md +416 -0
  301. package/dist/corpus/wiki/extensions/components/websocket/errors.md +128 -0
  302. package/dist/corpus/wiki/extensions/components/websocket/index.md +127 -0
  303. package/dist/corpus/wiki/extensions/components/websocket/usage.md +257 -0
  304. package/dist/corpus/wiki/extensions/helpers/cron/index.md +116 -0
  305. package/dist/corpus/wiki/extensions/helpers/crypto/index.md +136 -0
  306. package/dist/corpus/wiki/extensions/helpers/crypto/reference.md +544 -0
  307. package/dist/corpus/wiki/extensions/helpers/env/index.md +119 -0
  308. package/dist/corpus/wiki/extensions/helpers/error/index.md +373 -0
  309. package/dist/corpus/wiki/extensions/helpers/index.md +63 -0
  310. package/dist/corpus/wiki/extensions/helpers/inversion/index.md +142 -0
  311. package/dist/corpus/wiki/extensions/helpers/inversion/reference.md +531 -0
  312. package/dist/corpus/wiki/extensions/helpers/kafka/admin.md +210 -0
  313. package/dist/corpus/wiki/extensions/helpers/kafka/compile-binary.md +125 -0
  314. package/dist/corpus/wiki/extensions/helpers/kafka/consumer.md +422 -0
  315. package/dist/corpus/wiki/extensions/helpers/kafka/examples.md +154 -0
  316. package/dist/corpus/wiki/extensions/helpers/kafka/index.md +84 -0
  317. package/dist/corpus/wiki/extensions/helpers/kafka/producer.md +408 -0
  318. package/dist/corpus/wiki/extensions/helpers/kafka/schema-registry.md +194 -0
  319. package/dist/corpus/wiki/extensions/helpers/logger/hf-logger.md +220 -0
  320. package/dist/corpus/wiki/extensions/helpers/logger/index.md +156 -0
  321. package/dist/corpus/wiki/extensions/helpers/logger/pino.md +107 -0
  322. package/dist/corpus/wiki/extensions/helpers/logger/reference.md +938 -0
  323. package/dist/corpus/wiki/extensions/helpers/network/api.md +1067 -0
  324. package/dist/corpus/wiki/extensions/helpers/network/index.md +189 -0
  325. package/dist/corpus/wiki/extensions/helpers/queue/index.md +165 -0
  326. package/dist/corpus/wiki/extensions/helpers/queue/reference.md +490 -0
  327. package/dist/corpus/wiki/extensions/helpers/redis/index.md +159 -0
  328. package/dist/corpus/wiki/extensions/helpers/redis/reference.md +784 -0
  329. package/dist/corpus/wiki/extensions/helpers/secrets/index.md +136 -0
  330. package/dist/corpus/wiki/extensions/helpers/socket-io/api.md +618 -0
  331. package/dist/corpus/wiki/extensions/helpers/socket-io/index.md +167 -0
  332. package/dist/corpus/wiki/extensions/helpers/storage/api.md +1021 -0
  333. package/dist/corpus/wiki/extensions/helpers/storage/index.md +162 -0
  334. package/dist/corpus/wiki/extensions/helpers/template/index.md +69 -0
  335. package/dist/corpus/wiki/extensions/helpers/template/single-page.md +126 -0
  336. package/dist/corpus/wiki/extensions/helpers/types/index.md +143 -0
  337. package/dist/corpus/wiki/extensions/helpers/types/reference.md +708 -0
  338. package/dist/corpus/wiki/extensions/helpers/uid/index.md +259 -0
  339. package/dist/corpus/wiki/extensions/helpers/websocket/api.md +888 -0
  340. package/dist/corpus/wiki/extensions/helpers/websocket/index.md +139 -0
  341. package/dist/corpus/wiki/extensions/helpers/worker-thread/index.md +142 -0
  342. package/dist/corpus/wiki/extensions/helpers/worker-thread/reference.md +434 -0
  343. package/dist/corpus/wiki/extensions/index.md +46 -0
  344. package/dist/corpus/wiki/guides/core-concepts/application/bootstrapping.md +274 -0
  345. package/dist/corpus/wiki/guides/core-concepts/application/index.md +239 -0
  346. package/dist/corpus/wiki/guides/core-concepts/components-guide.md +513 -0
  347. package/dist/corpus/wiki/guides/core-concepts/components.md +155 -0
  348. package/dist/corpus/wiki/guides/core-concepts/dependency-injection.md +336 -0
  349. package/dist/corpus/wiki/guides/core-concepts/grpc-controllers.md +296 -0
  350. package/dist/corpus/wiki/guides/core-concepts/persistent/datasources.md +195 -0
  351. package/dist/corpus/wiki/guides/core-concepts/persistent/index.md +132 -0
  352. package/dist/corpus/wiki/guides/core-concepts/persistent/models.md +331 -0
  353. package/dist/corpus/wiki/guides/core-concepts/persistent/pglite.md +218 -0
  354. package/dist/corpus/wiki/guides/core-concepts/persistent/postgres-drivers.md +207 -0
  355. package/dist/corpus/wiki/guides/core-concepts/persistent/repositories.md +311 -0
  356. package/dist/corpus/wiki/guides/core-concepts/persistent/search-meilisearch.md +195 -0
  357. package/dist/corpus/wiki/guides/core-concepts/persistent/search-typesense.md +443 -0
  358. package/dist/corpus/wiki/guides/core-concepts/persistent/sqlite.md +296 -0
  359. package/dist/corpus/wiki/guides/core-concepts/persistent/transactions.md +238 -0
  360. package/dist/corpus/wiki/guides/core-concepts/rest-controllers.md +465 -0
  361. package/dist/corpus/wiki/guides/core-concepts/secrets-vault.md +177 -0
  362. package/dist/corpus/wiki/guides/core-concepts/services.md +389 -0
  363. package/dist/corpus/wiki/guides/get-started/5-minute-quickstart.md +163 -0
  364. package/dist/corpus/wiki/guides/get-started/philosophy.md +135 -0
  365. package/dist/corpus/wiki/guides/get-started/setup.md +136 -0
  366. package/dist/corpus/wiki/guides/index.md +82 -0
  367. package/dist/corpus/wiki/guides/migrations/boot-api-removal-migration.md +79 -0
  368. package/dist/corpus/wiki/guides/migrations/redis-helpers-migration.md +178 -0
  369. package/dist/corpus/wiki/guides/migrations/scoped-rbac-migration.md +300 -0
  370. package/dist/corpus/wiki/guides/migrations/unified-connectors-migration.md +114 -0
  371. package/dist/corpus/wiki/guides/reference/glossary.md +250 -0
  372. package/dist/corpus/wiki/guides/tutorials/building-a-crud-api.md +704 -0
  373. package/dist/corpus/wiki/guides/tutorials/complete-installation.md +440 -0
  374. package/dist/corpus/wiki/guides/tutorials/ecommerce-api.md +1442 -0
  375. package/dist/corpus/wiki/guides/tutorials/realtime-chat.md +1571 -0
  376. package/dist/corpus/wiki/guides/tutorials/testing.md +264 -0
  377. package/dist/corpus/wiki/index.md +5 -0
  378. package/dist/corpus/wiki/public/apple-touch-icon.png +0 -0
  379. package/dist/corpus/wiki/public/logo.svg +1 -0
  380. package/dist/corpus/wiki/public/og-image.png +0 -0
  381. package/dist/corpus/wiki/public/site.webmanifest +11 -0
  382. package/dist/corpus/wiki/references/base/application.md +482 -0
  383. package/dist/corpus/wiki/references/base/bootstrapping.md +351 -0
  384. package/dist/corpus/wiki/references/base/components.md +883 -0
  385. package/dist/corpus/wiki/references/base/connectors.md +121 -0
  386. package/dist/corpus/wiki/references/base/controllers.md +1022 -0
  387. package/dist/corpus/wiki/references/base/datasources-reference.md +598 -0
  388. package/dist/corpus/wiki/references/base/datasources.md +165 -0
  389. package/dist/corpus/wiki/references/base/dependency-injection.md +423 -0
  390. package/dist/corpus/wiki/references/base/filter-system/application-usage.md +215 -0
  391. package/dist/corpus/wiki/references/base/filter-system/array-operators.md +135 -0
  392. package/dist/corpus/wiki/references/base/filter-system/comparison-operators.md +110 -0
  393. package/dist/corpus/wiki/references/base/filter-system/default-filter.md +267 -0
  394. package/dist/corpus/wiki/references/base/filter-system/fields-order-pagination.md +244 -0
  395. package/dist/corpus/wiki/references/base/filter-system/index.md +149 -0
  396. package/dist/corpus/wiki/references/base/filter-system/json-filtering.md +122 -0
  397. package/dist/corpus/wiki/references/base/filter-system/list-operators.md +56 -0
  398. package/dist/corpus/wiki/references/base/filter-system/logical-operators.md +148 -0
  399. package/dist/corpus/wiki/references/base/filter-system/null-operators.md +80 -0
  400. package/dist/corpus/wiki/references/base/filter-system/pattern-matching.md +105 -0
  401. package/dist/corpus/wiki/references/base/filter-system/quick-reference.md +172 -0
  402. package/dist/corpus/wiki/references/base/filter-system/range-operators.md +53 -0
  403. package/dist/corpus/wiki/references/base/filter-system/tips.md +154 -0
  404. package/dist/corpus/wiki/references/base/filter-system/use-cases.md +394 -0
  405. package/dist/corpus/wiki/references/base/grpc-controllers.md +1020 -0
  406. package/dist/corpus/wiki/references/base/index.md +112 -0
  407. package/dist/corpus/wiki/references/base/middlewares.md +543 -0
  408. package/dist/corpus/wiki/references/base/models-reference.md +886 -0
  409. package/dist/corpus/wiki/references/base/models.md +154 -0
  410. package/dist/corpus/wiki/references/base/providers.md +728 -0
  411. package/dist/corpus/wiki/references/base/repositories/advanced.md +627 -0
  412. package/dist/corpus/wiki/references/base/repositories/index.md +152 -0
  413. package/dist/corpus/wiki/references/base/repositories/mixins.md +103 -0
  414. package/dist/corpus/wiki/references/base/repositories/relations.md +379 -0
  415. package/dist/corpus/wiki/references/base/repositories/soft-deletable.md +307 -0
  416. package/dist/corpus/wiki/references/base/secrets.md +267 -0
  417. package/dist/corpus/wiki/references/base/services.md +417 -0
  418. package/dist/corpus/wiki/references/configuration/environment-variables.md +498 -0
  419. package/dist/corpus/wiki/references/configuration/index.md +132 -0
  420. package/dist/corpus/wiki/references/index.md +172 -0
  421. package/dist/corpus/wiki/references/quick-reference.md +594 -0
  422. package/dist/corpus/wiki/references/utilities/date.md +50 -0
  423. package/dist/corpus/wiki/references/utilities/duration.md +85 -0
  424. package/dist/corpus/wiki/references/utilities/index.md +81 -0
  425. package/dist/corpus/wiki/references/utilities/jsx-reference.md +298 -0
  426. package/dist/corpus/wiki/references/utilities/jsx.md +131 -0
  427. package/dist/corpus/wiki/references/utilities/module.md +110 -0
  428. package/dist/corpus/wiki/references/utilities/parse.md +55 -0
  429. package/dist/corpus/wiki/references/utilities/performance.md +54 -0
  430. package/dist/corpus/wiki/references/utilities/promise.md +54 -0
  431. package/dist/corpus/wiki/references/utilities/request.md +85 -0
  432. package/dist/corpus/wiki/references/utilities/retry.md +148 -0
  433. package/dist/corpus/wiki/references/utilities/schema.md +69 -0
  434. package/dist/corpus/wiki/references/utilities/statuses-reference.md +360 -0
  435. package/dist/corpus/wiki/references/utilities/statuses.md +122 -0
  436. package/package.json +74 -0
@@ -0,0 +1,130 @@
1
+ ---
2
+ title: A Browser-Pure Kernel Under `@venizia/ignis`
3
+ description: The half of IGNIS that never needed a server now lives in its own package, guarded by a build gate. Every import you already write keeps working.
4
+ ---
5
+
6
+ # Changelog - 2026-08-13
7
+
8
+ ## A Browser-Pure Kernel Under `@venizia/ignis`
9
+
10
+ <Badge type="tip" text="New Feature" /> <Badge type="tip" text="Enhancement" /> <Badge type="info" text="Internal Refactor" />
11
+
12
+ **In one line.** IGNIS split into a browser-pure kernel and a server layer, and nothing you import changed.
13
+
14
+ ## What changed
15
+
16
+ - **New package `@venizia/ignis-kernel`.** It holds the dependency injection container, the application lifecycle, REST controllers, the repository and datasource abstractions, and the authentication and authorization seams - about 128 files with no node builtin anywhere in them.
17
+ - **The application base is four layers, not two.** `AbstractApplication` and `RestApplication` moved into the kernel; `ServerApplication` and `BaseApplication` stayed in `@venizia/ignis`.
18
+ - **A build gate proves the kernel stays clean.** `make purity` bundles it for a browser target and fails on any node builtin or node global.
19
+ - **`make <package>` no longer destroys `dist/` on a failed build.** It type-checks first and cleans only once the project compiles.
20
+
21
+ ## Who is affected
22
+
23
+ - **Every existing application.** No action needed. `@venizia/ignis` re-exports the whole kernel, so all 225 public symbols still resolve from the same import path. `BaseApplication` still has every method it had.
24
+ - **Anyone extending `AbstractApplication` directly.** Check your subclass. That class no longer carries `start()`, `stop()`, `getServer()` or `getRootRouter()` - extend `BaseApplication` as before, or one of the new layers on purpose.
25
+ - **Anyone adding code to the kernel.** One new rule, in "The one rule" below.
26
+
27
+ ## One breaking change: `AbstractApplication` narrowed
28
+
29
+ Every export name survived - the surface grew from 216 to 227 and lost none. But a name surviving is not the same as a signature surviving, and one signature changed:
30
+
31
+ ```ts
32
+ // before
33
+ abstract class AbstractApplication<AppEnv extends Env = Env, AppSchema extends Schema = {}, BasePath extends string = '/'>
34
+ extends Container implements IApplication<AppEnv, AppSchema, BasePath>
35
+
36
+ // now
37
+ abstract class AbstractApplication extends Container
38
+ ```
39
+
40
+ The generics and roughly a dozen members - `start`, `stop`, `getServer`, `getRootRouter`, `getServerHost`, `getServerPort`, `getServerAddress`, `getServerInstance` - did not disappear. They moved down to the layers that can actually provide them: the router to `RestApplication`, the listening server to `ServerApplication`.
41
+
42
+ **Migration.** `AbstractApplication<AppEnv, AppSchema, BasePath>` becomes `ServerApplication<AppEnv, AppSchema, BasePath>`, which is what the old class was. `BaseApplication` is unaffected, so an application that extends it - almost every application - changes nothing.
43
+
44
+ Without the migration you get `TS2315: Type 'AbstractApplication' is not generic`, which names the symptom rather than the cause.
45
+
46
+ **Why there is no compatibility alias.** A deprecated `AbstractApplication extends ServerApplication` would make the `extends` case compile again, and it would quietly break something worse: `BaseApplication` extends `ServerApplication` directly, so `app instanceof AbstractApplication` would start returning **false** for every real application. A loud compile error beats a silent runtime lie.
47
+
48
+ Counting export names is how this was nearly missed - a name diff cannot see a signature change. The release check now compares declarations, not names.
49
+
50
+ ## The four layers
51
+
52
+ Each layer adds exactly one capability, so a host takes only what it can support.
53
+
54
+ | Class | Package | Adds | Needs a server? |
55
+ |---|---|---|---|
56
+ | `AbstractApplication` | `ignis-kernel` | config, lifecycle hooks, `init()`, the DI container | no |
57
+ | `RestApplication` | `ignis-kernel` | the `OpenAPIHono` routers, `getServer()`, `getRootRouter()` | no |
58
+ | `ServerApplication` | `ignis` | `start()`, `stop()`, `getServerHost()`, Bun and Node hosting | yes |
59
+ | `BaseApplication` | `ignis` | resource registration, secrets, boot | yes |
60
+
61
+ ```typescript
62
+ // Unchanged. This is still the class you extend.
63
+ import { BaseApplication } from '@venizia/ignis';
64
+
65
+ class Application extends BaseApplication {
66
+ preConfigure(): void {
67
+ this.dataSource(PostgresDataSource);
68
+ this.repository(UserRepository);
69
+ this.controller(UserController);
70
+ }
71
+ }
72
+ ```
73
+
74
+ `RestApplication` is the interesting one. It owns the router but never opens a socket, so a host that receives requests some other way - a Web Worker, a test harness - can extend it and serve the same controllers.
75
+
76
+ ## The one rule
77
+
78
+ Four methods on `AbstractApplication` are called from its **constructor**, before any subclass field exists:
79
+
80
+ | Method | Kernel default | `ServerApplication` override |
81
+ |---|---|---|
82
+ | `getDefaultAsyncContextEnabled()` | `false` | `true` |
83
+ | `getEnvServerHost()` | `undefined` | `process.env.HOST` |
84
+ | `getEnvServerPort()` | `undefined` | `process.env.PORT` |
85
+ | `getProjectRoot()` | `''` | `process.cwd()` |
86
+
87
+ > [!WARNING]
88
+ > An override must return a literal or read module-level state only. Reading `this.something` from one of these yields `undefined`, silently, because the subclass field has not been assigned yet. `getProjectRoot()` is the one applications override most often.
89
+
90
+ That is also why `asyncContext.enable` now defaults to `false` in the kernel and `true` on `ServerApplication`: `hono/context-storage` needs `node:async_hooks`, which a browser does not have. Server behaviour is unchanged.
91
+
92
+ ## The purity gate
93
+
94
+ ```bash
95
+ make purity # every entry claimed browser-pure
96
+ make purity-kernel # the kernel alone
97
+ make purity-test # the gate's own regression tests
98
+ ```
99
+
100
+ It runs in CI after lint. A node builtin or a node global in the kernel passes `tsc` and fails here.
101
+
102
+ A global read is graded. `globalThis.process.env.X` and a bare `process.env.X` throw in a browser and
103
+ fail the gate. `globalThis.process?.env?.X` reads a property of an object that always exists, so the
104
+ gate lists it as `guarded` and stays green.
105
+
106
+ > [!WARNING]
107
+ > A bare `process?.env?.X` is also graded `guarded`, and that grade is only right when `process` is a
108
+ > local binding. On a free identifier the optional chain does not help - the read throws
109
+ > `ReferenceError` before `?.` is reached. Write `globalThis.process?.env?.X` in kernel code so the
110
+ > grade matches the behaviour.
111
+
112
+ > [!NOTE]
113
+ > The gate cannot be a text search. `bun build --target=browser` replaces an unpolyfillable builtin with an empty object, exits 0, and leaves no trace of the specifier in the output. It also inlines `process.env.NODE_ENV` at compile time. The gate reads the `--metafile` module graph instead, passes `--env=disable`, and matches specifiers against Node's own `builtinModules` list.
114
+
115
+ When you add code to the kernel, import helpers through `@venizia/ignis-helpers/core` or `/common`. The root barrel reaches `ioredis`, and `ioredis` needs `tls`.
116
+
117
+ ## Files changed
118
+
119
+ | Area | What |
120
+ |---|---|
121
+ | [`packages/kernel`](https://github.com/VENIZIA-AI/ignis/blob/main/packages/kernel) | New package - `@venizia/ignis-kernel` |
122
+ | [`packages/core-server/src/base/applications`](https://github.com/VENIZIA-AI/ignis/blob/main/packages/core-server/src/base/applications) | `ServerApplication` added; `BaseApplication` now extends it |
123
+ | [`packages/core-server/src/index.ts`](https://github.com/VENIZIA-AI/ignis/blob/main/packages/core-server/src/index.ts) | Re-exports the kernel, keeping the public surface whole |
124
+ | [`packages/helpers/src/core.ts`](https://github.com/VENIZIA-AI/ignis/blob/main/packages/helpers/src/core.ts) | Widened with pure parse, retry and performance utilities |
125
+ | [`scripts/purity`](https://github.com/VENIZIA-AI/ignis/blob/main/scripts/purity) | New browser purity gate |
126
+
127
+ ## Related
128
+
129
+ - [Application reference](/references/base/application.md) - the four layers in full
130
+ - [Dependency injection](/references/base/dependency-injection.md) - the container now ships from the kernel
@@ -0,0 +1,104 @@
1
+ ---
2
+ title: Every Browser-Safe Package Now Ships ESM
3
+ description: The packages that claim browser purity publish a real ESM build, so a bundler needs no workarounds - plus one shared default middleware stack and one request-id rule for both hosts.
4
+ ---
5
+
6
+ # Changelog - 2026-08-18
7
+
8
+ ## ESM builds, one default middleware stack, one request-id rule
9
+
10
+ <Badge type="tip" text="Enhancement" /> <Badge type="info" text="Bug Fix" /> <Badge type="warning" text="Behavior Change" />
11
+
12
+ **In one line.** Every IGNIS package a browser can use now publishes real ESM alongside CommonJS, and
13
+ the pieces a server and a browser Worker both need are written once instead of twice.
14
+
15
+ ## What changed
16
+
17
+ - **ESM builds.** `@venizia/ignis-kernel`, `@venizia/ignis-core-worker`,
18
+ `@venizia/ignis-connectors` and `@venizia/ignis-helpers` publish `import` and `require` conditions,
19
+ joining `@venizia/ignis-inversion` and `@venizia/ignis-filter`. A bundler resolves real ESM instead
20
+ of falling back to CommonJS.
21
+ - **A browser app needs no bundler workarounds.** The `examples/browser-bff` Vite config used to name
22
+ every IGNIS sub-path in `optimizeDeps.include` by hand and shim `__filename` for Rolldown. Both are
23
+ gone, and its page chunk fell from 682 KB to 54 KB.
24
+ - **One default middleware stack.** The request id, the framework error handler and the JSON 404 are
25
+ installed by `RestApplication.registerDefaultMiddlewares()`. A server adds its own on top; a
26
+ browser Worker inherits the three unchanged.
27
+ - **One request-id rule.** Both ends of a request now stamp the same format. The server used to take
28
+ hono's `crypto.randomUUID` default while a Worker used a Snowflake id, so the two halves of one
29
+ request disagreed.
30
+ - **A migration runner for engines Drizzle's own cannot reach.** `RelationalMigrationRunner` applies
31
+ each migration and its ledger row in a single transaction, splitting on `drizzle-kit`'s
32
+ `--> statement-breakpoint`. Written for embedded engines like PGlite, where the file-system
33
+ migrator does not exist.
34
+ - **The error middleware takes options, not subclass hooks.** `environment` and `formatError` are
35
+ constructor options on `BaseAppErrorMiddleware`. An application with no ambient environment - a
36
+ browser Worker - declares one through `config.error.environment`.
37
+ - **Faster boot and queries.** Registering artifacts no longer re-scans the binding map once per
38
+ item (3.50 ms to 0.043 ms at 200 controllers), and an included relation asks the model registry
39
+ once per query instead of three times.
40
+
41
+ ## Who is affected
42
+
43
+ - **Applications on `@venizia/ignis`.** No action needed. Import specifiers are unchanged, and
44
+ `IApplicationConfigs` still carries `host` and `port`.
45
+ - **Applications bundling IGNIS for a browser.** You can delete `optimizeDeps.include` entries and
46
+ any `__filename` shim you added for IGNIS packages.
47
+ - **Anyone importing a deep `dist/...` path.** The built output moved to `dist/cjs` and `dist/esm`.
48
+ Import through the package name or a published sub-path instead - deep paths were never a supported
49
+ entry point.
50
+ - **Anyone who wrote a custom relational driver.** `IRelationalConnection` gained `query()`. See
51
+ below.
52
+ - **Anyone who subclassed `BaseAppErrorMiddleware`.** The two `protected` hooks became options. See
53
+ below.
54
+
55
+ ## Breaking changes
56
+
57
+ > [!WARNING]
58
+ > Two internal seams changed shape. Both are `protected`/contract-level surfaces with no known
59
+ > external users; ordinary applications are unaffected.
60
+
61
+ **A custom relational driver must implement `query()`:**
62
+
63
+ ```typescript
64
+ // Before
65
+ acquire: async () => ({
66
+ connector,
67
+ execute: async ({ statement }) => ({ count: 0 }),
68
+ release: () => {},
69
+ });
70
+
71
+ // After - `query()` returns rows for a verbatim statement
72
+ acquire: async () => ({
73
+ connector,
74
+ execute: async ({ statement }) => ({ count: 0 }),
75
+ query: async ({ statement }) => [],
76
+ release: () => {},
77
+ });
78
+ ```
79
+
80
+ **A subclass of `BaseAppErrorMiddleware` passes options instead of overriding hooks:**
81
+
82
+ ```typescript
83
+ // Before
84
+ class MyErrorMiddleware extends BaseAppErrorMiddleware {
85
+ protected override resolveEnvironment() {
86
+ return process.env.NODE_ENV;
87
+ }
88
+ protected override hasAmbientEnvironment() {
89
+ return true;
90
+ }
91
+ }
92
+
93
+ // After - the option's PRESENCE is what says this host has an environment at all
94
+ new BaseAppErrorMiddleware({ environment: () => process.env.NODE_ENV });
95
+ ```
96
+
97
+ `AppErrorMiddleware` from `@venizia/ignis` is unchanged for callers - it now supplies those two
98
+ options for you.
99
+
100
+ ## Notes
101
+
102
+ `RequestTrackerComponent` no longer installs `requestId()` itself; the application's default stack
103
+ installs it first. If you configure that component by hand, outside
104
+ `registerDefaultMiddlewares()`, install `requestId()` yourself or call the default stack.
@@ -0,0 +1,43 @@
1
+ ---
2
+ title: A Second ID Generator, for IDs People Read
3
+ description: OpaqueUidHelper mints short, prefixed IDs from a chosen alphabet - the counterpart to SnowflakeUidHelper, which is sortable but reveals when it was minted.
4
+ ---
5
+
6
+ # Changelog - 2026-08-18
7
+
8
+ ## OpaqueUidHelper
9
+
10
+ <Badge type="tip" text="New Feature" />
11
+
12
+ **In one line.** `@venizia/ignis-helpers` gained a second ID generator, for IDs a person reads, types, or reads out loud.
13
+
14
+ ## What changed
15
+
16
+ - **`OpaqueUidHelper` mints short IDs.** Six characters by default, from Crockford's base32 - uppercase, without `I`, `L`, `O` and `U`.
17
+ - **A prefix and a delimiter are independent toggles.** `{ enable, value }` each, so turning one off keeps its value for when you turn it back on. `INV-7K2MQ9`, `INV7K2MQ9` and `7K2MQ9` are all configurations of the same helper.
18
+ - **Four alphabets ship with it.** `CROCKFORD` (32), `BASE58` (58), `NO_VOWEL` (50, so no word can form), `BASE62` (62).
19
+ - **`nextId()` accepts an availability check.** Return `true` to accept the drawn ID, `false` to draw another. A synchronous check keeps `nextId()` returning a string; an asynchronous one makes it a promise.
20
+ - **It draws from `crypto.getRandomValues`.** That works outside a secure context, unlike `crypto.randomUUID`, so the helper runs on a plain-http origin and inside a browser Worker.
21
+
22
+ Nothing changed for `SnowflakeUidHelper`. Pick between them on one question: may this ID reveal when it was created?
23
+
24
+ | Helper | `parseId()` reads back | Pick it when |
25
+ |---|---|---|
26
+ | `SnowflakeUidHelper` | The exact millisecond, and the worker | The ID is a primary key and you want insert order for free |
27
+ | `OpaqueUidHelper` | Nothing | The ID leaves your system |
28
+
29
+ ## Who is affected
30
+
31
+ - **Existing applications.** No action needed. This is additive, and `SnowflakeUidHelper` is untouched.
32
+ - **Anyone printing an ID where a customer sees it.** An invoice number built from a Snowflake ID tells the reader the millisecond you issued it. `OpaqueUidHelper` tells them nothing.
33
+
34
+ ## Read this before using the default length
35
+
36
+ Six Crockford characters is 2^30 combinations - an airline record locator. It works for airlines because a locator is scoped per carrier, recycled after the trip, and regenerated on conflict. Not because 2^30 is large.
37
+
38
+ > [!WARNING]
39
+ > At six characters, a 1% chance of at least one collision arrives at roughly 4,600 IDs in one space, and 50% at roughly 38,000. This generator is probabilistic, and no length changes that.
40
+
41
+ A `prefix` partitions the space - `INV-7K2MQ9` cannot collide with `CUS-7K2MQ9` - so give each entity type its own. It does not make an ID unique inside that space. Put the column behind a unique index, and regenerate on the violation rather than checking first, which races.
42
+
43
+ See [UID](/extensions/helpers/uid/) for the full options, the alphabets, and a worked retry example.
@@ -0,0 +1,88 @@
1
+ ---
2
+ title: A Browser BFF That Survives a Second Tab
3
+ description: SharedBffTransport runs one Worker per origin instead of one per tab, and the framework audit fixes 18 defects - five of them breaking.
4
+ ---
5
+
6
+ # Changelog - 2026-08-19
7
+
8
+ ## Multi-tab support for the browser BFF
9
+
10
+ <Badge type="tip" text="New Feature" /> <Badge type="info" text="Bug Fix" />
11
+
12
+ **In one line.** Open your browser BFF in a second tab and it works - one tab runs the Worker, the rest are forwarded to it.
13
+
14
+ ```ts
15
+ import { SharedBffTransport, installBffFetch } from '@venizia/ignis-worker';
16
+
17
+ export const bff = new SharedBffTransport({
18
+ createWorker: () => new Worker(new URL('./worker.ts', import.meta.url), { type: 'module' }),
19
+ channelName: 'my-app',
20
+ });
21
+
22
+ installBffFetch({ transport: bff, basePath: '/api' });
23
+ ```
24
+
25
+ ## What changed
26
+
27
+ - **`SharedBffTransport` is new.** It elects one tab to run the Worker and forwards every other tab's request to it. Use it wherever you used `WorkerBffTransport`.
28
+ - **`installBffFetch` moved into the package.** It routes the page's own `fetch` into a BFF for one or more path prefixes, and leaves every other call on the network. It used to be example code.
29
+ - **A promoted tab takes over in place.** Close the tab that holds the Worker and another one picks it up, no reload.
30
+
31
+ ## Who is affected
32
+
33
+ - **Anyone running a browser BFF over PGlite in OPFS.** Switch to `SharedBffTransport`. Without it a second tab renders its UI and then fails every call, because the database file is already held.
34
+ - **Anyone hand-rolling a `fetch` interceptor for a BFF.** Delete it and call `installBffFetch`. The hand-rolled version most likely has the body bug described below.
35
+ - **Everyone else.** No action needed. `WorkerBffTransport` is unchanged and still exported.
36
+
37
+ ## Details
38
+
39
+ ### Why one tab has to own the database
40
+
41
+ PGlite in `opfs-ahp://` mode holds an exclusive OPFS access handle, and those handles are exclusive per **origin**, not per tab. Measured in Chromium: the first tab works normally, the second never boots its database, and every call there fails with `Access Handles cannot be created if there is another open Access Handle or Writable stream associated with the same file`.
42
+
43
+ So the fix is not to make the database sharable. It is to make sure only one tab opens it.
44
+
45
+ ### How the election works
46
+
47
+ `SharedBffTransport` takes the Web Locks API's word for who leads. The tab holding the lock calls `createWorker()`; the others never do. Requests reach the leader over a `BroadcastChannel`, in the same envelope the Worker already speaks.
48
+
49
+ The browser releases a lock when its tab goes away - a crash included - so promotion needs no heartbeat and there is no stale-leader window.
50
+
51
+ | Option | Type | Default | Meaning |
52
+ |---|---|---|---|
53
+ | `createWorker` | `() => Worker` | required | Called only in the tab that wins the election |
54
+ | `channelName` | `string` | `'ignis.bff'` | Distinguishes independent BFFs on one origin; the lock name derives from it |
55
+ | `timeoutMs` | `number` | `30000` | How long a follower waits for the leader to answer |
56
+ | `scope` | `string` | class name | Logger scope |
57
+
58
+ A host without `navigator.locks` runs single-tab, and loses nothing: `navigator.locks` and `navigator.storage.getDirectory` are both secure-context only, so wherever OPFS works the lock exists.
59
+
60
+ ### The `fetch` bridge, and the bug it fixes
61
+
62
+ HTTP clients rarely accept a custom fetcher. A data provider or a generated client reaches the network through the global `fetch`, so answering that `fetch` is the only place an in-browser backend is a drop-in swap rather than a fork of the client.
63
+
64
+ `installBffFetch` returns an uninstall function, accepts several prefixes, and refuses a second install rather than stacking bridges. Install it before the application that uses it boots.
65
+
66
+ It also reads a request's URL **without** constructing a `Request`. In Chromium, `new Request(existingRequest)` marks the original body disturbed - `bodyUsed` flips to `true` and the next read throws - so a hand-rolled bridge that builds one just to inspect the URL breaks the very pass-through it is deciding about. Any POST it decided to send to the network arrived unreadable.
67
+
68
+ | File | Package |
69
+ |------|---------|
70
+ | `src/transport/shared.ts` | worker |
71
+ | `src/transport/fetch-bridge.ts` | worker |
72
+
73
+ ## Also in this release - the framework audit
74
+
75
+ <Badge type="danger" text="Security" /> <Badge type="warning" text="Breaking Change" /> <Badge type="info" text="Bug Fix" />
76
+
77
+ An audit of kernel, connectors, helpers and core fixed 18 defects. Five change behaviour a running application can notice.
78
+
79
+ > [!WARNING]
80
+ > Read this section before upgrading. Each item below can turn a call that worked yesterday into a 400 or a thrown error.
81
+
82
+ - **HTTPS certificates are verified.** `AxiosFetcher` defaulted `rejectUnauthorized` to `false`, so every HTTPS request the framework made accepted any certificate. It is `true` now. A partner endpoint with a broken chain **fails loudly** instead of silently trusting it. Set `rejectUnauthorized: false` explicitly on that one fetcher if you must keep talking to it.
83
+ - **Request bodies stop leaking outside development.** `RequestSpyMiddleware` tested `env !== 'production'`, which logged full bodies in `staging`, `uat`, `alpha`, `beta`, and with `NODE_ENV` unset. It now logs bodies only in `local`, `debug`, `development`, `dev`, `sit`.
84
+ - **`limit` is bounded at both ends.** A negative limit removed Drizzle's LIMIT clause entirely and returned the whole table. Negative and fractional limits are now a 400, `@model settings.maxLimit` is enforced on the relational tier, and a request above the framework default of 1000 throws. A relation scope's limit is checked too.
85
+ - **A malformed `filter` or `where` query string is a 400, not a 500.** A `SyntaxError` escaped zod's `safeParse`, bypassing the controller's validation hook.
86
+ - **`Authorization.RULES` is a `Map` keyed by enforcer name.** It was a single slot shared by every enforcer, so one enforcer's rules could answer another's check. Code reading that context value gets a `Map` now.
87
+
88
+ Two more worth knowing about: `include[].shouldSkipDefaultFilter` is no longer accepted from a client (it would erase the `@model` defaultFilter behind soft-delete), and log redaction now covers `%o`/`%O`, placeholder-less arguments, and the `*Secret`, `*_password`, `connection_string`, `dsn` spellings.
@@ -0,0 +1,157 @@
1
+ ---
2
+ title: Your Own Authentication Strategies, and Tokens That Say Who They Are For
3
+ description: Register a strategy beyond jwt and basic, check aud and iss when verifying, and stamp them when issuing.
4
+ ---
5
+
6
+ # Changelog - 2026-08-19
7
+
8
+ ## Service-to-service authentication, phase 1
9
+
10
+ <Badge type="tip" text="New Feature" /> <Badge type="danger" text="Security" /> <Badge type="tip" text="Enhancement" /> <Badge type="warning" text="Breaking Change" />
11
+
12
+ **In one line.** A route can name any authentication strategy you register, and a JWT can now say who issued it and who it is for.
13
+
14
+ ```ts
15
+ // The strategy name is yours. No cast.
16
+ @get({ path: '/orders', authenticate: { strategies: ['service'] } })
17
+
18
+ // The issuer stamps who it is, and who the token is for.
19
+ jwtOptions: {
20
+ standard: 'JWKS',
21
+ options: { mode: 'issuer', sign: { issuer: 'identity', audience: 'inventory' }, /* ... */ },
22
+ }
23
+
24
+ // The verifier refuses anything not addressed to it.
25
+ jwtOptions: {
26
+ standard: 'JWKS',
27
+ options: { mode: 'verifier', verify: { audience: 'inventory', maxTokenAge: '60 seconds' }, /* ... */ },
28
+ }
29
+ ```
30
+
31
+ ## What changed
32
+
33
+ - **`TAuthStrategy` accepts any registered name.** `'jwt'` and `'basic'` still autocomplete; anything you register with `AuthenticationStrategyRegistry` now typechecks without a cast.
34
+ - **A misspelled strategy is reported at boot**, at error level, naming both the typo and what was registered. Previously it compiled only for the two built-ins and, once the type opened, would have 401'd every request with nothing above debug level to explain it.
35
+ - **`verify` checks claims.** `audience`, `issuer`, `subject`, `algorithms`, `clockTolerance`, `maxTokenAge`, `typ` and `requiredClaims`, passed straight to jose.
36
+ - **`sign` stamps claims**, and `generate({ payload, claims })` sets per-token `aud` / `sub` / `jti`.
37
+ - **`securitySchemes` on the API reference**, so a route naming your strategy publishes a valid OpenAPI document.
38
+ - **`AuthenticationStrategyRegistry.has()` / `.getNames()` / `.findUnregistered()` / `.assertRegistered()`** for building your own startup checks.
39
+
40
+ ## Who is affected
41
+
42
+ - **Anyone registering a custom strategy.** The cast at every route goes away. Declare a `securitySchemes` entry for your strategy name, or your generated OpenAPI document names a scheme it never declares.
43
+ - **Anyone running more than one service off one issuer.** Set `verify.audience`. Without it, a token minted for one service is accepted verbatim by every other - there is no cryptographic notion of "this token was meant for me".
44
+ - **Anyone importing a deprecated alias.** `QueueHelper`, `TNodePostgresConnector` and `TNodePostgresTransactionConnector` are removed. Pure renames - see Breaking changes.
45
+ - **Anyone importing any `Swagger*` symbol.** `SwaggerComponent`, `ISwaggerOptions` and `SwaggerBindingKeys` are all removed in this release. It is a rename - see Breaking changes.
46
+ - **Everyone else.** No action needed. Every new option is optional and unset means today's behaviour, byte for byte.
47
+
48
+ ## Breaking changes
49
+
50
+ ### The deprecated `Swagger*` aliases are removed
51
+
52
+ All three go together, so nothing is left half-renamed:
53
+
54
+ | Removed | Use instead |
55
+ |---|---|
56
+ | `SwaggerComponent` | `ApiReferenceComponent` |
57
+ | `ISwaggerOptions` | `IApiReferenceOptions` |
58
+ | `SwaggerBindingKeys.SWAGGER_OPTIONS` | `ApiReferenceBindingKeys.API_REFERENCE_OPTIONS` |
59
+
60
+ ```ts
61
+ // Before
62
+ import { ISwaggerOptions, SwaggerBindingKeys, SwaggerComponent } from '@venizia/ignis';
63
+
64
+ this.bind<ISwaggerOptions>({ key: SwaggerBindingKeys.SWAGGER_OPTIONS }).toValue({ /* ... */ });
65
+ this.component(SwaggerComponent);
66
+
67
+ // After
68
+ import { ApiReferenceBindingKeys, ApiReferenceComponent, IApiReferenceOptions } from '@venizia/ignis';
69
+
70
+ this.bind<IApiReferenceOptions>({ key: ApiReferenceBindingKeys.API_REFERENCE_OPTIONS }).toValue({ /* ... */ });
71
+ this.component(ApiReferenceComponent);
72
+ ```
73
+
74
+ It is a rename only. `SwaggerBindingKeys.SWAGGER_OPTIONS` always held the same
75
+ `'@app/api-reference/options'` string, so no binding moves and no runtime behaviour changes.
76
+
77
+ ### Every deprecated alias is removed
78
+
79
+ The compatibility aliases are gone rather than marked. Each is a pure rename with no behaviour attached:
80
+
81
+ | Removed | Use instead | Package |
82
+ |---|---|---|
83
+ | `QueueHelper` | `SequentialQueueHelper` | helpers |
84
+ | `TNodePostgresConnector` | `TRelationalConnector` | connectors |
85
+ | `TNodePostgresTransactionConnector` | `TRelationalConnector` | connectors |
86
+
87
+ `TRelationalConnector` covers both Postgres cases: `NodePgDatabase` and `PostgresJsDatabase` both extend `PgDatabase`, so the driver-specific aliases described a distinction that stopped existing when the relational tier went engine-neutral.
88
+
89
+ ### A configured `iss` / `aud` now wins over the payload
90
+
91
+ > [!WARNING]
92
+ > Only for applications that already smuggle `iss` or `aud` through the token payload.
93
+
94
+ A configured `sign.issuer` / `sign.audience` is **authoritative**. It overrides a claim of the same name on the payload, and logs a warning when it does.
95
+
96
+ **Before** - the payload was the only way to set these, and it won:
97
+
98
+ ```ts
99
+ await tokenService.generate({ payload: { userId, aud: 'inventory' } });
100
+ ```
101
+
102
+ **After** - configure the default, and pass per-token claims explicitly:
103
+
104
+ ```ts
105
+ // once, in the issuer options
106
+ sign: { issuer: 'identity', audience: 'inventory' }
107
+
108
+ // per token, when it genuinely varies
109
+ await tokenService.generate({ payload: { userId }, claims: { audience: 'inventory' } });
110
+ ```
111
+
112
+ The reason is not tidiness. `iss` and `aud` are standard JWT fields, so they pass through the AES payload envelope in the clear - an issuer identity that any payload could overwrite is not an identity. With `sign` unset, nothing fires and tokens are unchanged.
113
+
114
+ ## Details
115
+
116
+ ### The registry is the source of truth for a strategy name
117
+
118
+ `AuthenticateStrategy.isValid` knows the two built-ins only, and returns `false` for a strategy you registered. It stays as a public export, but never build a check on it - ask the registry:
119
+
120
+ ```ts
121
+ AuthenticationStrategyRegistry.getInstance().has({ name: 'service' });
122
+ AuthenticationStrategyRegistry.getInstance().getNames();
123
+ ```
124
+
125
+ The framework reports unregistered names while building route configs, which happens after registration. It **reports** rather than throws, deliberately:
126
+
127
+ - `defineAuthController` hard-codes `'jwt'` on four of its routes. An application that registers its JWT strategy under a custom name - the configuration this release adds support for - would stop booting.
128
+ - A route listing several strategies in `mode: 'any'` tolerates one that does not resolve. That is a working setup today.
129
+
130
+ An empty `strategies` array is never reported: that is how `authenticate: { skip: true }` is encoded.
131
+
132
+ If you want the hard failure, ask for it in your own startup:
133
+
134
+ ```ts
135
+ AuthenticationStrategyRegistry.getInstance().assertRegistered({ names: ['service', 'jwt'] });
136
+ ```
137
+
138
+ ### Audience matching is overlap, not equality
139
+
140
+ jose accepts a token whose `aud` **contains** the configured value. A token carrying `['commerce','inventory']` satisfies `verify.audience: 'inventory'`. If you want strict single-audience tokens, enforce that when you issue them.
141
+
142
+ ### `maxTokenAge` is the replay window
143
+
144
+ `exp` is chosen by whoever minted the token. `maxTokenAge` caps elapsed time since `iat` regardless, which is what a short-lived per-request assertion actually needs.
145
+
146
+ ### Diagnosing a rejection
147
+
148
+ Every verification failure still surfaces as one `TOKEN_INVALID`, but the jose error survives on `cause` - `JWTClaimValidationFailed: unexpected "aud" claim value` rather than a generic "invalid or expired token". That distinction is the difference between an afternoon and a week during a fleet-wide rollout.
149
+
150
+ | File | Package |
151
+ |------|---------|
152
+ | `src/base/auth/authenticate/common/constants.ts` | kernel |
153
+ | `src/base/auth/authenticate/common/types.ts` | kernel |
154
+ | `src/base/auth/authenticate/strategies/strategy-registry.ts` | kernel |
155
+ | `src/base/auth/base/abstract-auth-registry.ts` | kernel |
156
+ | `src/components/auth/authenticate/services/bearer/` | core |
157
+ | `src/components/api-reference/` | core |
@@ -0,0 +1,127 @@
1
+ ---
2
+ title: Services Prove Themselves to Each Other, Without a Shared Password
3
+ description: A built-in service strategy - one short-lived Ed25519 assertion per request, verified against the caller's own published key.
4
+ ---
5
+
6
+ # Changelog - 2026-08-21
7
+
8
+ ## `service` is a built-in authentication strategy
9
+
10
+ <Badge type="tip" text="New Feature" /> <Badge type="danger" text="Security" />
11
+
12
+ **In one line.** A calling service signs one short-lived assertion per request; the callee verifies it locally against that caller's published key, with no identity round trip and no shared password.
13
+
14
+ ```ts
15
+ // The callee. It is called, so it verifies - and needs no keys of its own.
16
+ this.bind<IServiceAuthOptions>({ key: AuthenticateBindingKeys.SERVICE_OPTIONS }).toValue({
17
+ name: 'pricing',
18
+ callers: { commerce: 'https://commerce.internal/svc-certs' },
19
+ resolvePrincipal: async ({ issuer }) => userService.findServiceAccount({ name: issuer }),
20
+ });
21
+
22
+ // The route. `service` is a framework name now, so nothing extra is imported.
23
+ @post({ path: '/calculate', authenticate: { strategies: [AuthenticateStrategy.SERVICE] } })
24
+ ```
25
+
26
+ ## What changed
27
+
28
+ - **`AuthenticateStrategy.SERVICE` joins `BASIC` and `JWT`.** A route names it with no import beyond `@venizia/ignis`.
29
+ - **`serviceOptions`** sits beside `jwtOptions` and `basicOptions` on the authenticate component.
30
+ - **`GET /svc-certs`** is mounted automatically, but only on a service that has signing keys.
31
+ - **A service that verifies and nothing else can now boot.** The component used to demand `jwtOptions` or `basicOptions`.
32
+ - **The OpenAPI document declares `service`** as an `apiKey` in its own header, not a bearer.
33
+
34
+ ## Who is affected
35
+
36
+ - **Anyone with services calling services.** This replaces a shared password, and replaces the identity round trip some fleets do on every internal call.
37
+ - **Everyone else.** No action needed. Set no `serviceOptions` and no strategy is registered, no route is mounted, nothing changes.
38
+
39
+ ## How it works
40
+
41
+ The caller signs one assertion per request and sends it in its own header, so the end user's token keeps `Authorization`:
42
+
43
+ ```
44
+ x-service-assertion: <EdDSA JWT>
45
+
46
+ header { "alg": "EdDSA", "kid": "commerce_svc-certs", "typ": "svc+jwt" }
47
+ payload { "iss": "commerce", "aud": "pricing", "sub": "commerce",
48
+ "htm": "POST", "htu": "/v1/api/pricing/calculate",
49
+ "jti": "...", "iat": <now>, "exp": <now + 60> }
50
+ ```
51
+
52
+ The callee checks, in order:
53
+
54
+ | Check | What it stops |
55
+ |---|---|
56
+ | `iss` is a key of `callers` | An unknown service calling at all. The map **is** the allowlist |
57
+ | Signature against `createRemoteJWKSet(callers[iss])` | Anyone without the caller's private key |
58
+ | `audience` equals this service's `name` | A token minted for one service being replayed at another |
59
+ | `typ` is `svc+jwt` | A user token being presented as a service assertion |
60
+ | `algorithms: ['EdDSA']` | Algorithm confusion |
61
+ | `htm` and `htu` match this request | A capture replayed against a different method or path |
62
+
63
+ `iss` is read unverified first, only to pick which key set to check the signature against. The same value is then enforced as the expected issuer, so a forged `iss` buys nothing beyond selecting the key set that rejects it.
64
+
65
+ ## Options
66
+
67
+ | Option | Type | Default | Meaning |
68
+ |---|---|---|---|
69
+ | `name` | `string` | required | The `iss` this service stamps, and the `aud` it demands |
70
+ | `resolvePrincipal` | `(opts) => IAuthUser \| null` | required | Which application principal a verified caller acts as. Return `null` to refuse |
71
+ | `keys` | `{ driver, format, private, public, kid? }` | - | Present only on a service that calls out. Absent means verify-only, and no certs route |
72
+ | `callers` | `Record<string, string \| { jwksUrl, acceptMaxAgeSeconds? }>` | `{}` | Caller name to its JWKS url. Also the allowlist |
73
+ | `signLifetimeSeconds` | `number` | `60` | How long the assertions this service mints stay valid |
74
+ | `acceptMaxAgeSeconds` | `number` | `60` | The oldest assertion this service accepts |
75
+ | `clockToleranceSeconds` | `number` | `5` | Clock skew allowance |
76
+ | `rest.path` | `string` | `/svc-certs` | Where the certs route is mounted |
77
+
78
+ ### The caller does not choose the window
79
+
80
+ `signLifetimeSeconds` and `acceptMaxAgeSeconds` are deliberately separate, and only the second one is a security control.
81
+
82
+ A caller already sets `exp` - it signs the token. `acceptMaxAgeSeconds` is the callee's veto over that, and it is the only bound that still holds when a caller is compromised. So it is never something the caller can request. A caller that genuinely needs more slack gets it **named in the callee's config**:
83
+
84
+ ```ts
85
+ callers: {
86
+ commerce: 'https://commerce.internal/svc-certs',
87
+ nightlyBatch: { jwksUrl: 'https://batch.internal/svc-certs', acceptMaxAgeSeconds: 600 },
88
+ }
89
+ ```
90
+
91
+ ### What `clockToleranceSeconds` is really for
92
+
93
+ Not for widening the window - for the opposite direction. Two machines never agree to the second, and a caller whose clock runs one second ahead stamps an `iat` in the future, which jose refuses outright. Measured with `tolerance: 5`: `iat + 5s` is accepted, `iat + 6s` is not.
94
+
95
+ Widening the window for old tokens is the side effect - and it is why this is a security knob rather than an operational one. With the defaults there are **two** numbers, and they answer different questions:
96
+
97
+ | | Seconds | Question it answers |
98
+ |---|---|---|
99
+ | Acceptance window | **65** | What does this machine accept? Age 64 passes, 65 does not |
100
+ | Replay window | **70** | How long can a captured assertion be used? A caller running the full tolerance fast mints a token we accept 5s early, then keep accepting for another 64 |
101
+
102
+ Widening `clockToleranceSeconds` widens the second one second for second.
103
+
104
+ ## What the assertion does NOT cover
105
+
106
+ Method and path. **Not** the query string, not any header, not the body.
107
+
108
+ That matters most for tenant selection, which is usually a header or a query parameter. An assertion proves which service called; it does not prove which tenant the call acts on. The caller allowlist and the application's own scoping have to do that.
109
+
110
+ ## Details
111
+
112
+ ### Only PEM keys, deliberately
113
+
114
+ The signer accepts `format: 'pem'` and refuses `'jwk'`. `importSPKI` rejects a private PEM outright, which makes the private half unreachable from the published document by construction rather than by care.
115
+
116
+ The JWK format cannot offer that: `importJWK` imports whatever it is handed, and a private JWK marked `"ext": true` round-trips its `d` into the served document. The JWKS issuer guards against exactly this; the service path avoids needing the guard.
117
+
118
+ ### A misconfigured caller name fails closed, and loudly
119
+
120
+ An `iss` absent from `callers` is refused before any network call, so a caller name can never steer the key-set fetch at an arbitrary host. Membership is tested with `Object.hasOwn`, not a truthiness check - `iss: "constructor"` would otherwise walk a prototype-chain lookup straight past the allowlist.
121
+
122
+ | File | Package |
123
+ |------|---------|
124
+ | `src/base/auth/authenticate/common/` | kernel |
125
+ | `src/components/auth/authenticate/services/service/` | core |
126
+ | `src/components/auth/authenticate/strategies/service.strategy.ts` | core |
127
+ | `src/components/auth/authenticate/controllers/service-certs/` | core |