WIZ-USERS: Installation wizard – default admin and starting users #212
Labels
No labels
L
M
P0
P1
P2
S
Testing
UX/UI
User Story
XL
XS
XXL
XXS
access
accessibility
backend
bug
containers
documentation
duplicate
encryption
enhancement
feature
fix
frontend
functional req
good first issue
help wanted
installation
integration
invalid
non-functional req
non-tech individual
office worker
quadlet
question
recovery
security
storage-core
sysadmin
system
tech individual
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
kyrylo/vorteq-nas-os#212
Loading…
Reference in a new issue
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?
Goal
Build the accounts steps of the installation wizard (front-end + back-end): create the default admin (required) and optionally a number of starting users.
The system scripts are written separately. This task is only the UI and the backend that calls the scripts. Use mock scripts returning the same JSON until the real ones exist.
Context
nas-adminsScripts the backend can use
Rules for all scripts: arguments as CLI flags, JSON on stdout, exit code 0 = success, non-zero = failure with
{"error": "..."}. Passwords are passed via stdin, never as arguments.nas-add-user--admin(adds tonas-admins), optional separate SMB password; passwords via stdinnas-set-smb-passwordnas-common.shnas-adminsconstant)Front-end: what must be shown
Screen A: Create the administrator (required)
-,_, must start with a letter, length limits, reserved names blockednas-adminsScreen B: Add starting users (optional)
Back-end: what it must do
POST /api/accounts/createwith body:POST /api/accounts/validate(validation without creating anything)nas-admins), then the users in order, usingnas-add-usersmbPasswordis empty, the SMB password equals the account password (vianas-set-smb-password)