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:
In case ORCHARD_BOOTSTRAP_ADMIN_TOKEN is provided , the user will see this:
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:In case
ORCHARD_BOOTSTRAP_ADMIN_TOKEN
is provided , the user will see this: