keystonemiddleware audit selects the wrong target service
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| keystonemiddleware |
Medium
|
Michael Johnson |
Bug Description
Keystonemiddleware audit support is selecting the wrong "target" service when OpenStack service endpoints are not using unique TCP ports.
The incorrect code is here: https:/
With that code, if the services are not using unique TCP ports for each endpoint, the first endpoint that matches the IP adddress of the request will be selected.
Since most services have moved to not using TCP ports for their endpoints, this needs to be fixed to allow the proper target service to be selected.
Changed in keystonemiddleware: | |
assignee: | nobody → Michael Johnson (johnsom) |
Changed in keystonemiddleware: | |
status: | New → In Progress |
Changed in keystonemiddleware: | |
importance: | Undecided → Medium |
Reviewed: https:/
Committed: https:/
Submitter: Zuul
Branch: master
commit 782729b6e98c1d2
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_
audit map file.
Change-Id: Ie2e0bf74ecca48
Closes-bug: 1797584
Changed in keystonemiddleware: | |
status: | In Progress → Fix Released |
This issue was fixed in the openstack/
Fix proposed to branch: master /review. openstack. org/610099
Review: https:/