vagrant xenial box is not provided with vagrant/vagrant username and password
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Xenial Backports |
Fix Released
|
Undecided
|
Unassigned | ||
cloud-images |
Fix Released
|
Undecided
|
Chris Glass | ||
Xenial |
Fix Released
|
Undecided
|
Chris Glass | ||
vagrant |
Invalid
|
Undecided
|
Unassigned | ||
livecd-rootfs (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Xenial |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
It is Vagrant convention that the default user is named "vagrant"[0], and a whole host of scripts assume this to be the default.
The xenial box is substantially less useful to Vagrant users with the "ubuntu" user as the default.
[0] Search for "user to SSH" in https:/
------------
Xenial SRU:
[impact]
* An additional "vagrant" user is available in the created image once the proposed patch is applied. The normal "ubuntu" user is also available, and is conforming to the "ubuntu experience" (it requires cloud-init or another mechanism to be given keys/a password).
* The vagrant boxes produced by livecd-rootfs hooks do not conform to the vagrant community's guidelines for box creation, leading vagrant users to use non-official (unaudited) boxes instead, where a "vagrant" user can be found.
* A large portion of vagrant automation (3rd party tools, scripts) rely on the presence of a "vagrant" user conforming to the above guidelines. The official ubuntu images are ones of the very few not conforming to the expected user layout.
* The official Ubuntu trusty image previously offered a "vagrant" user, and that was lost or omitted when migrating xenial+ to a new build system. This could be considered a regression, although historical context of that change is unfortunately not available anymore.
[test case]
From a fresh Ubuntu install:
* sudo apt install vagrant
* vagrant init ubuntu/xenial64
* vagrant up
* vagrant ssh
notice the user being logged in as is "ubuntu"
With either ubuntu/artful64 or ubuntu/trusty64, the same steps log the user in as "vagrant".
An image with the proposed changes was built and uploaded as "tribaal/xenial64".
[Regression potential]
* Users who worked around this behavior in their automation are the most at-risk. They might not be able to login to their boxes anymore, if they worked around by extracting the ubuntu password from the box metadata. If they worked around the problem using cloud-init, no regression will be visible.
* The changes introduce a new insecure user, users having worked around the problem on their own might be be unaware of this.
* The general consensus in the vagrant community is to install third-party boxes instead of spending time to try and workaround the problems with the official ubuntu boxes, so it is likely to be a limited real-world impact.
* The change might affect exotic systems where people for some reason decided to build a non-vagrant machine out of our official vagrant image
Note that these regressions will apply to users upgrading their installations to future releases (artful, bionic, and later).
Related branches
- Łukasz Zemczak: Approve (non-cpc)
- David Britton (community): Approve
- Philip Roche (community): Approve
-
Diff: 80 lines (+30/-11)2 files modifieddebian/changelog (+7/-0)
live-build/ubuntu-cpc/hooks/042-vagrant.binary (+23/-11)
- Chris Glass (community): Approve
- Steve Langasek: Approve
-
Diff: 12 lines (+1/-1)1 file modifiedlive-build/ubuntu-cpc/hooks/042-vagrant.binary (+1/-1)
- Chris Glass (community): Approve
-
Diff: 29 lines (+10/-1)2 files modifieddebian/changelog (+7/-0)
live-build/ubuntu-cpc/hooks/042-vagrant.binary (+3/-1)
Changed in vagrant: | |
status: | Invalid → Opinion |
Changed in cloud-images: | |
status: | New → Confirmed |
Changed in vagrant: | |
status: | Opinion → Confirmed |
Changed in cloud-images: | |
assignee: | nobody → Chris Glass (tribaal) |
description: | updated |
description: | updated |
Changed in livecd-rootfs (Ubuntu): | |
status: | New → Fix Released |
description: | updated |
Changed in livecd-rootfs (Ubuntu Xenial): | |
assignee: | nobody → Chris Glass (tribaal) |
assignee: | Chris Glass (tribaal) → nobody |
Changed in xenial-backports: | |
status: | New → Fix Released |
no longer affects: | cloud-images/trunk |
issue still present in image 20160420.3