commit 782729b6e98c1d2857c7e4f24bb69219e43c108f
Author: Michael Johnson <email address hidden>
Date: Fri Oct 12 09:05:10 2018 -0700
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.
Reviewed: https:/ /review. openstack. org/610099 /git.openstack. org/cgit/ openstack/ keystonemiddlew are/commit/ ?id=782729b6e98 c1d2857c7e4f24b b69219e43c108f
Committed: https:/
Submitter: Zuul
Branch: master
commit 782729b6e98c1d2 857c7e4f24bb692 19e43c108f
Author: Michael Johnson <email address hidden>
Date: Fri Oct 12 09:05:10 2018 -0700
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, endpoint_ type configured in the
and if not, fall back to using the target_
audit map file.
Change-Id: Ie2e0bf74ecca48 5d599a4041bb770 bd6e296bc99
Closes-bug: 1797584