We currently pass the ssh key read from disk straight into
cloud-init. If it contains newlines before or after, it can
break the yaml formatting of the cloud-init causing the appliance
to fail to successfull boot.
Change-Id: I26ef83dc7b02afc5e30f09447363ee27c9dca07c
Closes-bug: #1573167
(cherry picked from commit 158cf8d670654a569e793802a7e026f07efef715)
Reviewed: https:/ /review. openstack. org/309135 /git.openstack. org/cgit/ openstack/ astara/ commit/ ?id=5d428949c6d 971cf86e932e574 33fc52a1bc47cb
Committed: https:/
Submitter: Jenkins
Branch: stable/liberty
commit 5d428949c6d971c f86e932e57433fc 52a1bc47cb
Author: Adam Gandelman <email address hidden>
Date: Thu Apr 21 11:00:14 2016 -0700
Ensure ssh key is sanitized when read from disk
We currently pass the ssh key read from disk straight into
cloud-init. If it contains newlines before or after, it can
break the yaml formatting of the cloud-init causing the appliance
to fail to successfull boot.
Change-Id: I26ef83dc7b02af c5e30f09447363e e27c9dca07c 69e793802a7e026 f07efef715)
Closes-bug: #1573167
(cherry picked from commit 158cf8d670654a5