chore(push): add ssh_key option when using push-ot3 #13521
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
We are enabling SSH RSA keys on the Flex, which means you will no longer be able to SSH to a Flex release build without a valid SSH private key added using the new
/server/ssh_keys/from_local
endpoint recently added here. Because of this, we want to make sure developers are not affected and are ready once the robots require SSH keys. In order to support this we need to change ourpush-ot3
Makefile script so it now takes in an identity filessh_key
as the private key.Instructions for adding your SSH key to the Flex
/server/ssh_keys/from_local
endpoint/server/ssh_keys/from_local
endpoint, see belowcurl --location --request POST 'http://10.13.11.96:31950/server/ssh_keys/from_local' --header 'opentrons-version: 3'
201
and the message will tell you how many keys were added{ "message": "Added 1 new keys", "key_md5": [ "0ca9f47168c05f6675fe1806f9063084" ] }
404
{ "error": "no-key", "message": "No valid keys found" }
Test Plan
ssh_key
on a robot with ssh keys enabled and make sure you get permission deniedssh_key
on a robot with SSH keys enabled and make sure you get permission denied if the private key is invalidssh_key
on a robot with SSH keys enabled and make sure you can SSH if you have a valid private key.Changelog
ssh_key
option to make-push so It takes in an identity file in order to perform SSH/SCP operationsdefault_ssh_key
fromscripts/push.mk
so we can still ssh into a Flex without providing an identity fileReview requests
default_ssh_key
, Is anything wrong with this?Risk assessment
Medium, this will affect developers directly or anyone needing to use make push-ot3 to SSH/SCP to the robot and if the robot version and local monorepo branch are not in sync it will cause problems.