Immich's Compose creates the external network as immich_default, not
immich-net. Rename the external network reference so portal-app and
the preflight ops service attach to the existing network instead of
failing with 'network immich-net declared as external, but could not
be found'.
Co-Authored-By: Claude <noreply@anthropic.com>
The portal database lives on an internal-only network and is not exposed to
the host, so `pnpm drizzle-kit migrate` and admin seeding cannot run from the
host. Add one-shot `ops`-profile services built from the builder stage that run
migrations, seed the first admin, and run the preflight smoke test against the
real env from inside the network. Share the app env via an x-portal-env anchor.
Update the runbook to use the new commands.
Co-Authored-By: Claude <noreply@anthropic.com>
scripts/preflight.ts validates that every required env var is set, then
checks live connectivity to the database, the Better Auth adapter (instance
builds + user table readable), SMTP and Immich. Prints OK/FAIL per check
and exits non-zero on any failure. Run it when bringing up the box to catch
missing env vars and dead connections before going live.
Co-Authored-By: Claude <noreply@anthropic.com>
- Wire admin approval UI to editorialService.approveEditorial so editorial
accounts can move pending_approval -> active and log in. The approve button
was permanently disabled and the service unreachable, so editorial users
could never sign in.
- Surface non-validation errors (e.g. SMTP failures) on the registration
form instead of silently redirecting to the confirmation page.
- Set BETTER_AUTH_URL default to the production domain in .env.example and
compose.yaml so verification/reset links and the login origin check
resolve against the live origin.
- Add scripts/check-smtp.ts to verify SMTP connectivity against the
configured transport.
Co-Authored-By: Claude <noreply@anthropic.com>
- Revert packageManager from pnpm@11.16.0 back to pnpm@10.34.5
(restore the plan's pinned version; the PATH pnpm is unaffected).
- Inject a deterministic PDFKit document /ID derived from
SHA-256(snapshot.documentId) so the same snapshot always produces
byte-identical output, making the stored SHA-256 a verifiable
integrity fingerprint.
- Add covering test: render same fixture twice, assert bytes.equals()
and sha256 equality.
Co-Authored-By: Claude <noreply@anthropic.com>