summaryrefslogtreecommitdiff
path: root/keystonemiddleware/audit/__init__.py
Commit message (Collapse)AuthorAgeFilesLines
* Add oslo.config.opts entrypoint for audit middleware optionsTakashi Kajinami2021-08-121-2/+2
| | | | | | | | | ... so that each service using the audit middleware can include these parameters in .conf file generated by oslo-config-generator by adding that entrypoint to the command. Closes-Bug: #1939632 Change-Id: Ied954c633570c51af9504514ffed18e12de8caac
* Make sure audit middleware use own contextLeehom Li (feli5)2018-12-241-3/+4
| | | | | | | | | | | | 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 <feli5@cisco.com>
* Add option to disable using oslo_message notifierStefan Nica2018-02-201-0/+7
| | | | | | | | | | | | | | | | Add a configuration option, 'use_oslo_messaging', to indicate whether to use oslo_messaging notifier. It is set to true for backwards compatibility. We can't use audit middleware with services like Swift, which have no dependency on Oslo and does not work well with oslo_log. Swift uses rsyslog. Currently, audit middleware indiscriminately chooses oslo_messaging if the package is installed. This is problematic if Swift proxy is on the same controller as any service which consumes oslo_messaging. With this new option, Swift can now safely consume audit middleware by electing to use local log notifier instead of oslo_messaging. Change-Id: I87bf857c20e4b78e97d40dcc51a1b4ff0014abb2 Closes-Bug: #1695038
* Update URLs in documentation4.17.0Hangdong Zhang2017-07-201-1/+1
| | | | | | Update URLs according to OpenStack document migration. Change-Id: Icb4232fcce79bb1ea121489122e578e3109b5e90
* Remove log translationsD G Lee2017-05-021-3/+2
| | | | | | | | | | | | Log messages are no longer being translated. This removes all use of the _LE, _LI, and _LW translation markers to simplify logging and to avoid confusion with new contributions. See: http://lists.openstack.org/pipermail/openstack-i18n/2016-November/002574.html http://lists.openstack.org/pipermail/openstack-dev/2017-March/113365.html Change-Id: I73ca5fc046ad04505b52ca93c9bbdbfd72405aed
* Use https for *.openstack.org referencesEric Brown2017-02-051-1/+1
| | | | | | | The openstack.org pages now support https and our references to the site should by default be one signed by the organization. Change-Id: I8521461203fe40e4576f4de7cfb500bd64027d6d
* use oslo.log instead of loggingJanonymous2017-01-131-1/+1
| | | | | | | | | The constants of log levels were added in the 1.8 version of the oslo.log library. So we can replace all usage of system logging module with log module from oslo.log Change-Id: I97a1d913b543dc9dbd4d228b04adbdf7ee320df5
* Refactor create_event onto the api object.Jamie Lennox2016-06-271-44/+3
| | | | | | | | There are a number of methods on the api object that already handle request specifics. Move the create_event method over to the api so that it can be tested independantly of the middleware. Change-Id: I60e524f1e03bfa4592756fc1da861b687ba2ee85
* Extract a common notifier patternJamie Lennox2016-06-271-55/+9
| | | | | | | Create a notifier pattern that abstracts the message notification. This should make it easier to test. Change-Id: Ifbe3be434c304f1d3d4d570d645937a72c3503c8
* Break out the API piece into its own fileJamie Lennox2016-06-271-245/+11
| | | | | | Refactor the API object out of the audit middleware into its own file. Change-Id: Iddeb91db48c718d749d878ebfbe09f6a3a143229
* Move audit into its own folderJamie Lennox2016-06-241-0/+514
This is the start of a cleanup of some of the audit middleware code. The test changes are because this reorders the test execution order and some of the global project tests were setting long lasting state. Change-Id: I7a5576c1f497b9a43420f66c9e511cf6f280b62e