Comment 19 for bug 1384379

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to manila (master)

Reviewed: https://review.openstack.org/180483
Committed: https://git.openstack.org/cgit/openstack/manila/commit/?id=32295b5c3c2f68cced53232ec22e5c31f62c4466
Submitter: Jenkins
Branch: master

commit 32295b5c3c2f68cced53232ec22e5c31f62c4466
Author: Deliang Fan <email address hidden>
Date: Wed May 6 18:37:29 2015 +0800

    Add SSL middleware to fix incorrect version host_url

    The Manila API does not behave properly if it is behind an SSL
    termination proxy. If this is the case, the host_url in version
    resource are build using http protocol instead of https.

    To handle to correct host_url with proxy, first, we should enable
    X-Forwarded-Host in proxy so that Manila can get the right client
    ip. Second, we should enable X-Forwarded-Proto, with the new SSL
    middleware, Manila will get original protocol.

    Change-Id: I2dac983481718e6d639453e3f03f41baf8cea56d
    Closes-Bug: #1384379