Provide password option to 'juju register' and automatically add to accounts.yaml

Bug #1887737 reported by Haw Loeung
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Canonical Juju
Triaged
Low
Unassigned

Bug Description

Hi,

On creating a new user on a Juju controller, we're presented with a command to run 'juju register' with a base64-encoded blob. On running this command, it prompts for a password 3 times (new, confirm, and to use).

The prompts:

| user@host:~$ juju register MIHc...
| Enter a new password:
| Confirm password:
| Enter a name for this controller [controller]:
| Initial password successfully set for myuser.
| please enter password for myuser on controller:
|
| Welcome, myuser. You are now logged into "controller".

Any chance of adding an option to pass through a password avoiding these 3 prompts? This lets us easily automate (without expect and such).

Revision history for this message
Paul Collins (pjdc) wrote :

And then we have to edit ~/.local/share/juju/accounts.yaml and add the password to the relevant stanza so that we don't have to keep logging in (or have our cron jobs that run against the model start failing when the cookie or whatever expires).

Revision history for this message
Tim McNamara (tim-clicks) wrote :

This sounds like a really good suggestion. I'm tagging it as wishlist until it can be triaged and scheduled properly.

Changed in juju:
status: New → Triaged
importance: Undecided → Wishlist
Revision history for this message
Haw Loeung (hloeung) wrote :

Oh yeah, automatically updating accounts.yaml with said password would also be useful.

description: updated
description: updated
Haw Loeung (hloeung)
summary: - Provide password option to 'juju register'
+ Provide password option to 'juju register' and automatically
+ accounts.yaml
summary: - Provide password option to 'juju register' and automatically
+ Provide password option to 'juju register' and automatically add to
accounts.yaml
Revision history for this message
Canonical Juju QA Bot (juju-qa-bot) wrote :

This bug has not been updated in 2 years, so we're marking it Low importance. If you believe this is incorrect, please update the importance.

Changed in juju:
importance: Wishlist → Low
tags: added: expirebugs-bot
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.