import-ssh-key should allow importing ssh keys for non-admin

Bug #1629835 reported by Roger Peppe
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
juju
Triaged
High
Unassigned

Bug Description

From cmd/juju/commands/import_sshkeys.go:

 // TODO(alexisb) - currently keys are global which is not ideal.
 // keymanager needs to be updated to allow keys per user
 c.user = "admin"
 results, err := client.ImportKeys(c.user, c.sshKeyIds...)

Without this, no-one that has logged in as an external user can
add ssh keys, (even a user with admin rights cannot add ssh keys
to user "admin" - perhaps that's also a bug)

Changed in juju:
status: New → Triaged
importance: Undecided → High
assignee: nobody → Alexis Bruemmer (alexis-bruemmer)
milestone: none → 2.1.0
Changed in juju:
assignee: Alexis Bruemmer (alexis-bruemmer) → nobody
Revision history for this message
Ian Booth (wallyworld) wrote :

The TODO is not on the roadmap for resolution any time soon.
However, the fix for allowing controller superusers or model admins to import or add ssh keys landed in 2.1-rc1 as per bug 1663035

Changed in juju:
milestone: 2.1.0 → none
Revision history for this message
Richard Harding (rharding) wrote :

Also note https://bugs.launchpad.net/juju/+bug/1816421 with feedback regarding error messaging when permission for ssh is not granted.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers