cloud-init
cloud-init copied to clipboard
User/Group keys with dashes not included in schema
Bug report
Due to some unfortunate old code, every users/groups key in our user data allows for both underscores and dashes. For example, if we define the key as ssh_authorized_keys
, then ssh-authorized-keys
is also valid.
The schema for all of the user and group properties contains the _
version of the key but not the -
version. The schema needs to be updated to allow both while specifying that the -
version is deprecated.
https://github.com/canonical/cloud-init/pull/5162 already does this for ssh-authorized-keys
, but we should do it for the remaining keys to be consistent.