4 /v1: barbican-api-keystone
6 # Use this pipeline for Barbican API - versions no authentication
7 [pipeline:barbican_version]
8 pipeline = cors http_proxy_to_wsgi versionapp
10 # Use this pipeline for Barbican API - DEFAULT no authentication
11 [pipeline:barbican_api]
12 pipeline = cors http_proxy_to_wsgi unauthenticated-context apiapp
14 #Use this pipeline to activate a repoze.profile middleware and HTTP port,
15 # to provide profiling information for the REST API processing.
16 [pipeline:barbican-profile]
17 pipeline = cors http_proxy_to_wsgi unauthenticated-context egg:Paste#cgitb egg:Paste#httpexceptions profile apiapp
19 #Use this pipeline for keystone auth
20 [pipeline:barbican-api-keystone]
21 pipeline = cors http_proxy_to_wsgi authtoken context apiapp
23 #Use this pipeline for keystone auth with audit feature
24 [pipeline:barbican-api-keystone-audit]
25 pipeline = http_proxy_to_wsgi authtoken context audit apiapp
28 paste.app_factory = barbican.api.app:create_main_app
31 paste.app_factory = barbican.api.app:create_version_app
34 paste.filter_factory = barbican.api.middleware.simple:SimpleFilter.factory
36 [filter:unauthenticated-context]
37 paste.filter_factory = barbican.api.middleware.context:UnauthenticatedContextMiddleware.factory
40 paste.filter_factory = barbican.api.middleware.context:ContextMiddleware.factory
43 paste.filter_factory = keystonemiddleware.audit:filter_factory
44 audit_map_file = /etc/barbican/api_audit_map.conf
47 paste.filter_factory = keystonemiddleware.auth_token:filter_factory
50 use = egg:repoze.profile
51 log_filename = myapp.profile
52 cachegrind_filename = cachegrind.out.myapp
53 discard_first_request = true
55 flush_at_shutdown = true
59 paste.filter_factory = oslo_middleware.cors:filter_factory
60 oslo_config_project = barbican
62 [filter:http_proxy_to_wsgi]
63 paste.filter_factory = oslo_middleware:HTTPProxyToWSGI.factory
65 use = egg:gunicorn#main