Closed (fixed)
Project:
Provision
Version:
6.x-2.0-rc2
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Aug 2013 at 22:30 UTC
Updated:
12 Jun 2014 at 08:41 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
anarcat commentedComment #2
anarcat commentedi confirm this is totally broken, even conceptually in code (ie. it's not a bug as much as the implementation is simply incomplete).
the problem is in hosting_ssl_get_ip() which returns a single IP instead of a server_name => ip_address mapping, or at least a list of IPs.
so that should be a simple fix... untested patch...
i am probably missing something, but it's a start!
Comment #3
anarcat commentedi've re-opened the dev-ssl-ip-allocation-refactor branch on both hosting (new) and provision for those patches, that would welcome some testing.
the provision patch is slightly different: we use a wildcard if no IP is found in the array, which seems like a better failure mode... plus it will make SNI possible to implement simply in the frontend, by not passing the address to the backend at all.
see also #1926520: Support Server Name Indication (SNI) for SSL.
Comment #4
anarcat commentednote that this patch will change the API, so http://community.aegirproject.org/upgrading/path needs to be updated.
Comment #5
cweagansThis works very well. I've attached a couple of touchups to the frontend (fixes a notice and capitalizes a status message). Other than that, I think this is ready to go in 6.x-2.x.
Comment #6
cweagansOne other thing:
needs to read:
(The @ before $server in the if needs to be there to get things to match properly.)
Comment #7
anarcat commentedalright, i commited your toutchup and pushed everything to 2.x. thanks for the testing!