oslo.context/oslo_context
Takashi Kajinami e31a7a1af2 Add is_admin to redacted context
Heat is known to override RequestContext in a strange way and it
attempts to run policy check, which loads full request context, in case
is_admin is not given.

This ensures is_admin is copied during redactation, to avoid failures
in unit tests. is_admin is not a secret field so can appear in
notifications.

This also adds **kwargs interface to redacted_copy, so that we can
inject a few more arguments in subclasses.

Change-Id: I19f83d7b0a13f14df16ac805998d5b3751801c12
2024-02-26 18:20:35 +09: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 is_admin to redacted context 2024-02-26 18:20:35 +09: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