haziq
(Syed M. Haziq)
March 15, 2023, 2:15am
1
SonarQube Developer Edition 9.9.0.65466
#define DB_PASSWORD "secret"
This hard coded password is not detected. Please confirm whether this pattern should be detected or not since the rule does not explicitly state anything regarding macro definition.
haziq
(Syed M. Haziq)
March 16, 2023, 5:52am
2
I found this old open issue on adding evaluation for this pattern:
https://sonarsource.atlassian.net/browse/CPP-2852
Does this means password hardcoded in macro definition won’t be flagged by SonarQube?
ganncamp
(G Ann Campbell)
March 16, 2023, 1:08pm
3
Hi,
Welcome to the community!
That ticket is still open, so the rule hasn’t been updated yet for your case.
HTH,
Ann
I mentioned this in the CPP-2852 ticket so that we don’t forget about this post. Thanks for raising this.
1 Like
system
(system)
Closed
March 23, 2023, 9:19pm
6
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.