From a1ccce728af144d15377eab37832af3fb3e4c729 Mon Sep 17 00:00:00 2001 From: zreigz Date: Mon, 24 Sep 2018 09:44:20 +0200 Subject: [PATCH] Skip authentication for version and healthcheck endpoints Change-Id: I0d03464e275ed5724361a82425f5b7fd2a0a931e Story: 2003799 Task: 26554 --- monasca_api/healthcheck/keystone_protocol.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monasca_api/healthcheck/keystone_protocol.py b/monasca_api/healthcheck/keystone_protocol.py index 3e2f5c98b..60b665b56 100644 --- a/monasca_api/healthcheck/keystone_protocol.py +++ b/monasca_api/healthcheck/keystone_protocol.py @@ -39,7 +39,7 @@ class SkippingAuthProtocol(auth_token.AuthProtocol): def process_request(self, request): path = request.path for p in _SKIP_PATH: - if path.startswith(p): + if path.endswith(p): LOG.debug( ('Request path is %s and it does not require keystone ' 'communication'), path)