Depends on D7695. This updates preallocated hosts to use Passphrase credentials. Due to the way SSH private key text credentials work (the TempFile disappears before SSH commands can be executed), this only supports file-based private keys at the moment.
Details
Details
- Reviewers
epriestley - Group Reviewers
Blessed Reviewers - Maniphest Tasks
- T4111: Use Drydock to allocate build machines for Harbormaster
T1049: Implement Harbormaster - Commits
- Restricted Diffusion Commit
rP9c6f6043f086: Update preallocated hosts to use Passphrase credentials
Created a Passphrase credential for a file-based SSH key. Allocated a resource with:
bin/drydock create-resource --blueprint 1 --name "My Linux Host" --attributes platform=linux,host=localhost,port=22,path=/var/drydock,credential=2
and successfully leased it.
Diff Detail
Diff Detail
- Lint
Lint Skipped - Unit
Tests Skipped
Event Timeline
src/applications/drydock/interface/command/DrydockSSHCommandInterface.php | ||
---|---|---|
31–33 | Eventually, all the commands should be running through this interface, and that should fix this on its own. | |
44 | We should likely add: -o UserKnownHostsFile=/dev/null ...to this at some point, which prevents known_hosts issues. |