Skip to content

Commit

Permalink
Explicitly remove default
Browse files Browse the repository at this point in the history
  • Loading branch information
tofarr committed Feb 21, 2025
1 parent 463cf3e commit 4981063
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions openhands/core/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,10 @@ def filter(self, record):
sensitive_values = []
for key, value in os.environ.items():
key_upper = key.upper()
if len(value) >= 8 and any(
s in key_upper for s in ('SECRET', 'KEY', 'CODE', 'TOKEN')
if (
len(value) > 2
and value != 'default'
and any(s in key_upper for s in ('SECRET', 'KEY', 'CODE', 'TOKEN'))
):
sensitive_values.append(value)

Expand Down

0 comments on commit 4981063

Please sign in to comment.