Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Remove print statement and change mask to use a fixed length

  • Loading branch information...
commit 3b9d15fcedd5edbe6dcf8ad58e9dbee0cecb6a04 1 parent c476707
@dcramer authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 sentry/core/
5 sentry/core/
@@ -16,7 +16,6 @@ def process(self, data):
def get_data(self, data):
return {}
-from pprint import pprint
def sanitize_passwords_processor(data):
""" Asterisk out passwords from password fields in frames.
@@ -24,10 +23,10 @@ def sanitize_passwords_processor(data):
if 'frames' in data['sentry.interfaces.Exception']:
for frame in data['sentry.interfaces.Exception']['frames']:
if 'vars' in frame:
- print frame['vars']
for k,v in frame['vars'].iteritems():
if k.startswith('password'):
- frame['vars'][k] = '*'*len(v)
+ # store mask as a fixed length for security
+ frame['vars'][k] = '*'*16
return data
#class SantizePasswordsProcessor(Processor):
Please sign in to comment.
Something went wrong with that request. Please try again.