# Incident 2026-10-31 — a `customFooter:` key in librechat.yaml kept the chat API from ever starting; the SPA kept serving 200 Backfilled 2026-11-11 (the incident predates ops-docs' incident practice; the knowledge lived only in the steward skill until the codebase audit flagged the gap). Written from the skill reference, the git history around the footer work and the deployed build's own validator. No values, only names. ## What happened A footer customisation for chat.inference.coop was made by adding a `customFooter:` top-level key to `/app/data/librechat.yaml` (the persistent volume) and restarting the app. LibreChat's config loader runs the yaml through its **strict config schema** (`configSchema.strict()` from `librechat-data-provider`, in `@librechat/api`'s config load) and exits on an unrecognized top-level key: ``` logger.error("Exiting due to invalid configuration. Set CONFIG_BYPASS_VALIDATION=true …"); process.exit(1); ``` `customFooter` is not a key of that schema in the deployed build — this build reads the footer **only** from the `CUSTOM_FOOTER` env var. So the API server (node `api/server/index.js`) never came up. ## Blast radius - **Every API route of chat.inference.coop down for members** — login, chat, /api/config, key checks — from the yaml edit + restart until the key was removed and the app restarted again. - The **SPA kept serving HTTP 200**: Cloudron's health check and the homepage stayed green (the static shell is served regardless of the API process), so the app looked "up" on every status surface. Any check that scored the app by a 200 was testing the shell, not the service. - No data loss (config-only; the yaml was fixed in place). ## Detection gap Nothing detected it while members hit it. The failure signature — `/api/config` returning the HTML shell instead of JSON — was only found by a human-side check, and the recovery was scored by exactly that probe afterwards. The gap was twofold: 1. No pre-boot validation: the yaml was edited on the volume with nothing checking it against the schema before the restart. 2. No post-restart behavioural check: a green 200 from a single-page app proves the vhost, not the app. ## Resolution - Removed the `customFooter:` key from `/app/data/librechat.yaml`; the footer was later shipped correctly through `CUSTOM_FOOTER` in `/app/data/env` (the value channel that actually reaches the node process). - Restart → `/api/config` returned JSON again → recovery declared on that evidence, not on the homepage 200. ## The fix that now exists (2026-11-11) The chat image (overlay `librechat-custom`, tag `20261111-179fd7c`) now carries a **fail-closed config validator wired at the top of the boot path**: - `validate_config.py` (canonical copy in `ops-docs/scripts/`, shipped byte-identical into the image) runs the deployed build's own strict schema — `configSchema.strict().safeParse()` from the container's `librechat-data-provider` — against `/app/data/librechat.yaml` **before** anything starts. - `patch_start_validator.py` inserts the check into `/app/pkg/start.sh` at build time (idempotent, non-fatal to apply; fatal at runtime **only** when the config is actually invalid). - On an unknown key the boot dies loudly with one line naming the key (`CONFIG VALIDATION FAILED: customFooter: Unrecognized key(s) …`), instead of an API server that never starts behind a healthy-looking shell. Proven before deploy: live yaml passes (7 top-level keys accepted); the reproduced outage config (live yaml + `customFooter`) fails naming the key, through both the deployed-schema path and the static fallback; the served `/api/config` is JSON after the deploy. ## Prevention rules recorded - Treat any librechat.yaml key as schema-validated: check it against the deployed build's `configSchema` before writing it to the volume. - After ANY chat config edit or restart, assert `/api/config` returns JSON — never score recovery by a 200 from the SPA shell.