No admin password recovery path: lose the one-time bootstrap line and the deployment is unreachable #208
Reference in New Issue
Block a user
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?
Bootstrap works and is documented (
internal/database/database.go:193-264,README.md:243-246). Logging the plaintext once is intentional — #40 was closed on that basis and this issue does not reopen it.The gap is what happens after. The password appears exactly once, as one line among roughly 45 fx
PROVIDE/RUN/HOOKlines on stdout, and underdocker run -dit goes to container logs subject to rotation. There is no reset path: no CLI subcommand (cmd/webhooker/main.gohas no flags or subcommands at all), no forgot-password flow, no env override. Recovery today means hand-deleting theusersrow fromwebhooker.dbso the next start re-seeds, which is documented nowhere.Changing a known password works fine (verified:
POST /user/admin/passwordsucceeds). This is only about the lost case.Definition of done:
webhooker resetpwsubcommand (or equivalent) that takes the username, generates or accepts a password, and writes the Argon2id hashDATA_DIRheld by a live instance, per the locking issue filed alongside this one