Closed (fixed)
Project:
Aegir Hosting Tasks Extra
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Issue tags:
Reporter:
Created:
17 Apr 2015 at 10:25 UTC
Updated:
10 Dec 2015 at 12:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
ergonlogicIf I understand correctly, you want to have a Drush alias generated for an Aegir-hosted site, that would contain the database and ssh credentials to allow for remotely sync'ing files and db?
Since this is under Hosting, I assume you'd want such a snippet provided in the front-end?
Comment #2
clemens.tolboomIndeed. A download drush alias button for a site (rsync, sql-sync) and or platform (rsync). Similar to pantheon.
Comment #3
ergonlogicWe actually make an effort not to store database credentials in the front end, as a security precaution. So, we'll need to find a solution that respects that. The back end generation of such an alias should be pretty straight-forward, though.
For ssh/rsync access, this gets more complicated. I think the best bet, at this point, is to just require that a user's public key be added to a user's authorized keys. I think provisionacl would be the only way to secure such a setup for multiple users/clients.
Comment #4
clemens.tolboomThanks for your thoughts. I'll discuss this with @helmo too.
Comment #5
clemens.tolboomRunning on hostmaster server
drush @site.example.com sa @selfwe get way too much info.Remote user should either be aegir or the current hostmaster user requesting the alias. The latter is in my case ACL configured.
I've tested some command:
The advice could be to save the alias in hostmaster.example.com.aliasses.drushrc.php but it is up to the user where to save the alias.
Maybe we could add client related aliases too?
I try to make 'alias tab on site node' soon.
Comment #6
clemens.tolboomCode needs work but I'd like a review.
Comment #7
clemens.tolboomHow to make sure user has access to site.
And how to add platform or is that not needed?
What if it's not a site but platform?
Comment #8
helmo commentedLets create a checkbox on admin/hosting/settings to indicate which remote-userto use for the ssh connection. 'aegir' of the logged in hostmaster user.
A comment line could be added to hint where the user can save this to use the alias.
Comment #9
helmo commentedSmall update to specify which filename to use on your local system.
I don't think it's usefull for a platform node.
Comment #10
ergonlogicThis is looking good. I'll try to test it over the weekend.
Comment #12
helmo commentedI added a hosting.feature.hosting_drush_alias.inc file and set the status to experimental.
Configuring the ssh hostname could be a nice follow-up issue, but I don't have time for it atm.
Comment #13
helmo commented