No reviewers
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!55
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/b2-ops-config"
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?
Batch B2: #12 Docker build, #18 SOAP defaults, #26 cert URLs, #30 ops gaps
#12 Build context is the repo root with a root
.dockerignore(no more parent-workspace upload,.env/keys excluded). Release path followsARG MIX_ENV(re-declared in the runner stage). Dev compose uses adevbuild target and just runsmix phx.server(no git/SSH/deps.getat runtime).#30 Layer order manifests → deps → sources.
GET /healthz(200 only with Mnesia loaded + Sub CA present; hidden from the internet at Caddy), image HEALTHCHECK, Caddydepends_on: service_healthy, memory limits, persisted Caddy logs,scripts/backup_mnesia.sh,docs/backup-restore.md.#18 / #26 In
:prod,config/runtime.exsrequiresMDID_PUBLIC_BASE_URL(AIA/OCSP/CRL URLs baked into every certificate; per-URL overrides optional),MDID_SOAP_PROFILEandMDID_SOAP_ENDPOINT; all https-only, no pilot default.NationalIDClientreads the configured endpoint. Dev/test keep code defaults.Also fixes an A6 regression: base compose required
MDID_KEY_ENCRYPTION_KEYeven for dev; the release itself still refuses to boot without it.Breaking
Prod
.envneedsMDID_PUBLIC_BASE_URL,MDID_SOAP_PROFILE,MDID_SOAP_ENDPOINT(checked bystart-docker-prod.shand the release). Compose build context moved.NOT verified
docker compose config.install_fallbackmechanism itself was verified locally with plain Elixir.config/dev.exs(pre-existing), so Caddy cannot reach it in dev compose.Review
Pass 1 (ponytail) and Pass 2 done; all Must/Important items fixed (restore procedure, backup trap/exact match, https validation,
**/*.pem, duplicate healthcheck, dev start_period, assets setup). Fixes were not re-reviewed by a second Pass 1.Tests / coverage
290/292 pass; 2 failures are the pre-existing live-site
TrustgateLifecycleTest. New: healthz, runtime.exs prod config (required/empty/https/overrides), configured SOAP endpoint. HealthController 80%, NationalIDClient 77.7% (unchanged paths dominate), total 73.9%.🤖 Generated with Claude Code