diff options
Diffstat (limited to 'oslo_context/context.py')
-rw-r--r-- | oslo_context/context.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/oslo_context/context.py b/oslo_context/context.py index 98a00bf..5e38452 100644 --- a/oslo_context/context.py +++ b/oslo_context/context.py @@ -371,6 +371,12 @@ class RequestContext(object): values['auth_token'] = '***' else: values['auth_token'] = None + # NOTE(bnemec: auth_token_info isn't defined in oslo.context, but it's + # a common pattern in project context subclasses so we handle it here. + # It largely contains things that we don't want logged, like the token + # itself (which needs to be removed for security) and the catalog + # (which needs to be removed because it bloats the logs terribly). + values.pop('auth_token_info', None) return values |