[enhancement] Create / import SSH keys for other user
Bug #1786193 reported by
Tytus Kurek
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Medium
|
Newell Jensen |
Bug Description
Assume I have two users (user1 and user2), both with admin privileges. At the moment it is not possible to create / import SSH keys for user2 when using CLI as user1. It would be also good to have an option to create / import SSH key for newly created users. It becomes important when you have to create hundreds of users.
Related branches
~newell-jensen/maas:lp1786193
Merged
into
maas:master
- Lee Trager (community): Approve
- MAAS Lander: Approve
-
Diff: 226 lines (+114/-4)6 files modifiedsrc/maasserver/api/ssh_keys.py (+21/-2)
src/maasserver/api/tests/test_api.py (+36/-0)
src/maasserver/api/tests/test_users.py (+30/-0)
src/maasserver/api/users.py (+7/-1)
src/maasserver/forms/__init__.py (+5/-1)
src/maasserver/forms/tests/test_sshkey.py (+15/-0)
summary: |
- Create / import SSH keys for other user + [enhancement] Create / import SSH keys for other user |
Changed in maas: | |
milestone: | none → next |
status: | New → Triaged |
tags: | added: wishlist |
Changed in maas: | |
status: | Triaged → In Progress |
assignee: | nobody → Newell Jensen (newell-jensen) |
importance: | Undecided → Medium |
Changed in maas: | |
milestone: | next → 2.5.0rc1 |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
milestone: | 2.5.0rc1 → 2.5.0beta4 |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Hi Tytus,
To fully understand the use case and highlight potential risks, I have a couple of questions:
I was just wondering to what extend is this? Is it just about importing the ssh key of another and importing, once, or does I extend to be able to edit it?
Also, I’m wondering why can’t users import their own SSH keys once they log into MAAS? It seems that if you were to add multiple users each user would have to ensure the right ssh key is available for them to use rather than expect someone else to import them.
Thanks!