glance/glance
Stuart McLaren 513d717d28 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
2016-03-21 14:36:13 +00:00
..
api Merge "Reject bodies for metadef commands" 2016-03-15 05:55:31 +00:00
async Fix BaseException.message deprecation warnings 2016-02-28 00:10:29 +08:00
cmd Merge "Add a deprecation warning to the DB downgrade" 2016-03-08 14:38:20 +00:00
common Handle SSL termination proxies for version list 2016-03-21 14:36:13 +00:00
contrib no module docs generated 2016-03-07 20:00:22 +00:00
db glance-manage db purge failure for limit 2016-03-11 09:06:22 +00:00
domain Remove state transition from active to queued 2016-03-10 06:22:11 +00:00
glare Move Glance Artifact Repository API to separate endpoint 2016-02-10 18:34:55 +03:00
hacking Hacking checks for not using dict iteration calls 2016-01-25 21:54:08 -08:00
image_cache Make cache config options clearer 2016-01-18 12:00:20 +00:00
locale Imported Translations from Zanata 2016-03-17 11:35:20 +00:00
quota Merge "Fix for Image members not generating notifications" 2016-01-26 19:33:49 +00:00
registry Merge "Deprecate use_user_token parameter" 2016-03-07 19:31:12 +00:00
tests Handle SSL termination proxies for version list 2016-03-21 14:36:13 +00:00
__init__.py Empty files shouldn't contain copyright nor license 2013-12-24 22:39:05 -06:00
context.py Add db purge command 2015-12-11 19:16:58 +01:00
gateway.py Fix for Image members not generating notifications 2016-01-25 04:50:58 -08:00
i18n.py Drop use of 'oslo' namespace package 2015-04-28 18:57:45 +00:00
location.py Merge "Fix location update" 2016-03-03 23:04:40 +00:00
notifier.py Adds virtual_size to notifications 2016-03-08 18:22:37 +00:00
opts.py Include registry_client_* options in glance-scrubber.conf 2016-02-24 00:25:47 +01:00
schema.py Import i18n functions directly 2015-12-07 18:20:43 +03:00
scrubber.py Import i18n functions directly 2015-12-07 18:20:43 +03:00
version.py Remove vim header 2014-01-14 16:03:28 +00:00