741ee084b6
This commit adds request-id filter to paste config and adds support for request_id to the ContextMiddleware. This would mean, that request-id, generated for each particular request to api would be returned to the caller in the form of 'x-openstack-request-id' header Targets blueprint: murano-x-openstack-request-id-support Change-Id: Id3d593c33fd31bae7226052b908750e5c000f730
32 lines
1018 B
INI
32 lines
1018 B
INI
[pipeline:murano]
|
|
pipeline = request_id versionnegotiation faultwrap authtoken context rootapp
|
|
|
|
[filter:context]
|
|
paste.filter_factory = murano.api.middleware.context:ContextMiddleware.factory
|
|
|
|
#For more information see Auth-Token Middleware with Username and Password
|
|
#http://docs.openstack.org/developer/keystone/configuringservices.html
|
|
[filter:authtoken]
|
|
paste.filter_factory = keystonemiddleware.auth_token:filter_factory
|
|
|
|
[composite:rootapp]
|
|
use = egg:Paste#urlmap
|
|
/: apiversions
|
|
/v1: apiv1app
|
|
|
|
[app:apiversions]
|
|
paste.app_factory = murano.api.versions:create_resource
|
|
|
|
[app:apiv1app]
|
|
paste.app_factory = murano.api.v1.router:API.factory
|
|
|
|
[filter:versionnegotiation]
|
|
paste.filter_factory = murano.api.middleware.version_negotiation:VersionNegotiationFilter.factory
|
|
|
|
[filter:faultwrap]
|
|
paste.filter_factory = murano.api.middleware.fault:FaultWrapper.factory
|
|
|
|
# Middleware to set x-openstack-request-id in http response header
|
|
[filter:request_id]
|
|
paste.filter_factory = oslo_middleware.request_id:RequestId.factory
|