Skip to content
This repository was archived by the owner on Sep 27, 2025. It is now read-only.

Commit f7ccabb

Browse files
authored
fix: mask nvd.api.key in logs (#6307)
1 parent ed6d998 commit f7ccabb

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

core/src/main/resources/dependencycheck.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ data.version=5.4
2727
odc.analysis.timeout=180
2828

2929
# define which settings are masked when logged
30-
odc.settings.mask=.*password.*,.*token.*
30+
odc.settings.mask=.*password.*,.*token.*,.*api.key.*
3131

3232
data.connection_string=jdbc:h2:file:%s;AUTOCOMMIT=ON;CACHE_SIZE=65536;RETENTION_TIME=1000;MAX_COMPACT_TIME=10000;
3333
#data.connection_string=jdbc:mysql://localhost:3306/dependencycheck

core/src/test/resources/dependencycheck.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ data.version=5.4
2323
odc.analysis.timeout=20
2424

2525
# define which settings are masked when logged
26-
odc.settings.mask=.*password.*,.*token.*
26+
odc.settings.mask=.*password.*,.*token.*,.*api.key.*
2727

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

utils/src/test/resources/dependencycheck.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ data.version=5.3
2323
odc.analysis.timeout=20
2424

2525
# define which settings are masked when logged
26-
odc.settings.mask=.*password.*,.*token.*
26+
odc.settings.mask=.*password.*,.*token.*,.*api.key.*
2727

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

0 commit comments

Comments
 (0)