oslo.context/oslo_context
Jay Faulkner 059f9ba16e Add method for getting redacted copy of context
There are times, such as in oslo.messaging notifications, when we'd like
a context object to be stripped of any secrets. This adds a method to
RequestContext, redacted_copy(), which returns a copy of that context,
carrying over an allowlist of fields only, leaving secrets behind.

Related-bug: 2030976
Change-Id: Ie4a8eb784c505c41ec5fcd4cba091cc555146763
2023-09-08 12:11:44 -07:00
..
tests Add method for getting redacted copy of context 2023-09-08 12:11:44 -07:00
__init__.py Move out of the oslo namespace package 2014-11-14 13:52:32 -05:00
context.py Add method for getting redacted copy of context 2023-09-08 12:11:44 -07:00
fixture.py Integrate mypy 2022-01-25 15:00:32 +01:00
version.py Integrate mypy 2022-01-25 15:00:32 +01:00