chat: fail-closed librechat.yaml validation at boot — insert configSchema.strict() check into /app/pkg/start.sh at build time (2026-10-31 customFooter outage guard)
This commit is contained in:
1 parent
bb276dd7dd
commit
179fd7ce02
3 files changed
+341
No files matched your search
+10
@@ -54,6 +54,16 @@ COPY sync-keys.js /app/code/sync-keys.js
|
||||
COPY patch_ui_strings.py /app/code/patch_ui_strings.py
|
||||
RUN python3 /app/code/patch_ui_strings.py
|
||||
|
||||
# Fail-closed librechat.yaml validation, inserted into /app/pkg/start.sh at
|
||||
# BUILD time (the runtime rootfs is read-only). The validator script's
|
||||
# canonical copy lives in ops-docs/scripts/ — this byte-identical twin ships
|
||||
# with the image. patch_start_validator.py is non-fatal at build (a missing
|
||||
# anchor only skips the insert) and idempotent; an INVALID config is fatal at
|
||||
# RUNTIME by design. Keep validate_config.py's md5 in step with the canonical.
|
||||
COPY validate_config.py /app/code/validate_config.py
|
||||
COPY patch_start_validator.py /app/code/patch_start_validator.py
|
||||
RUN python3 /app/code/patch_start_validator.py
|
||||
|
||||
# Inject branding into built HTML (dist) before image is packaged.
|
||||
# patch_index.py: title, custom.css/custom2.js links, and a per-build
|
||||
# x-coop-build meta (unique every build → service worker precache revision
|
||||
|
||||
Reference in new issue
Block a user