Skip to content

Commit

Permalink
ENCD-3785 Add user to deploy auth keys (#2097)
Browse files Browse the repository at this point in the history
  • Loading branch information
caseylitton authored Dec 20, 2017
1 parent e211b3f commit d7aa9e2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions cloud-config-cluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@ output:
all: '| tee -a /var/log/cloud-init-output.log'

runcmd:
- mv /home/ubuntu/.ssh/authorized_keys /home/ubuntu/.ssh/authorized_keys2
- aws s3 cp --region=us-west-2 %(S3_AUTH_KEYS)s /home/ubuntu/.ssh/authorized_keys
- sudo -u ubuntu mv /home/ubuntu/.ssh/authorized_keys /home/ubuntu/.ssh/authorized_keys2
- sudo -u ubuntu aws s3 cp --region=us-west-2 %(S3_AUTH_KEYS)s /home/ubuntu/.ssh/authorized_keys
# Ideally this would build as a different user so encoded only has read
# permissions
- set -ex
Expand Down
4 changes: 2 additions & 2 deletions cloud-config-elasticsearch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ output:
all: '| tee -a /var/log/cloud-init-output.log'

runcmd:
- mv /home/ubuntu/.ssh/authorized_keys /home/ubuntu/.ssh/authorized_keys2
- aws s3 cp --region=us-west-2 %(S3_AUTH_KEYS)s /home/ubuntu/.ssh/authorized_keys
- sudo -u ubuntu mv /home/ubuntu/.ssh/authorized_keys /home/ubuntu/.ssh/authorized_keys2
- sudo -u ubuntu aws s3 cp --region=us-west-2 %(S3_AUTH_KEYS)s /home/ubuntu/.ssh/authorized_keys
# Ideally this would build as a different user so encoded only has read
# permissions
- set -ex
Expand Down
4 changes: 2 additions & 2 deletions cloud-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@ output:
all: '| tee -a /var/log/cloud-init-output.log'

runcmd:
- mv /home/ubuntu/.ssh/authorized_keys /home/ubuntu/.ssh/authorized_keys2
- aws s3 cp --region=us-west-2 %(S3_AUTH_KEYS)s /home/ubuntu/.ssh/authorized_keys
- sudo -u ubuntu mv /home/ubuntu/.ssh/authorized_keys /home/ubuntu/.ssh/authorized_keys2
- sudo -u ubuntu aws s3 cp --region=us-west-2 %(S3_AUTH_KEYS)s /home/ubuntu/.ssh/authorized_keys
# Ideally this would build as a different user so encoded only has read
# permissions
- set -ex
Expand Down

0 comments on commit d7aa9e2

Please sign in to comment.