Hi, I see that the rule “Hard-coded credentials are security-sensitive” in golang security hotspot and It’s recommended to customize the configuration of this rule with additional credential words.
I want to add a new credential words “key”. But I don’t konw the full parameter key of “credentialWords” .
I have tried all theses names:
sonar.go.S2068.credentialWords=password,passwd,pwd,passphrase,key
sonar.go.s2068.credentialWords=password,passwd,pwd,passphrase,key
sonar.go.credentialWords=password,passwd,pwd,passphrase,key
sonar.go.credentialwords=password,passwd,pwd,passphrase,key
sonar.credentialwords=password,passwd,pwd,passphrase,key
sonar.credentialWords=password,passwd,pwd,passphrase,key
It doesn’t work, it frustrats me for a long time.
Please help me , how should I customize the configuration of this rule with additional credential words?
What is the key of “credentialWords”.
Informations:
- Version: Community Edition Version 8.9.2 (build 46101)
- I found the source code is here HardcodedCredentialsCheck.java#L48 , But I am not familiar with it