prabhatsharma / kubernetes-the-hard-way-aws

AWS version of Kelsey's kubernetes-the-hard-way
Apache License 2.0
578 stars 349 forks source link

use StrictHostKeyChecking=no ssh option to auto-accept new host keys #21

Closed aleks-mariusz closed 4 years ago

aleks-mariusz commented 4 years ago

Addresses issue #18

This will automatically add the new hosts' keys to the ~/.ssh/known_hosts file without interactive prompt. This speeds up running the commands, at the slight risk of not prompting user if they trust this (new) host. The window between having created the new hosts and someone setting up a MITM scenario is miniscule enough that I felt this was an acceptable risk with the benefit of being able to get through the commands quicker (not having to pause to type 'yes' for each of the 3 worker/3 master nodes).

aleks-mariusz commented 4 years ago

Canceling as project owner prefers to not create this "abstraction" which removes some of the difficulty (and hence learning benefits) of the point of this project.