Cloud Files (the module) does not handle delivering assets from Rackspace Cloud Files over SSL. This means that if your site is on SSL (https://) and someone visits the site with Rackspaces assets, the browser will throw a security exception stating that not all of the assets on the page are secure.

To prevent this, Cloud Files needs to save the SSL Domain in the database and use the SSL domain when retrieving assets from Rackspace on an SSL connection.

thanks!
david

Comments

davidwbarratt’s picture

Status: Needs work » Needs review
StatusFileSize
new4.27 KB

Attached is a patch that that should fix the problem and properly display the content over SSL.

I didn't include this, but it might be wise to add a hook_update_N() function that goes to Rackspace and gets the SSL domain.

This way a user does not have to go to the settings page after updating the module, it will be ready for SSL use on update.

thanks!
david barratt

iLLin’s picture

Status: Needs review » Reviewed & tested by the community

Had to apply manually for some reason, but this worked for me like a champ.

beanjammin’s picture

Issue summary: View changes
StatusFileSize
new4.38 KB

The patch from #1 didn't apply for me either (3rd hunk of cloud_files.module) so I have re-rolled it against the current 7.x-1.x-dev, which happens to be the same as 7.x-1.1 at the time of writing.

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 3: 1858026-3-cloud_files.patch, failed testing.

beanjammin’s picture

StatusFileSize
new4.28 KB

Doh, corrected patch paths for -p1.

beanjammin’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, 1: ssl_domain-1858026-1.patch, failed testing.

beanjammin’s picture

Status: Needs work » Needs review
benkewell’s picture

StatusFileSize
new4.27 KB

Fixed the patch to work with v1.2 , also fixed the correct call to get SSL Uri:
$container->getCdn()->getCdnSslUri()

Personally tested with v1.2 and confirmed it works.
This issue has been around for a year, if this patch works,
please commit it to add SSL support to module.

benkewell’s picture

StatusFileSize
new5.55 KB

Included a few minor changes:

1. Remove variable 'rackspace_cloud_cdn_ssl_domain' on uninstall.
2. Increase the size of Other Authentication URL textfield for easier URL input.
3. Changed the line to fetch container list in admin form from "$container_list->Next()" to "$container_list->next()"

Tested to work on php-opencloud v1.9.2

mr.moses’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.