Add initial meta-stx to support StarlingX build
[pti/rtp.git] / meta-stx / recipes-support / openstack-barbican-api / files / barbican-api-paste.ini
1 [composite:main]
2 use = egg:Paste#urlmap
3 /: barbican_version
4 /v1: barbican-api-keystone
5
6 # Use this pipeline for Barbican API - versions no authentication
7 [pipeline:barbican_version]
8 pipeline = cors http_proxy_to_wsgi versionapp
9
10 # Use this pipeline for Barbican API - DEFAULT no authentication
11 [pipeline:barbican_api]
12 pipeline = cors http_proxy_to_wsgi unauthenticated-context apiapp
13
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
18
19 #Use this pipeline for keystone auth
20 [pipeline:barbican-api-keystone]
21 pipeline = cors http_proxy_to_wsgi authtoken context apiapp
22
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
26
27 [app:apiapp]
28 paste.app_factory = barbican.api.app:create_main_app
29
30 [app:versionapp]
31 paste.app_factory = barbican.api.app:create_version_app
32
33 [filter:simple]
34 paste.filter_factory = barbican.api.middleware.simple:SimpleFilter.factory
35
36 [filter:unauthenticated-context]
37 paste.filter_factory = barbican.api.middleware.context:UnauthenticatedContextMiddleware.factory
38
39 [filter:context]
40 paste.filter_factory = barbican.api.middleware.context:ContextMiddleware.factory
41
42 [filter:audit]
43 paste.filter_factory = keystonemiddleware.audit:filter_factory
44 audit_map_file = /etc/barbican/api_audit_map.conf
45
46 [filter:authtoken]
47 paste.filter_factory = keystonemiddleware.auth_token:filter_factory
48
49 [filter:profile]
50 use = egg:repoze.profile
51 log_filename = myapp.profile
52 cachegrind_filename = cachegrind.out.myapp
53 discard_first_request = true
54 path = /__profile__
55 flush_at_shutdown = true
56 unwind = false
57
58 [filter:cors]
59 paste.filter_factory = oslo_middleware.cors:filter_factory
60 oslo_config_project = barbican
61
62 [filter:http_proxy_to_wsgi]
63 paste.filter_factory = oslo_middleware:HTTPProxyToWSGI.factory
64 [server:main]
65 use = egg:gunicorn#main