Files
Heimdall/skills/first-admin-bootstrap/SKILL.md
T
arnaud.dartois 636154572b
Heimdall Gitea / Detect CI scope (push) Successful in 6s
Heimdall Gitea / Build and tests (push) Successful in 19m19s
Heimdall Gitea / Publish versioned release (push) Skipped
Heimdall Gitea / Build and scan server image (push) Successful in 6m13s
Heimdall Gitea / Build and scan agent image (push) Successful in 14m44s
Heimdall Gitea / Publish Docker Hub latest tags (push) Successful in 1m48s
Heimdall Gitea / Build and scan NVIDIA Agent image (push) Successful in 19m9s
Heimdall Gitea / CI policy (push) Successful in 10s
Complete remaining Heimdall features and acceptance
Merge pull request #138

Co-authored-by: Arnaud Dartois <admin@tordais.cc>
2026-11-06 11:14:49 +01:00

1.8 KiB

name, description
name description
first-admin-bootstrap Implement or diagnose Heimdall's mandatory first administrator setup and restrict later account creation to admins.

First administrator setup

Use this skill when changing account bootstrap, signup, login routing, user creation, or initial deployment guidance.

  • The first account is created through a dedicated setup assistant that is reachable only while the database has no users. Do not seed a production password or print credentials to logs.
  • Make first-admin creation one-time and race-safe at the server/API boundary. The UI hiding a link is not an authorization control.
  • After bootstrap, disable anonymous registration regardless of old public-registration settings. Further accounts are created through authenticated, admin-authorized user-management endpoints only.
  • Existing installations with users skip setup and keep their accounts. The bootstrap flow must not overwrite or replace existing users.
  • Update FR/EN resources, route behavior, API client behavior, and tests together. Remove public registration links and ensure direct calls to the old registration route are rejected after setup.
  • For every implementation change, follow compose-disposable-recipe and validate both an empty database (setup and first admin) and an initialized database (setup closed, anonymous registration rejected, admin account creation available).
  • Record a unique tag for every source-built Central image and install an EXIT cleanup trap before build/start. Remove the project and verify zero containers/volumes/networks, then remove and verify absence of each exact local tag even after failure; retain shared PostgreSQL/.NET base images and report cleanup errors.

Never use credentials supplied for a real deployment in tests. Use generated credentials in the disposable Compose environment and sanitize logs.