gateway: fail-closed config validation before boot — unknown top-level key or unresolvable provider prefix refuses the start (ops-docs canonical copy shipped byte-identical)
This commit is contained in:
1 parent
64d7e5afc5
commit
e21c24ea48
3 files changed
+280
No files matched your search
@@ -23,6 +23,11 @@ COPY config.yaml /app/data/config.yaml
|
||||
# /app/data volume at boot, so config changes in the repo actually deploy.
|
||||
COPY config.yaml /app/code/config.yaml
|
||||
|
||||
# Fail-closed config validator (canonical copy lives in ops-docs/scripts/;
|
||||
# this byte-identical twin ships with the image and is called from start.sh
|
||||
# before the gateway boots). Mirrors validate_config.py's md5 — keep in step.
|
||||
COPY validate_config.py /app/code/validate_config.py
|
||||
|
||||
# Append the co-op credit-pack hint to LiteLLM's hardcoded budget-exceeded
|
||||
# messages. Done at BUILD time — the runtime rootfs is read-only under
|
||||
# Cloudron, so a boot-time patch would crash the startup script (it did,
|
||||
|
||||
Reference in new issue
Block a user