class documentation

class SafeExceptionReporterFilter:

View In Hierarchy

Use annotations made by the sensitive_post_parameters and sensitive_variables decorators to filter out sensitive information.
Method get​_post​_parameters Replace the values of POST parameters marked as sensitive with stars (*****).
Method get​_traceback​_frame​_variables Replace the values of variables marked as sensitive with stars (*****).
Method is​_active No summary
Class Variable cleansed​_substitute Undocumented
Class Variable hidden​_settings Undocumented
Method cleanse​_setting Cleanse an individual setting key/value of sensitive content. If the value is a dictionary, recursively cleanse the keys in that dictionary.
Method cleanse​_special​_types Undocumented
Method get​_cleansed​_multivaluedict Replace the keys in a MultiValueDict marked as sensitive with stars. This mitigates leaking sensitive POST parameters if something like request.POST['nonexistent_key'] throws an exception (#21098).
Method get​_safe​_request​_meta Return a dictionary of request.META with sensitive values redacted.
Method get​_safe​_settings Return a dictionary of the settings module with values of sensitive settings replaced with stars (*****).
def get_post_parameters(self, request):
Replace the values of POST parameters marked as sensitive with stars (*****).
def get_traceback_frame_variables(self, request, tb_frame):
Replace the values of variables marked as sensitive with stars (*****).
def is_active(self, request):
This filter is to add safety in production environments (i.e. DEBUG is False). If DEBUG is True then your site is not safe anyway. This hook is provided as a convenience to easily activate or deactivate the filter on a per request basis.
cleansed_substitute: str =

Undocumented

hidden_settings =

Undocumented

def cleanse_setting(self, key, value):
Cleanse an individual setting key/value of sensitive content. If the value is a dictionary, recursively cleanse the keys in that dictionary.
def cleanse_special_types(self, request, value):

Undocumented

def get_cleansed_multivaluedict(self, request, multivaluedict):
Replace the keys in a MultiValueDict marked as sensitive with stars. This mitigates leaking sensitive POST parameters if something like request.POST['nonexistent_key'] throws an exception (#21098).
def get_safe_request_meta(self, request):
Return a dictionary of request.META with sensitive values redacted.
def get_safe_settings(self):
Return a dictionary of the settings module with values of sensitive settings replaced with stars (*****).