Skip to content

Commit 4d01471

Browse files
committed
Add a change note and reset the qhelp file
1 parent fc7d340 commit 4d01471

File tree

2 files changed

+3
-30
lines changed

2 files changed

+3
-30
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
lgtm,codescanning
2+
* The query "Hard-coded credential in API call" (`java/hardcoded-credential-api-call`)
3+
now recognizes hard-coded authentication credentials with Azure SDK for Java.

java/ql/src/Security/CWE/CWE-798/HardcodedCredentialsApiCall.qhelp

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -32,43 +32,13 @@
3232
Instead, the user name and password could be supplied through environment variables,
3333
which can be set externally without hard-coding credentials in the source code.
3434
</p>
35-
36-
<p>
37-
The following code example connects to AWS using a hard-coded access key ID and secret key:
38-
</p>
39-
40-
<sample src="HardcodedAWSCredentials.java"/>
41-
42-
<p>
43-
Instead, the access key ID and secret key could be supplied through environment variables,
44-
which can be set externally without hard-coding credentials in the source code.
45-
</p>
46-
47-
<p>
48-
The following code example connects to Azure using a hard-coded user name and password or client secret:
49-
</p>
50-
51-
<sample src="HardcodedAzureCredentials.java"/>
52-
53-
<p>
54-
Instead, the username and password or client secret could be supplied through environment variables,
55-
which can be set externally without hard-coding credentials in the source code.
56-
</p>
5735
</example>
5836

5937
<references>
6038
<li>
6139
OWASP:
6240
<a href="https://www.owasp.org/index.php/Use_of_hard-coded_password">Use of hard-coded password</a>.
6341
</li>
64-
<li>
65-
Microsoft:
66-
<a href="https://docs.microsoft.com/en-us/azure/developer/java/sdk/identity-user-auth#username-password-credential">Azure authentication with user credentials</a>.
67-
</li>
68-
<li>
69-
Amazon:
70-
<a href="https://docs.aws.amazon.com/sdk-for-java/v1/developer-guide/credentials.html">Working with AWS Credentials</a>.
71-
</li>
7242
</references>
7343

7444
</qhelp>

0 commit comments

Comments
 (0)