Skip to content

First boot: random admin password printed to console instead of the public default #943

Closed

Description

@fclairamb

From a user comment on the feddit.org project post (https://feddit.org/post/38184275, comment https://feddit.org/comment/16144435, 2026-11-18):

Vielleicht wäre es auch noch möglich zur Sicherheitssteigerung beim ersten Start, ein zufälliges Passwort zu erstellen und auf der Konsole auszugeben, man wird eh zum Ändern aufgefordert.

Current behavior: first boot seeds a super-admin with the public default password solidpass (server/internal/defaults/defaults.go, job_startup.go) and MustChangePassword=true. The design rationale (spec 2026-10-12-04 comment in job_startup.go): both halves of the credential pair are public, the forced rotation mints an argon2id hash, and a bcrypt hash avoids a 64 MiB argon2 derivation on every first boot.

The window between first boot and the forced rotation is still a real exposure (anyone who reaches the instance first can log in with the public password). A per-install random password printed to the console/logs at first boot would close it, at the cost of operators needing console access to retrieve it (an env-var override could keep automation possible).

Source: https://feddit.org/comment/16144435

Activity

  1. added
    converted-to-spec
    on Nov 18, 2026
  2. fclairamb commented on Nov 19, 2026

    @fclairamb
    OwnerAuthor

    Converted to a spec: specs/todos/2026-11-19-01-first-boot-random-admin-password.md (opus/medium), why: it touches the bootstrap superadmin credential (authorization scope) and needs a product decision on which run modes keep the public default and how operators without console access retrieve a generated password (an SP_ADMIN_PASSWORD override is proposed). Not implemented yet: closing because the spec now tracks it.

  3. fclairamb commented on Nov 19, 2026

    @fclairamb
    OwnerAuthor

    autopilot: in #939

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    autopilotconverted-to-spec

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions