-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sensitive data #15
Comments
Hello! |
Check Quick example: from django.views.decorators.debug import sensitive_post_parameters
@sensitive_post_parameters
def login_view(request):
return HttpsResponse()
# then in your middleware, when writing the log
for key, val in request.POST:
if request.sensitive_post_parameters == "__ALL__" or key in request.sensitive_post_parameters:
# sensitive
else:
# safe
:) |
Exactly! Something along those lines. Thanks |
Hello there 👋
I came across Sonar, read through the code, and i like the idea.
Jus noticed that you're saving POST data into the database and wanted to raise the concern that it might contains sensitive data like passwords etc..
Good initiation, keep it up mate !
The text was updated successfully, but these errors were encountered: