-
Notifications
You must be signed in to change notification settings - Fork 175
vic-machine debug --rootpw enables SSH #6402
Description
@stuclem commented on Wed Sep 06 2017
From Slack:
Eduardo Meirelles [7:47 PM]
BTW… not sure if you guys have a chance to look at --rootpw behavior…when I ran debug --rootpw it also enabled SSH access, even though I did not specify --enable-ssh option.
Matt Williamson [8:00 PM]
i just confirmed that using the rootpw flag in 1.1.1 also enabled ssh access.
[8:00]
the docs should be updated to reflect that rootpw enables SSH AND changes the default password
[8:00]
where enable_ssh turns it on with the default password
@stuclem commented on Mon Sep 18 2017
@mdubya66 and @emeirell if I remember correctly the discussions that I had with @hickeng at the time that he added these options, this is actually a bug in the implementation of --rootpw.
I believe that the intention is for vic-machine debug to work as documented, i.e. --rootpw activates Shell access only, and then if used in combination with --enable-ssh, it enables shell and SSH access, using the same password. I can't fully remember why this separation was necessary, but @hickeng and I did go around the houses a few times when I wrote up these topics (with substantial contribution from @hickeng, IIRC).
Of course, even if the docs do present the desired behaviour, they do not present the actual behaviour. So, we have two options:
- Make the current behaviour the official behaviour and rewrite the docs accordingly.
- Fix the implementation of
--rootpwin the product, and in the meantime, document the fact that--rootpwalso enables SSH as a Known Issue in the release notes.
Which do you prefer?
@emeirell commented on Mon Sep 18 2017
Fixing the implementation of --rootpw seems the right thing to do.
This security granularity control is greatly appreciated within customers.
@stuclem commented on Thu Sep 21 2017
In the meantime, I'll add this as a Known Issue in the release notes.
@stuclem commented on Thu Sep 21 2017
Moving this to the vic repo, as this is an engineering issue rather than a doc issue. I did not find an existing issue about --rootpw enabling SSH.