Feature request: Default username and password for machine

Bug #1808707 reported by Israel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Won't Fix
Undecided
Unassigned

Bug Description

Hello,
I want to share with you a situation that can happen with MaaS deployed servers: Sometimes, when you lose connection to the server, you want to connect to it with some console port or ILO or something like that. But MaaS is not configuring any username or password, so you basically have to reboot the server and hope for the best. It could be nice to have some kind of username and password to connect - it can be user defined or randomly generated and only the admin of MaaS can see it.
So, what do you say?

Revision history for this message
Lee Trager (ltrager) wrote :

Thanks for the suggestion. While MAAS does not support this natively it does support custom cloud-init user-data scripts. You can create a cloud-init script which adds users[1] and pass it to MAAS using the CLI as follows

$ maas $PROFILE deploy $SYSTEM_ID user_data=$(base64 $SCRIPT)

[1] https://cloudinit.readthedocs.io/en/latest/topics/examples.html#including-users-and-groups

Changed in maas:
importance: Undecided → Wishlist
Revision history for this message
Andres Rodriguez (andreserl) wrote :

We currently don’t have plans of having a default username and password for security concerns. As Lee described, you can enable it yourself by passing cloud-unit config to customize your deployment.

More info https://discourse.maas.io/t/enable-root-user-on-an-deployed-host/259/4

Changed in maas:
importance: Wishlist → Undecided
status: New → Opinion
status: Opinion → Won't Fix
Revision history for this message
Israel (israel1265) wrote :

It is something I've wanted to add to MaaS... So I just want to know if it is a feature request you will approve or decline for security issues.

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.