Loading
Give every omnibus lab a random root password
Closes #46 (closed)
What
With no SIM_ROOT_PASSWORD, an omnibus lab installed with one fixed engine default, so on a shared host one lab's password opened every other lab. up now generates a password per lab: 32 letters and digits with at least one lower-case letter, one upper-case letter and one digit, so no shell, Ruby or URL quoting applies. The install uses it, and only the mode-600 <instance>.root-password file holds it. Nothing prints it. A re-run of the same lab keeps its password; an explicit SIM_ROOT_PASSWORD still wins.
- The password reaches the VM over ssh stdin, never on a command line. The omnibus bootstrap reads one line from stdin (or
SIM_ROOT_PASSWORD), drops its own default and refuses to run without one. - The state record holds the file path and no password value.
lab restorealready honouredSIM_LAB_SERVICE_ACCOUNT=noneon its recreate path; a selftest now pins it. status --jsonaddsroot_password_file, the file's path and never the value (schema 15; 14 is taken by the provider-seam work).- The only places that carried the old literal were the engine's
install_omnibus, the omnibus bootstrap and one selftest pattern. Probes, seeds, hotpatch, geo, praefect, docs-preview and the contrib recipes use a token or the VM, never the password; the docs now say each omnibus lab has its own random password.
Proof
- Selftests fail without the change and pass with it: a grep gate for the old literal, two labs get different passwords, a re-run keeps one,
statusandstatus --jsonnever carry the value, the password is on novm_sshargument and arrives on stdin, state holds no value, and a restored lab withSIM_LAB_SERVICE_ACCOUNT=nonegets--no-service-account. - Live on an omnibus rig built from the final design (stdin transport): the file is mode 600, no process command line, log or state carries it,
statusshows the path and no value, root sign-in returns 302 with the file's password and 200 (the form re-rendered) with the old default. Rig torn down.
No diagram: the change is a generated value and one file, with no flow or topology to draw.
The word budget stays at its 40489 ceiling; the doc edit is paid for with cuts in the same paragraph.
Edited by Andrew Dunn