Commit 9055dcc
mios.toml [auth]: default to password_policy=plain password=mios
Operator 2026-05-10 verified live: Cockpit login at https://localhost:9090/
rejected `mios / mios` even though the dashboard advertises exactly
those credentials. Root cause traced to the overlay step's chpasswd
having inlined "mios:mios" rather than resolving from the toml --
which on prior installs led to silent mismatches (CRLF leaks, stale
hashes from earlier runs, etc.) without any verification.
This commit declares mios.toml as the SSOT for the dev VM password.
Pairs with build-mios.ps1 in mios-bootstrap which:
* reads [auth].password via the placeholder __MIOS_LOGIN_PASSWORD__
* substitutes it into the overlay heredoc BEFORE bash-side eval
* verifies the resulting /etc/shadow entry via a pty-driven
`su - mios` so a silent failure surfaces as a build warning
Default is "mios" so the dashboard's "login: mios / mios" works as
advertised. Operator picks a stronger password via mios.html ->
[auth].password -> next overlay pass writes /etc/shadow accordingly.
The mios.toml [auth] comment block documents the four policy modes
(plain / hashed / interactive / none).
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent 569b567 commit 9055dcc
1 file changed
Lines changed: 21 additions & 6 deletions
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
55 | | - | |
56 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
57 | 58 | | |
58 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
59 | 73 | | |
60 | 74 | | |
61 | 75 | | |
62 | 76 | | |
63 | 77 | | |
64 | | - | |
65 | | - | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
66 | 81 | | |
67 | 82 | | |
68 | 83 | | |
| |||
0 commit comments