Document bootstrap seed script and admin password hash

This commit is contained in:
Fabian Wolter
2026-06-14 07:47:55 +00:00
parent 8b31dfc7ca
commit 7956d03629
3 changed files with 102 additions and 34 deletions
@@ -9,44 +9,25 @@ Für RUVNOX Tactical wurden erste Seed-Daten direkt in PostgreSQL angelegt.
- Admin-Benutzer: admin
- Anzeigename: RUVNOX Admin
- Rolle: admin
- Passwort-Hash: NULL
- Einsatzraum: HQ
- Einsatzraumname: RUVNOX Lagezentrum
- Klassifizierung: internal
- Mitgliedschaft: admin als lead im Raum HQ
- Audit-Event: bootstrap.seed_completed
## Ergebnis
## Hinweis
Der öffentliche Overview-Endpunkt liefert jetzt echte Werte:
Der Schritt 019 hat zunächst den fachlichen Admin-Datensatz, den HQ-Raum und das Audit-Event angelegt.
users.total = 1
users.active = 1
operationRooms.total = 1
operationRooms.active = 1
auditEvents = 1
Der Overview-Endpunkt zeigte danach echte Werte:
## Wichtiger Hinweis
- users.total = 1
- users.active = 1
- operationRooms.total = 1
- operationRooms.active = 1
- auditEvents = 1
Der Admin-Datensatz ist aktuell noch kein echter Login-Account.
password_hash bleibt bewusst NULL, weil Auth/Login noch nicht implementiert ist.
## Verifikation
Benutzer:
select username, display_name, role, is_active from app_users order by username;
Einsatzräume:
select code, name, classification, is_active from operation_rooms order by code;
Audit:
select event_type, entity_type, created_at from audit_events order by created_at desc limit 5;
API:
## API-Prüfung
curl -fsS https://tactical.ruvnox.de/api/v1/system/overview
@@ -57,9 +38,3 @@ curl -fsS https://tactical.ruvnox.de/api/v1/system/overview
- Admin als lead eingetragen
- Audit-Event angelegt
- Overview-Endpunkt geprüft
- Keine Server-Code-Änderung
- Keine Deploy-Code-Änderung
## Nächster Abschnitt
Empfohlen: Seed-Daten als kleines versioniertes Deploy-Script speichern oder direkt Auth-Grundlage beginnen.