nova/nova
Chris Dent a598af9de6 Add rudimentary CORS support to placement API
If 'cors.allowed_origin' is set in the nova.conf, configure the
placement API to use oslo_middleware.CORS. Simple gabbi tests are
added which confirm the basic operation of the middleware, modeled
on the tests in nova/tests/functional/test_middleware.py, as well as
additional tests which confirm that when the middleware is not
configured it is not present in the system.

The cors config options are registered in deploy.py to ensure that
the group is allowed to exist in conf (even if it doesn't). Without
that, a deployment that tries to configure cors would not actually
cause the middleware to run.

Change-Id: I571bc675facaecb523dcf906f4bb44a51102b514
2017-01-16 12:04:24 +00:00
..
api Add rudimentary CORS support to placement API 2017-01-16 12:04:24 +00:00
CA
cells [TrivialFix] Fix comment typo error 2016-12-22 15:11:45 +08:00
cert Merge "conf: remove deprecated cert_topic option" 2016-12-02 13:46:21 +00:00
cloudpipe Rename security_group parameter in compute.API:create 2016-11-10 11:25:43 -05:00
cmd Merge "Make simple_cell_setup fully idempotent" 2017-01-12 22:46:51 +00:00
common cors: update default configuration in config 2016-11-05 20:17:42 -04:00
compute Merge "rt: explicitly pass compute node to _update()" 2017-01-14 18:09:46 +00:00
conductor Add schedule_and_build_instances conductor method 2016-12-14 11:56:55 -08:00
conf Merge "Add service_token for nova-cinder interaction" 2017-01-12 22:42:03 +00:00
console Add RPC version aliases for Newton 2016-10-28 03:11:38 -07:00
consoleauth Merge "conf: Move consoleauth options to a group" 2016-12-02 13:41:00 +00:00
db Move quota options to a config group. 2017-01-04 22:57:14 -06:00
hacking Merge "Fix typo in image_meta.py & checks.py & flavor.py" 2016-12-26 14:09:59 +00:00
image conf: Remove deprecated `use_glance_v1` 2016-10-12 12:21:59 +00:00
ipv6
keymgr Deprecate barbican options 2016-07-29 15:36:28 -05:00
locale Imported Translations from Zanata 2016-10-27 08:19:38 +00:00
network Merge "Adds Hyper-V OVS ViF driver" 2017-01-12 02:46:45 +00:00
notifications Merge "Update notification for flavor" 2017-01-11 21:58:06 +00:00
objects Merge "Fix missing RP generation update" 2017-01-16 00:40:25 +00:00
pci Merge "Enhance PCI passthrough whitelist to support regex" 2016-12-14 20:59:29 +00:00
policies Separate CRUD policy for server_groups 2016-11-21 11:43:13 -05:00
scheduler Make placement client keep trying to connect 2017-01-10 15:34:09 -08:00
servicegroup Don't use 'updated_at' to check service's status 2016-12-08 09:51:03 +00:00
tests Add rudimentary CORS support to placement API 2017-01-16 12:04:24 +00:00
virt [py35] Fixes to get rally scenarios working 2017-01-13 15:44:00 +00:00
vnc
volume Add service_token for nova-cinder interaction 2017-01-11 15:49:16 +00:00
wsgi
__init__.py
availability_zones.py Port test_metadata to Python 3 2016-11-29 11:28:24 +08:00
baserpc.py
block_device.py compute: fixes python 3 related unit tests 2016-10-18 07:07:43 +00:00
cache_utils.py
config.py Add the ability to configure glanceclient debug logging 2016-08-04 00:32:37 +00:00
context.py Remove require_admin_context 2016-11-28 04:07:12 +08:00
crypto.py
debugger.py
exception_wrapper.py
exception.py Merge "libvirt: Stop misusing NovaException" 2017-01-09 01:12:54 +00:00
filters.py
hash_ring.py Ironic: allow multiple compute services 2016-08-04 23:51:13 +00:00
hooks.py
i18n.py
loadables.py
manager.py
policy.py Remove unnecessary credential sanitation for logging 2016-10-05 12:54:23 -04:00
quota.py Move quota options to a config group. 2017-01-04 22:57:14 -06:00
rpc.py conf: added notifications group 2017-01-03 14:38:57 +00:00
safe_utils.py
service_auth.py Add service_token for nova-cinder interaction 2017-01-11 15:49:16 +00:00
service.py conf: Remove config option compute_ manager 2016-12-08 20:05:52 +08:00
signature_utils.py
test.py Make nova-manage cell_v2 discover_hosts tests use DBs 2016-12-17 06:12:13 +00:00
utils.py compute: fixes python 3 related unit tests 2016-10-18 07:07:43 +00:00
version.py
weights.py
wsgi.py Fixes python 3 unit tests 2016-09-23 20:10:24 +00:00