Update barbican api paste
We've used quite old version of api-paste file for Barbican that did not support microversion or healthcheck. Change-Id: I612315a459e891725850743e0af20e7934319577
This commit is contained in:
1 parent
27ecbea2b7
commit
78a1984517
1 file changed
+13
-5
@@ -5,24 +5,24 @@ use = egg:Paste#urlmap
|
||||
|
||||
# Use this pipeline for Barbican API - versions no authentication
|
||||
[pipeline:barbican_version]
|
||||
pipeline = cors http_proxy_to_wsgi versionapp
|
||||
pipeline = cors http_proxy_to_wsgi microversion versionapp
|
||||
|
||||
# Use this pipeline for Barbican API - DEFAULT no authentication
|
||||
[pipeline:barbican_api]
|
||||
pipeline = cors http_proxy_to_wsgi unauthenticated-context apiapp
|
||||
pipeline = cors http_proxy_to_wsgi unauthenticated-context microversion apiapp
|
||||
|
||||
#Use this pipeline to activate a repoze.profile middleware and HTTP port,
|
||||
# to provide profiling information for the REST API processing.
|
||||
[pipeline:barbican-profile]
|
||||
pipeline = cors http_proxy_to_wsgi unauthenticated-context egg:Paste#cgitb egg:Paste#httpexceptions profile apiapp
|
||||
pipeline = cors http_proxy_to_wsgi unauthenticated-context microversion egg:Paste#cgitb egg:Paste#httpexceptions profile apiapp
|
||||
|
||||
#Use this pipeline for keystone auth
|
||||
[pipeline:barbican-api-keystone]
|
||||
pipeline = cors http_proxy_to_wsgi authtoken context apiapp
|
||||
pipeline = cors http_proxy_to_wsgi authtoken context microversion apiapp
|
||||
|
||||
#Use this pipeline for keystone auth with audit feature
|
||||
[pipeline:barbican-api-keystone-audit]
|
||||
pipeline = http_proxy_to_wsgi authtoken context audit apiapp
|
||||
pipeline = http_proxy_to_wsgi authtoken context microversion audit apiapp
|
||||
|
||||
[app:apiapp]
|
||||
paste.app_factory = barbican.api.app:create_main_app
|
||||
@@ -39,6 +39,9 @@ paste.filter_factory = barbican.api.middleware.context:UnauthenticatedContextMid
|
||||
[filter:context]
|
||||
paste.filter_factory = barbican.api.middleware.context:ContextMiddleware.factory
|
||||
|
||||
[filter:microversion]
|
||||
paste.filter_factory = barbican.api.middleware.microversion:MicroversionMiddleware.factory
|
||||
|
||||
[filter:audit]
|
||||
paste.filter_factory = keystonemiddleware.audit:filter_factory
|
||||
audit_map_file = /etc/barbican/api_audit_map.conf
|
||||
@@ -61,3 +64,8 @@ oslo_config_project = barbican
|
||||
|
||||
[filter:http_proxy_to_wsgi]
|
||||
paste.filter_factory = oslo_middleware:HTTPProxyToWSGI.factory
|
||||
|
||||
[app:healthcheck]
|
||||
paste.app_factory = oslo_middleware:Healthcheck.app_factory
|
||||
backends = disable_by_file
|
||||
disable_by_file_path = /etc/barbican/healthcheck_disable
|
||||
Reference in new issue
Block a user