Remove personal keys from ephemeral userData

There are personal authorized user keys in the ephemeral userData, but
cloud init already configures password auth. This change removes the
unnecessary keys.

Change-Id: I0054e0dd87dee2dbdbb74cbfe6084e586db4720b
Signed-off-by: Drew Walters <andrew.walters@att.com>
This commit is contained in:
Drew Walters 2020-04-01 20:24:11 +00:00
parent 559788c739
commit 7732567483

View File

@ -11,8 +11,6 @@ stringData:
userData: |
#cloud-config
ssh_pwauth: True
ssh_authorized_keys:
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC4tV63Q3HSSM4V9EInw/pq7dawz8dnAn93Ki8UMLkXIEv+Vby2d+24IddHZig3Tshyn8of5TSLOL0ysOA2Hphh26khBOzG/SGv4cyShj5QU0/Y1ONepyRmkjmi/UmYKBq1xnUSVzqwzz+GUqyMuTAO1hV5xaD80JhKH0YyOghh/N+eYE2m14D5oNDV0l2Hhxix90Lcl7GUQybV3VMsXFJ19KAJYUCQolGn9kWOV3l35FI3vBD4g11OP+1/XHS/4+qBEdK9PNr6kxd0HsYjbqi6JGh9+SB3PvCtzDlIhz9SfmjI7hjOrdJ1vuPcG1gvJSA1x5bcsLJvy91kQx7z6adH root@ubuntu-1
chpasswd:
list: |
root:deploY!K8s
@ -22,8 +20,6 @@ stringData:
- name: deployer
gecos: deployer
ssh_pwauth: True
ssh_authorized_keys:
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC4tV63Q3HSSM4V9EInw/pq7dawz8dnAn93Ki8UMLkXIEv+Vby2d+24IddHZig3Tshyn8of5TSLOL0ysOA2Hphh26khBOzG/SGv4cyShj5QU0/Y1ONepyRmkjmi/UmYKBq1xnUSVzqwzz+GUqyMuTAO1hV5xaD80JhKH0YyOghh/N+eYE2m14D5oNDV0l2Hhxix90Lcl7GUQybV3VMsXFJ19KAJYUCQolGn9kWOV3l35FI3vBD4g11OP+1/XHS/4+qBEdK9PNr6kxd0HsYjbqi6JGh9+SB3PvCtzDlIhz9SfmjI7hjOrdJ1vuPcG1gvJSA1x5bcsLJvy91kQx7z6adH root@ubuntu-1
runcmd:
- curl -L https://github.com/flanksource/konfigadm/releases/download/v0.4.14/konfigadm
-o /usr/local/bin/konfigadm && chmod +x /usr/local/bin/konfigadm