Skip to content

WAN-98: harden self-host backend runtime#4316

Open
haoxianhan wants to merge 3 commits into
multica-ai:mainfrom
haoxianhan:wan-98-runtime-hardening
Open

WAN-98: harden self-host backend runtime#4316
haoxianhan wants to merge 3 commits into
multica-ai:mainfrom
haoxianhan:wan-98-runtime-hardening

Conversation

@haoxianhan

Copy link
Copy Markdown

Summary

  • Run the self-host backend image as non-root while preserving /app/data/uploads writability.
  • Wire self-host startup and Compose health checks to readiness (/readyz) instead of liveness (/health).
  • Clarify migration orchestration, external Postgres configuration, uploads ownership, and release provenance docs.

Validation

  • bash scripts/selfhost-config.test.sh
  • bash -n scripts/selfhost-config.test.sh scripts/local-env.sh scripts/install.sh docker/entrypoint.sh
  • docker compose --env-file .env.example -f docker-compose.selfhost.yml -f docker-compose.selfhost.build.yml config
  • helm template multica deploy/helm/multica
  • env GOCACHE=/tmp/wan98-go-build GOMODCACHE=/tmp/wan98-go-mod go test ./internal/storage
  • docker build -t multica-backend:wan98-smoke ... -f Dockerfile .
  • docker run --rm --entrypoint /bin/sh multica-backend:wan98-smoke -c 'id -u; id -g; touch /app/data/uploads/.wan98-smoke; test -w /app/data/uploads; rm /app/data/uploads/.wan98-smoke'
  • git diff --check

WAN-98

@vercel

vercel Bot commented Jun 18, 2026

Copy link
Copy Markdown

@haoxianhan is attempting to deploy a commit to the IndexLabs Team on Vercel.

A member of the Team first needs to authorize it.

@haoxianhan haoxianhan marked this pull request as ready for review June 22, 2026 10:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant