keystone/etc
Jamie Lennox 7a760caa5d Change the default version discovery URLs
The default discovery URLs for when the admin_endpoint and
public_endpoint configuration values are unset is to point to the
localhost. This is wrong in all but the most trivial cases.

It also has the problem of not being able to distinguish for the public
service whether it was accessed via the 'public' or 'private' endpoint,
meaning that all clients that correctly do discovery will end up routing
to the public URL.

The most sensible default is to simply use the requested URL as the
basis for pointing to the versioned endpoints as it at least assumes
that the endpoint is accessible relative to the location used to arrive
on the page.

As mentioned in comments this is not a perfect solution. HOST_URL is the
URL not including path (ie http://server:port) so we do not have access
to the prefix automatically. Unfortunately the way keystone uses these
endpoints I don't see a way of improving that without a more substantial
redesign.

This patch is ugly because our layers are so intertwined. It should be
nicer with pecan.

DocImpact: Changes the default values of admin_endpoint and
public_endpoint and how they are used. In most situations now these
values should be ignored in configuration.

Change-Id: Ia6d9fbeb60ada661dc2052c9bd51db7a1dc8cd4b
Closes-Bug: #1288009
2014-03-25 10:15:15 +10:00
..
default_catalog.templates rename templated.TemplatedCatalog to templated.Catalog 2014-01-16 08:18:15 -06:00
keystone-paste.ini V3 xml responses should use v3 namespace. 2014-03-06 15:21:17 +08:00
keystone.conf.sample Change the default version discovery URLs 2014-03-25 10:15:15 +10:00
logging.conf.sample Generate apache-style common access logs 2013-01-31 08:16:21 -06:00
policy.json Token Revocation Extension 2014-03-04 13:42:28 -05:00
policy.v3cloudsample.json Ensure v3policysample correctly limits domain_admin access 2014-03-15 10:02:07 +00:00