cirruslabs / orchard

Orchestrator for running Tart Virtual Machines on a cluster of Apple Silicon devices
Other
194 stars 16 forks source link

controller run: make bootstrap process more user-friendly #201

Closed edigaryev closed 1 week ago

edigaryev commented 1 week ago

It seems that there's no simple way to modify a single Badger DB from two different processes, which makes creation of a command like orchard controller reset-password more complicated that it's supposed to be.

Let's at least make the bootstrapping more user-friendly by auto-generating the password on first start, so that no juggling with environment variables will be needed by default, and in case the user wants to use a custom password or reset it, they can do so via the ORCHARD_BOOTSTRAP_ADMIN_TOKEN.

With this PR, on first startup of orchard controller run the user will see this:

Screenshot 2024-09-03 at 18 31 03

In case ORCHARD_BOOTSTRAP_ADMIN_TOKEN is provided , the user will see this:

Screenshot 2024-09-03 at 18 31 15