[ux] juju does not add an ssh key to a per-model cache when a bundle is deployed to a model created by somebody else
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Triaged
|
Low
|
Unassigned |
Bug Description
Juju does not add an ssh public key from your local client's directory (.local/
This is more of a UX request, consider the following:
1) an admin creates a model for you and gives you rw rights on it;
2) you login to the target controller (via Candid in my case);
3) switch to the created model;
4) you can deploy to this model but `juju ssh` fails as your key was not imported;
5) then you do `juju add-ssh-key "key-from-
The first impression when you encounter an authentication error is that Juju did something wrong when importing keys.
If you know that `juju run` allows you to do `cat .ssh/authorized
This falls a bit under future work to make ssh keys per user and to allow ssh access as a permission level change.
It's not intended for model access to necessarily allow ssh access.
We should be making the access more explicit in the future work e.g.
juju ssh ...
ERROR: user x does not have model ssh access
See: /bugs.launchpad .net/juju/ +bug/1629835
https:/