cloud-init icon indicating copy to clipboard operation
cloud-init copied to clipboard

User/Group keys with dashes not included in schema

Open TheRealFalcon opened this issue 4 months ago • 2 comments

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.

TheRealFalcon avatar Apr 18 '24 15:04 TheRealFalcon