1 # Use this pipeline for no auth or image caching - DEFAULT
3 pipeline = versionnegotiation unauthenticated-context rootapp
5 # Use this pipeline for image caching and no auth
6 [pipeline:glance-api-caching]
7 pipeline = versionnegotiation unauthenticated-context cache rootapp
9 # Use this pipeline for caching w/ management interface but no auth
10 [pipeline:glance-api-cachemanagement]
11 pipeline = versionnegotiation unauthenticated-context cache cachemanage rootapp
13 # Use this pipeline for keystone auth
14 [pipeline:glance-api-keystone]
15 pipeline = versionnegotiation authtoken context rootapp
17 # Use this pipeline for keystone auth with image caching
18 [pipeline:glance-api-keystone+caching]
19 pipeline = versionnegotiation authtoken context cache rootapp
21 # Use this pipeline for keystone auth with caching and cache management
22 [pipeline:glance-api-keystone+cachemanagement]
23 pipeline = versionnegotiation authtoken context cache cachemanage rootapp
25 # Use this pipeline for authZ only. This means that the registry will treat a
26 # user as authenticated without making requests to keystone to reauthenticate
28 [pipeline:glance-api-trusted-auth]
29 pipeline = versionnegotiation context rootapp
31 # Use this pipeline for authZ only. This means that the registry will treat a
32 # user as authenticated without making requests to keystone to reauthenticate
33 # the user and uses cache management
34 [pipeline:glance-api-trusted-auth+cachemanagement]
35 pipeline = versionnegotiation context cache cachemanage rootapp
38 paste.composite_factory = glance.api:root_app_factory
44 paste.app_factory = glance.api.versions:create_resource
47 paste.app_factory = glance.api.v1.router:API.factory
50 paste.app_factory = glance.api.v2.router:API.factory
52 [filter:versionnegotiation]
53 paste.filter_factory = glance.api.middleware.version_negotiation:VersionNegotiationFilter.factory
56 paste.filter_factory = glance.api.middleware.cache:CacheFilter.factory
59 paste.filter_factory = glance.api.middleware.cache_manage:CacheManageFilter.factory
62 paste.filter_factory = glance.api.middleware.context:ContextMiddleware.factory
64 [filter:unauthenticated-context]
65 paste.filter_factory = glance.api.middleware.context:UnauthenticatedContextMiddleware.factory
68 paste.filter_factory = keystoneclient.middleware.auth_token:filter_factory
69 delay_auth_decision = true
72 paste.filter_factory = glance.api.middleware.gzip:GzipMiddleware.factory