Page MenuHomePhabricator

Update preallocated hosts to use Passphrase credentials
ClosedPublic

Authored by hach-que on Dec 4 2013, 6:39 AM.
Tags
None
Referenced Files
F15503126: D7697.diff
Mon, Apr 14, 7:05 AM
F15461266: D7697.id17391.diff
Tue, Apr 1, 6:49 AM
F15454065: D7697.id17391.diff
Sat, Mar 29, 4:03 PM
F15440800: D7697.id17389.diff
Wed, Mar 26, 2:40 PM
F15438095: D7697.id.diff
Tue, Mar 25, 11:22 PM
F15431816: D7697.diff
Mon, Mar 24, 2:38 PM
F15428693: D7697.id.diff
Sun, Mar 23, 9:46 PM
F15370099: D7697.id17381.diff
Mar 12 2025, 9:03 AM

Details

Summary

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.

Test Plan

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

Branch
preallocated-credentials
Lint
Lint Passed
Unit
No Test Coverage

Event Timeline

epriestley added inline comments.
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.

hach-que updated this revision to Unknown Object (????).Dec 4 2013, 9:13 PM

Updated for changes in D7695