8 Commits

Author SHA1 Message Date
Sean McGinnis
caaac6c438
Fix invalid escape sequence warnings
Py36 is more strict about escape sequences in strings. Regex patterns
often cause warnings due to not being normal escape sequences. This gets
rid of a few warnings by switching these regex strings to use raw
strings.

Change-Id: Ied16e55780f2bf73fac54e0afc8394af468a67b8
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2019-04-11 06:10:18 -05:00
lioplhp
2dc2cf3c31 Remove log translations
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: I797b5f0374d6f8ca1cb4641246cab414aa5466dd
2017-03-28 14:10:19 +08:00
Jamie Lennox
df5c11ddcc Filter token data out of catch_errors middleware
If an exception is caught by the catch_errors middleware the entire
request is dumped into the log including sensitive information like
tokens. Filter that information before outputting the failed request.

Closes-Bug: #1628031
Change-Id: I2563403993513c37751576223275350cac2e0937
2017-01-26 17:44:07 +01:00
JiaJunsu
634d45ed94 Filter X-Auth-Token in catch_errors
If X-Auth-Token is logged in files, it may be caught by attackers.
This patch tries to replace token-id by * in log files.

Change-Id: Icf0cd9d4da37575d79a0da94ade979793ad0d3fa
Closes-Bug:#1646254
2016-11-30 13:59:44 -08:00
Abhijeet Malawade
de3f58b4b7 Fix string formatting
TrivialFix

Change-Id: Icaa184373cb1a7775950295863bb8bbd663d875c
2015-09-25 06:20:00 -07:00
Mehdi Abaakouk
c78b156723 Restore backward compat of paste factory
Some application inherits from our middleware class

When we homogenize the signature and configuration handling
of all middlewares we break them.

This change fixes that.

Closes-bug: #1486735

Change-Id: I40c3d59110c6f8c5a1b3d3ccc734dc441069b025
2015-08-20 16:49:32 +02:00
Doug Hellmann
3bc703b823 Move i18n module to a private name
The i18n module for this library is private to the library and should
never be used by outside code. Rename the module to reflect this.

Change-Id: I39149056daeeb27428b938fb9cd7278cd42f2444
2015-01-21 19:48:41 -05:00
Doug Hellmann
8e06ca5bd0 Move files out of the namespace package
Move the public API out of oslo.middleware to oslo_middleware. Retain
the ability to import from the old namespace package for backwards
compatibility for this release cycle.

bp/drop-namespace-packages

Change-Id: If88c65c82b64f096a02f7ec62e019aea4de2f9d3
2015-01-06 13:44:01 -05:00