Maurice
ba1504d6e9
refactor(server): give every environment variable one config owner
...
Eight registerAs tokens existed while every consumer read the same values
through readEnv() instead, so the boot-stable layer the repo rules describe
was unused and nothing said which path owned a variable. FORCE_HTTPS, for
instance, was frozen by the middleware through the http token and read live
by the cookie code at the same time.
A variable is now owned by exactly one side. TRUST_PROXY and
HSTS_INCLUDE_SUBDOMAINS belong to httpConfig, which buildApp() already
injects into the pre-init middleware, and TREK_PLACE_PHOTO_DIR to the new
storageConfig, which the storage registry now injects instead of reading it
through RuntimeEnvService. Their derive functions moved to boot-derive.ts,
which deriveAll() never calls. The six tokens nothing injected are gone:
their values are needed before the container exists (config.ts, the
database, src/mcp, the SSRF guard) and stay on readEnv().
config-ownership.test.ts records the keys each side reads through a Proxy
and fails on a variable read through both, on a token nothing injects and
on a variable the schema does not validate. env-reference.test.ts holds
server/.env.example to the schema, which had drifted by 34 variables (SMTP,
WebAuthn, plugins, MCP session tuning, TREK_MANAGED and others); they are
documented now. jwt-verify.ts no longer cites a middleware file that is
gone.
2026-10-08 18:40:15 +02:00
..
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 22:43:09 +02:00
2026-10-08 18:38:29 +02:00
2026-10-08 13:04:38 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-10-08 14:11:55 +02:00
2026-10-06 19:27:30 +02:00
2026-08-07 19:58:12 +02:00
2026-10-06 19:27:30 +02:00
2026-10-08 18:40:15 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-09-27 23:26:42 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-10-08 18:38:29 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-10-08 18:40:15 +02:00
2026-10-08 18:40:15 +02:00
2026-06-16 22:22:45 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-10-07 16:16:26 +02:00
2026-10-08 18:40:15 +02:00
2026-10-06 22:43:09 +02:00
2026-10-06 22:43:09 +02:00
2026-08-17 14:48:23 +02:00
2026-09-15 21:36:34 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-07-27 22:34:41 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-08-07 15:14:14 +02:00
2026-10-08 18:38:28 +02:00
2026-08-22 11:33:55 +02:00
2026-10-07 16:03:19 +02:00
2026-10-08 18:38:28 +02:00
2026-10-08 18:38:28 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-10-08 18:38:28 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-10-07 22:56:35 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-08-12 14:14:37 +02:00
2026-10-06 19:27:30 +02:00
2026-10-07 16:47:53 +02:00
2026-09-19 21:01:45 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-08-25 19:26:38 +02:00
2026-06-16 22:22:45 +02:00
2026-09-01 17:18:10 +02:00
2026-10-07 17:12:26 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-09-14 23:00:57 +02:00
2026-10-06 19:27:30 +02:00
2026-09-14 23:00:57 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 22:43:09 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 22:43:09 +02:00
2026-10-06 19:27:30 +02:00
2026-08-07 18:42:53 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-08-22 11:33:55 +02:00
2026-08-11 16:42:49 +02:00
2026-10-08 18:38:28 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-09-16 11:08:07 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-09-01 17:18:10 +02:00
2026-10-06 19:27:30 +02:00
2026-10-08 13:04:38 +02:00
2026-10-06 19:27:30 +02:00
2026-10-08 13:04:38 +02:00
2026-10-06 19:27:30 +02:00
2026-10-08 13:04:38 +02:00
2026-08-20 15:43:27 +02:00
2026-10-06 19:27:30 +02:00
2026-09-03 10:47:08 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-08-15 16:42:27 +02:00
2026-08-15 16:42:27 +02:00
2026-09-12 18:02:57 +02:00
2026-08-15 16:42:27 +02:00
2026-08-15 16:42:27 +02:00
2026-09-07 18:36:54 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-09-07 18:36:54 +02:00
2026-10-06 19:27:30 +02:00
2026-09-07 14:05:33 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-09-07 18:36:54 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-10-08 13:04:38 +02:00
2026-10-06 19:27:30 +02:00
2026-09-26 11:22:20 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-10-08 13:02:57 +02:00
2026-09-04 12:15:53 +02:00
2026-09-04 12:15:53 +02:00
2026-10-07 16:45:21 +02:00
2026-10-06 19:27:30 +02:00
2026-10-07 17:55:25 +02:00
2026-08-15 16:42:27 +02:00
2026-09-22 13:30:12 +02:00
2026-10-08 18:38:28 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-10-08 18:38:28 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-08-10 17:08:54 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-08-10 12:24:15 +02:00
2026-10-06 19:27:30 +02:00
2026-10-08 13:04:38 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 22:43:09 +02:00
2026-10-06 19:27:30 +02:00
2026-07-30 17:07:12 +02:00
2026-08-12 17:43:22 +02:00
2026-10-06 22:43:09 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-08-23 11:59:12 +02:00
2026-10-07 22:40:12 +00:00
2026-08-10 19:54:46 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-10-08 13:02:57 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-09-12 11:23:09 +02:00
2026-09-20 13:54:31 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-09-12 12:24:33 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-09-30 23:00:12 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-09-02 21:06:42 +02:00
2026-09-09 10:11:36 +02:00
2026-10-08 18:38:28 +02:00
2026-08-25 19:26:38 +02:00
2026-10-08 13:04:38 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 22:43:09 +02:00
2026-10-07 20:54:10 +02:00
2026-10-07 20:54:10 +02:00
2026-10-06 22:43:09 +02:00
2026-10-07 20:54:10 +02:00
2026-10-07 20:54:10 +02:00
2026-08-01 12:45:35 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-09-23 22:35:01 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-10-06 19:27:30 +02:00
2026-10-08 18:38:28 +02:00
2026-10-06 19:27:30 +02:00
2026-10-08 18:38:28 +02:00
2026-10-07 16:11:41 +02:00
2026-10-08 18:38:28 +02:00
2026-10-06 19:27:30 +02:00
2026-10-08 18:38:28 +02:00
2026-10-08 13:02:58 +02:00
2026-10-06 19:27:30 +02:00
2026-10-07 16:59:52 +02:00
2026-08-23 11:59:12 +02:00
2026-08-15 16:42:27 +02:00
2026-08-18 22:24:29 +02:00
2026-10-06 19:27:30 +02:00
2026-09-24 14:05:42 +02:00
2026-10-06 22:43:09 +02:00
2026-08-11 09:58:37 +02:00
2026-06-16 22:22:45 +02:00