Skip to content

Commit

Permalink
fix: mask nvd.api.key in logs (#6307)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremylong authored Dec 15, 2023
1 parent ed6d998 commit f7ccabb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/src/main/resources/dependencycheck.properties
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ data.version=5.4
odc.analysis.timeout=180

# define which settings are masked when logged
odc.settings.mask=.*password.*,.*token.*
odc.settings.mask=.*password.*,.*token.*,.*api.key.*

data.connection_string=jdbc:h2:file:%s;AUTOCOMMIT=ON;CACHE_SIZE=65536;RETENTION_TIME=1000;MAX_COMPACT_TIME=10000;
#data.connection_string=jdbc:mysql://localhost:3306/dependencycheck
Expand Down
2 changes: 1 addition & 1 deletion core/src/test/resources/dependencycheck.properties
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ data.version=5.4
odc.analysis.timeout=20

# define which settings are masked when logged
odc.settings.mask=.*password.*,.*token.*
odc.settings.mask=.*password.*,.*token.*,.*api.key.*

data.connection_string=jdbc:h2:file:%s;AUTOCOMMIT=ON;CACHE_SIZE=65536;
#data.connection_string=jdbc:mysql://localhost:3306/dependencycheck
Expand Down
2 changes: 1 addition & 1 deletion utils/src/test/resources/dependencycheck.properties
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ data.version=5.3
odc.analysis.timeout=20

# define which settings are masked when logged
odc.settings.mask=.*password.*,.*token.*
odc.settings.mask=.*password.*,.*token.*,.*api.key.*

data.connection_string=jdbc:h2:file:%s;AUTOCOMMIT=ON;CACHE_SIZE=65536;
#data.connection_string=jdbc:mysql://localhost:3306/dependencycheck
Expand Down

0 comments on commit f7ccabb

Please sign in to comment.