[M-18] Ops gaps: no healthchecks, depends_on without condition, no resource limits, layer order busts deps.compile, Caddy logs unpersisted, no backups #30
Labels
No labels
architecture
code-quality
correctness
critical
docs
high
low
medium
ops
performance
privacy
security
tests
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
antrapol/CA-MDID-eMudhra#30
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Finding
No HEALTHCHECK / healthcheck blocks (Caddy proxies before the app is up; wedged app never restarted); no mem limits; Dockerfile copies lib/priv/assets before
mix deps.compile(every source change recompiles deps); Caddy access logs write to an unpersisted volume; no:mnesia.backupstory — a corrupt directory crash-loops the release with no runbook.Evidence
Dockerfile:38-42vs:58;docker-compose.yml:52-53;Caddyfile:14-19;lib/mdid_ws/application.ex:43-60Impact
Fragile deployments; slow builds; lost logs; unrecoverable-from-corruption store.
Fix
depends_on: condition: service_healthyLine numbers refer to the initial import commit
282cb11. Source: comprehensive audit, 2026-11-12 (first review of this codebase).Verified fixed on main (
1b6216b): /healthz, healthcheck + service_healthy, mem limits, persisted Caddy logs, backup script and runbook (B2).