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 restore already honoured SIM_LAB_SERVICE_ACCOUNT=none on its recreate path; a selftest now pins it.
  • status --json adds root_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, status and status --json never carry the value, the password is on no vm_ssh argument and arrives on stdin, state holds no value, and a restored lab with SIM_LAB_SERVICE_ACCOUNT=none gets --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, status shows 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

Merge request reports

Loading
Loading