2012-08-30 10:50:39 -07:00
|
|
|
# Use this pipeline for no auth or image caching - DEFAULT
|
2012-01-13 00:31:00 +00:00
|
|
|
[pipeline:glance-api]
|
2014-08-18 14:59:05 +04:00
|
|
|
pipeline = versionnegotiation osprofiler unauthenticated-context rootapp
|
2012-01-13 00:31:00 +00:00
|
|
|
|
2012-08-30 10:50:39 -07:00
|
|
|
# Use this pipeline for image caching and no auth
|
2012-01-17 11:39:06 +00:00
|
|
|
[pipeline:glance-api-caching]
|
2014-08-18 14:59:05 +04:00
|
|
|
pipeline = versionnegotiation osprofiler unauthenticated-context cache rootapp
|
2012-01-17 11:39:06 +00:00
|
|
|
|
2012-08-30 10:50:39 -07:00
|
|
|
# Use this pipeline for caching w/ management interface but no auth
|
|
|
|
[pipeline:glance-api-cachemanagement]
|
2014-08-18 14:59:05 +04:00
|
|
|
pipeline = versionnegotiation osprofiler unauthenticated-context cache cachemanage rootapp
|
2012-08-30 10:50:39 -07:00
|
|
|
|
|
|
|
# Use this pipeline for keystone auth
|
|
|
|
[pipeline:glance-api-keystone]
|
2014-08-18 14:59:05 +04:00
|
|
|
pipeline = versionnegotiation osprofiler authtoken context rootapp
|
2012-08-30 10:50:39 -07:00
|
|
|
|
|
|
|
# Use this pipeline for keystone auth with image caching
|
2012-01-17 11:39:06 +00:00
|
|
|
[pipeline:glance-api-keystone+caching]
|
2014-08-18 14:59:05 +04:00
|
|
|
pipeline = versionnegotiation osprofiler authtoken context cache rootapp
|
2012-01-17 11:39:06 +00:00
|
|
|
|
2012-08-30 10:50:39 -07:00
|
|
|
# Use this pipeline for keystone auth with caching and cache management
|
2012-01-17 11:39:06 +00:00
|
|
|
[pipeline:glance-api-keystone+cachemanagement]
|
2014-08-18 14:59:05 +04:00
|
|
|
pipeline = versionnegotiation osprofiler authtoken context cache cachemanage rootapp
|
2012-03-27 19:18:50 -07:00
|
|
|
|
2013-07-23 14:29:20 +00:00
|
|
|
# Use this pipeline for authZ only. This means that the registry will treat a
|
|
|
|
# user as authenticated without making requests to keystone to reauthenticate
|
|
|
|
# the user.
|
|
|
|
[pipeline:glance-api-trusted-auth]
|
2014-08-18 14:59:05 +04:00
|
|
|
pipeline = versionnegotiation osprofiler context rootapp
|
2013-07-23 14:29:20 +00:00
|
|
|
|
|
|
|
# Use this pipeline for authZ only. This means that the registry will treat a
|
|
|
|
# user as authenticated without making requests to keystone to reauthenticate
|
|
|
|
# the user and uses cache management
|
|
|
|
[pipeline:glance-api-trusted-auth+cachemanagement]
|
2014-08-18 14:59:05 +04:00
|
|
|
pipeline = versionnegotiation osprofiler context cache cachemanage rootapp
|
2013-07-23 14:29:20 +00:00
|
|
|
|
2012-03-27 19:18:50 -07:00
|
|
|
[composite:rootapp]
|
2012-08-31 17:53:32 +00:00
|
|
|
paste.composite_factory = glance.api:root_app_factory
|
2012-03-27 19:18:50 -07:00
|
|
|
/: apiversions
|
|
|
|
/v1: apiv1app
|
2012-05-22 13:23:44 -07:00
|
|
|
/v2: apiv2app
|
2012-03-27 19:18:50 -07:00
|
|
|
|
|
|
|
[app:apiversions]
|
|
|
|
paste.app_factory = glance.api.versions:create_resource
|
2012-01-13 00:31:00 +00:00
|
|
|
|
|
|
|
[app:apiv1app]
|
2012-05-29 08:51:12 +01:00
|
|
|
paste.app_factory = glance.api.v1.router:API.factory
|
2012-01-13 00:31:00 +00:00
|
|
|
|
2012-05-03 17:52:25 -07:00
|
|
|
[app:apiv2app]
|
2012-05-29 08:51:12 +01:00
|
|
|
paste.app_factory = glance.api.v2.router:API.factory
|
2012-05-03 17:52:25 -07:00
|
|
|
|
2012-01-13 00:31:00 +00:00
|
|
|
[filter:versionnegotiation]
|
2012-05-29 08:51:12 +01:00
|
|
|
paste.filter_factory = glance.api.middleware.version_negotiation:VersionNegotiationFilter.factory
|
2012-01-13 00:31:00 +00:00
|
|
|
|
|
|
|
[filter:cache]
|
2012-05-29 08:51:12 +01:00
|
|
|
paste.filter_factory = glance.api.middleware.cache:CacheFilter.factory
|
2012-01-13 00:31:00 +00:00
|
|
|
|
|
|
|
[filter:cachemanage]
|
2012-05-29 08:51:12 +01:00
|
|
|
paste.filter_factory = glance.api.middleware.cache_manage:CacheManageFilter.factory
|
2012-01-13 00:31:00 +00:00
|
|
|
|
|
|
|
[filter:context]
|
2012-07-09 08:05:28 -07:00
|
|
|
paste.filter_factory = glance.api.middleware.context:ContextMiddleware.factory
|
2012-01-13 00:31:00 +00:00
|
|
|
|
2012-05-01 15:41:06 -07:00
|
|
|
[filter:unauthenticated-context]
|
2012-07-09 08:05:28 -07:00
|
|
|
paste.filter_factory = glance.api.middleware.context:UnauthenticatedContextMiddleware.factory
|
2012-05-01 15:41:06 -07:00
|
|
|
|
2012-01-13 00:31:00 +00:00
|
|
|
[filter:authtoken]
|
2014-06-24 16:07:36 -05:00
|
|
|
paste.filter_factory = keystonemiddleware.auth_token:filter_factory
|
2012-08-16 17:07:43 -04:00
|
|
|
delay_auth_decision = true
|
2013-04-27 14:42:15 +02:00
|
|
|
|
|
|
|
[filter:gzip]
|
|
|
|
paste.filter_factory = glance.api.middleware.gzip:GzipMiddleware.factory
|
2014-07-04 20:10:11 +04:00
|
|
|
|
|
|
|
[filter:osprofiler]
|
|
|
|
paste.filter_factory = osprofiler.web:WsgiMiddleware.factory
|
|
|
|
hmac_keys = SECRET_KEY
|
|
|
|
enabled = yes
|