OpenStack Context library
Go to file
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
doc Remove unnecessary unicode prefixes 2022-04-19 19:43:00 +08:00
oslo_context Add method for getting redacted copy of context 2023-09-08 12:11:44 -07:00
releasenotes Add method for getting redacted copy of context 2023-09-08 12:11:44 -07:00
.coveragerc Fix coverage configuration and execution 2015-10-09 16:11:45 -04:00
.gitignore gitignore: Hide reno cache files 2019-12-06 15:09:56 +00:00
.gitreview OpenDev Migration Patch 2019-04-19 19:43:09 +00:00
.mailmap exported from oslo-incubator by graduate.sh 2014-11-05 15:03:32 +01:00
.pre-commit-config.yaml Move flake8 as a pre-commit local target. 2021-03-23 13:08:17 +01:00
.stestr.conf Switch to stestr 2018-07-04 08:30:19 +07:00
.zuul.yaml Moves supported python runtimes from version 3.8 to 3.10 2023-04-10 12:58:33 +09:00
CONTRIBUTING.rst Align contributing doc with oslo's policy 2020-05-04 18:22:00 +02:00
HACKING.rst Fix URLs according to document migration 2017-07-12 22:46:06 +08:00
LICENSE exported from oslo-incubator by graduate.sh 2014-11-05 15:03:32 +01:00
README.rst Replace git.openstack.org URLs with opendev.org URLs 2019-04-30 13:30:33 +08:00
requirements.txt Remove use of positional decorator 2017-08-07 16:11:39 -07:00
setup.cfg Revert "Moves supported python runtimes from version 3.8 to 3.10" 2023-05-05 18:53:22 +00:00
setup.py Cleanup py27 support 2022-08-13 09:17:33 +08:00
test-requirements.txt Integrate mypy 2022-01-25 15:00:32 +01:00
tox.ini Fix the docs job 2023-02-17 13:14:52 +00:00

Oslo Context Library

The Oslo context library has helpers to maintain useful information about a request context. The request context is usually populated in the WSGI pipeline and used by various modules such as logging.

Team and repository tags

image

Latest Version

Downloads