Comment 8 for bug 1558683

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

Reviewed: https://review.openstack.org/294681
Committed: https://git.openstack.org/cgit/openstack/glance/commit/?id=513d717d283e511f1a569a760addbbb1bac3970b
Submitter: Jenkins
Branch: master

commit 513d717d283e511f1a569a760addbbb1bac3970b
Author: Stuart McLaren <email address hidden>
Date: Fri Mar 18 15:42:15 2016 +0000

    Handle SSL termination proxies for version list

    Return correct scheme in version URLs if service
    behind an SSL termination proxy.

    This is done by adding a new configuration option,
    secure_proxy_ssl_header, which, when defined, makes
    the wsgi application take the host_url scheme from
    that header. By default, when this option is not
    specified, there is no difference in behavior.

    The intention is to configure any ssl-decrypting
    proxy to set that header, so that glance-api knows
    which protocol to use in the URLs in response.

    This patch is largely based on the equivalent
    nova patch: https://review.openstack.org/#/c/206479.

    Partial-bug: 1558683

    Change-Id: I9a9c0e42a6ad3c18d197f10095958b48d5cb879a