mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed #35646 -- Extended SafeExceptionReporterFilter.hidden_settings to treat AUTH as a sensitive match.
Co-authored-by: Natalia <124304+nessita@users.noreply.github.com>
This commit is contained in:
committed by
nessita
parent
615c80aba6
commit
aa90795050
@@ -1557,7 +1557,8 @@ class ExceptionReporterFilterTests(
|
||||
"SECRET_KEY_FALLBACKS",
|
||||
"PASSWORD",
|
||||
"API_KEY",
|
||||
"AUTH_TOKEN",
|
||||
"SOME_TOKEN",
|
||||
"MY_AUTH",
|
||||
]
|
||||
|
||||
def test_non_sensitive_request(self):
|
||||
@@ -1885,6 +1886,7 @@ class ExceptionReporterFilterTests(
|
||||
"PASSWORD": "super secret",
|
||||
"SECRET_VALUE": "super secret",
|
||||
"SOME_TOKEN": "super secret",
|
||||
"THE_AUTH": "super secret",
|
||||
}
|
||||
request = self.rf.get("/", headers=headers)
|
||||
reporter_filter = SafeExceptionReporterFilter()
|
||||
|
||||
Reference in New Issue
Block a user