commit 3f90a86b60e2798c4b7b7c95c90bb882567cb9e6
Author: Leehom Li (feli5) <email address hidden>
Date: Wed Dec 19 15:52:03 2018 +0000
Make sure audit middleware use own context
Keystone audit middleware requires to iterate req.context as dict,
but Glance requires to access req.context.read_only.
When glance enabled audit, they are conflict with each other.
This patch fix this issue by store audit context in
req.environ['audit.context']
Change-Id: Ib9a62a4cd0b7b9ffb9fa2d6440e8072d45ee0fee
Closes-Bug: #1809101
Signed-off-by: Leehom Li <email address hidden>
(cherry picked from commit 82707e15a5bce8de2d33b1c865c96844c9770580)
Reviewed: https:/ /review. opendev. org/656232 /git.openstack. org/cgit/ openstack/ keystonemiddlew are/commit/ ?id=3f90a86b60e 2798c4b7b7c95c9 0bb882567cb9e6
Committed: https:/
Submitter: Zuul
Branch: stable/queens
commit 3f90a86b60e2798 c4b7b7c95c90bb8 82567cb9e6
Author: Leehom Li (feli5) <email address hidden>
Date: Wed Dec 19 15:52:03 2018 +0000
Make sure audit middleware use own context
Keystone audit middleware requires to iterate req.context as dict, read_only. environ[ 'audit. context' ]
but Glance requires to access req.context.
When glance enabled audit, they are conflict with each other.
This patch fix this issue by store audit context in
req.
Change-Id: Ib9a62a4cd0b7b9 ffb9fa2d6440e80 72d45ee0fee e2d33b1c865c968 44c9770580)
Closes-Bug: #1809101
Signed-off-by: Leehom Li <email address hidden>
(cherry picked from commit 82707e15a5bce8d