juju register without prompts
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Triaged
|
Wishlist
|
Unassigned |
Bug Description
As part of Sunbeam multi-node deployments, we create a new Juju user for each node in the deployment in order for it to interact with the various models and applications deployed.
As part of this setup process we currently use the juju register command with the token generated for the new user to setup per-node access on each machine - this currently requires parsing of the prompts that this command uses for:
r"Enter a new password"
r"Confirm password"
r"Enter a name for this controller"
This is somewhat brittle as if any of these prompts change, the code will fail to parse the interactive part of the new user access setup.
Please could we have a way to pass this information without to Juju - maybe via a file that is passed as a command line argument to avoid exposing sensitive credentials on the process execution.
Changed in juju: | |
milestone: | 4.0-beta2 → 4.0-beta3 |
Changed in juju: | |
milestone: | 4.0-beta3 → 4.0-beta4 |
Changed in juju: | |
milestone: | 4.0-beta4 → 4.0-beta5 |
Hi James,
It looks like a potential feature for future cycle.