75d85aab3c
The default values needed for manila's implementation of cors middleware have been moved from paste.ini into the configuration hooks provided by oslo.config. Furthermore, these values have been added to the default initialization procedure. This ensures that if a value remains unset in the configuration file, it will fallback to using sane defaults. It also ensures that an operator modifying the configuration will be presented with that same set of defaults. Change-Id: Ie4adc39866a4ee6132eab6a111660218b3e6e5bd Closes-Bug: #1551836
60 lines
1.7 KiB
INI
60 lines
1.7 KiB
INI
#############
|
|
# OpenStack #
|
|
#############
|
|
|
|
[composite:osapi_share]
|
|
use = call:manila.api:root_app_factory
|
|
/: apiversions
|
|
/v1: openstack_share_api
|
|
/v2: openstack_share_api_v2
|
|
|
|
[composite:openstack_share_api]
|
|
use = call:manila.api.middleware.auth:pipeline_factory
|
|
noauth = cors faultwrap ssl sizelimit noauth api
|
|
keystone = cors faultwrap ssl sizelimit authtoken keystonecontext api
|
|
keystone_nolimit = cors faultwrap ssl sizelimit authtoken keystonecontext api
|
|
|
|
[composite:openstack_share_api_v2]
|
|
use = call:manila.api.middleware.auth:pipeline_factory
|
|
noauth = cors faultwrap ssl sizelimit noauth apiv2
|
|
keystone = cors faultwrap ssl sizelimit authtoken keystonecontext apiv2
|
|
keystone_nolimit = cors faultwrap ssl sizelimit authtoken keystonecontext apiv2
|
|
|
|
[filter:faultwrap]
|
|
paste.filter_factory = manila.api.middleware.fault:FaultWrapper.factory
|
|
|
|
[filter:noauth]
|
|
paste.filter_factory = manila.api.middleware.auth:NoAuthMiddleware.factory
|
|
|
|
[filter:sizelimit]
|
|
paste.filter_factory = oslo_middleware.sizelimit:RequestBodySizeLimiter.factory
|
|
|
|
[filter:ssl]
|
|
paste.filter_factory = oslo_middleware.ssl:SSLMiddleware.factory
|
|
|
|
[app:api]
|
|
paste.app_factory = manila.api.v1.router:APIRouter.factory
|
|
|
|
[app:apiv2]
|
|
paste.app_factory = manila.api.v2.router:APIRouter.factory
|
|
|
|
[pipeline:apiversions]
|
|
pipeline = cors faultwrap osshareversionapp
|
|
|
|
[app:osshareversionapp]
|
|
paste.app_factory = manila.api.versions:VersionsRouter.factory
|
|
|
|
##########
|
|
# Shared #
|
|
##########
|
|
|
|
[filter:keystonecontext]
|
|
paste.filter_factory = manila.api.middleware.auth:ManilaKeystoneContext.factory
|
|
|
|
[filter:authtoken]
|
|
paste.filter_factory = keystonemiddleware.auth_token:filter_factory
|
|
|
|
[filter:cors]
|
|
paste.filter_factory = oslo_middleware.cors:filter_factory
|
|
oslo_config_project = manila
|