SETUP_ADMIN_PASSWORD minimum length (10) is undocumented; violation crash-loops the api with a raw ZodError #325
Labels
No Label
area:auth
area:docs
area:export
area:ops
area:storage
area:supply-chain
auth
backend
blocked
collab
deployment
docs
effort:L
effort:M
effort:S
frontend
plugins
qa
vs-nfd
vs-nfd:blocker
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: stwaidele/dorfteich#325
Loading…
Reference in New Issue
Block a user
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?
Reported by Stefan from a manual clean install per docs/self-hosting/README.md (v0.14.0, Docker CE / Compose v2, Debian 13).
Pre-seeding (SetupService.preseedFromEnv, apps/api/src/setup/setup.service.ts) validates the admin password via setupAdminInputSchema -- min 10 characters (packages/shared/src/auth.ts:37). Neither docs/self-hosting/README.md nor deploy/compose/.env.example mentions the minimum.
Symptom: with a shorter SETUP_ADMIN_PASSWORD the api crash-loops on start; the log shows only an unhandled stacktrace ending in the i18n key
validation.password.tooShort-- which SETUP_* value is meant has to be guessed from the stacktrace.Repro: complete pre-seeding block in .env but SETUP_ADMIN_PASSWORD < 10 characters,
docker compose up -d-> api restart loop with the ZodError.Fix outline:
# min. 10 characters).