From 3fc072d986f141b7153e4cd4543028f665f04ad0 Mon Sep 17 00:00:00 2001 From: Thomas Goirand Date: Mon, 4 May 2020 00:10:08 +0200 Subject: [PATCH] Add a /healthcheck URL The /healthcheck URL, as provided by oslo.middleware, is very useful for operators to setup haproxy and to do monitoring. Such feature is already in many services like Keystone, Glance, and others. The same type of patch has just been approved in Neutron. Change-Id: Iad593e899ad2d236887c37a0c46d608817eaaf8f --- etc/barbican/barbican-api-paste.ini | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/etc/barbican/barbican-api-paste.ini b/etc/barbican/barbican-api-paste.ini index 0e347abea..e9dc78d5a 100644 --- a/etc/barbican/barbican-api-paste.ini +++ b/etc/barbican/barbican-api-paste.ini @@ -1,6 +1,7 @@ [composite:main] use = egg:Paste#urlmap /: barbican_version +/healthcheck: healthcheck /v1: barbican-api-keystone # Use this pipeline for Barbican API - versions no authentication @@ -61,3 +62,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