From 782729b6e98c1d2857c7e4f24bb69219e43c108f Mon Sep 17 00:00:00 2001 From: Michael Johnson Date: Fri, 12 Oct 2018 09:05:10 -0700 Subject: Fix audit target service selection The keystonemiddleware audit code would select the wrong OpenStack service endpoint for a request if the cloud is not using unique TCP ports for each service endpoint. As most services are no longer using a port per service, but instead using unique paths, this caused the audit to select the wrong target service. This leads to incorrect audit logging due to the wrong audit map being used. This patch checks the request to see if a TCP port was present in the request, and if not, fall back to using the target_endpoint_type configured in the audit map file. Change-Id: Ie2e0bf74ecca485d599a4041bb770bd6e296bc99 Closes-bug: 1797584 --- .../notes/fix-audit-no-service-endpoint-ports-72b2009d631dcf19.yaml | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 releasenotes/notes/fix-audit-no-service-endpoint-ports-72b2009d631dcf19.yaml (limited to 'releasenotes') diff --git a/releasenotes/notes/fix-audit-no-service-endpoint-ports-72b2009d631dcf19.yaml b/releasenotes/notes/fix-audit-no-service-endpoint-ports-72b2009d631dcf19.yaml new file mode 100644 index 0000000..31d2a84 --- /dev/null +++ b/releasenotes/notes/fix-audit-no-service-endpoint-ports-72b2009d631dcf19.yaml @@ -0,0 +1,6 @@ +--- +fixes: + - | + [`bug 1797584 `_] + Fixed a bug where the audit code would select the wrong target service + if the OpenStack service endpoints were not using unique TCP ports. -- cgit v1.2.1