lima-vm / alpine-lima

Create an alpine based ISO image for lima
Apache License 2.0
42 stars 28 forks source link

Look for ssh_authorized_keys without dashes #127

Closed afbjorklund closed 6 months ago

afbjorklund commented 6 months ago

The documented spelling of ssh-authorized-keys is actually invalid according to jsonschema, even if accepted by python.

https://github.com/canonical/cloud-init/blob/main/cloudinit/config/schemas/schema-cloud-config-v1.json

$ check-jsonschema --schemafile https://raw.githubusercontent.com/canonical/cloud-init/main/cloudinit/config/schemas/schema-cloud-config-v1.json --verbose cloud-config.yaml
...
    $.users[0]: Additional properties are not allowed ('ssh-authorized-keys' was unexpected)
jandubois commented 6 months ago

@afbjorklund Let me know if you want a new release with this change!