-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #73 Credentials should not be hard-coded(jproperties:S2068) - Add…
… the ability to ignore encrypted values
- Loading branch information
Showing
21 changed files
with
132 additions
and
57 deletions.
There are no files selected for viewing
14 changes: 7 additions & 7 deletions
14
...ts/custom/hardCodedCredentials.properties → ...edentials/hardCodedCredentials.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
# Noncompliant {{Remove this hard-coded username.}} | ||
myloginzzz=blabla | ||
hcc.myloginzzz=hcc1 | ||
|
||
# Noncompliant {{Remove this hard-coded username.}} | ||
username=blabla | ||
hcc.username=hcc2 | ||
|
||
# Noncompliant {{Remove this hard-coded password.}} | ||
my_password=blabla | ||
hcc.password=hcc13 | ||
|
||
# Noncompliant {{Remove this hard-coded password.}} | ||
mypasswd=blabla | ||
hcc.mypasswd=hcc4 | ||
|
||
# Noncompliant {{Remove this hard-coded password.}} | ||
pwd=blabla | ||
hcc.pwd=hcc5 | ||
|
||
# Compliant | ||
abc=blabla | ||
pass=blabla | ||
hcc.abc=hcc6 | ||
hcc.pass=hcc7 |
5 changes: 5 additions & 0 deletions
5
...ling/projects/custom/hard-coded-credentials/hardCodedCredentialsValuesToIgnore.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
hccvi.myloginzzz=ENC(hccvi1) | ||
hccvi.username=OBF:hccvi2 | ||
hccvi.password=ENC(hccvi3) | ||
hccvi.mypasswd=OBF:hccvi4 | ||
hccvi.pwd=OBF:hccvi5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 7 additions & 7 deletions
14
...es/checks/hardCodedCredentials.properties → ...edentials/hardCodedCredentials.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
# Noncompliant {{Remove this hard-coded username.}} | ||
myloginzzz=blabla | ||
hcc.myloginzzz=hcc1 | ||
|
||
# Noncompliant {{Remove this hard-coded username.}} | ||
username=blabla | ||
hcc.username=hcc2 | ||
|
||
# Noncompliant {{Remove this hard-coded password.}} | ||
my_password=blabla | ||
hcc.password=hcc13 | ||
|
||
# Noncompliant {{Remove this hard-coded password.}} | ||
mypasswd=blabla | ||
hcc.mypasswd=hcc4 | ||
|
||
# Noncompliant {{Remove this hard-coded password.}} | ||
pwd=blabla | ||
hcc.pwd=hcc5 | ||
|
||
# Compliant | ||
abc=blabla | ||
pass=blabla | ||
hcc.abc=hcc6 | ||
hcc.pass=hcc7 |
Oops, something went wrong.