Skip to content

Commit cb0a62c

Browse files
Weak cryptography suppression. (#10689)
* Weak cryptography suppression.
1 parent 1f1305f commit cb0a62c

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/WebJobs.Script/Description/DotNet/PackageManager.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ internal static string GetCurrentLockFileHash(string functionDirectory)
125125
return string.Empty;
126126
}
127127

128+
// CodeQL [SM02196] The hash here is used to create a unique identifier over non-sensitive data and there is no security impact. Changing the hashing algorithm of the file path hash would be a breaking change for applications.
128129
using (var md5 = MD5.Create())
129130
{
130131
using (var stream = File.OpenRead(lockFilePath))

src/WebJobs.Script/Host/ScriptHostIdProvider.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ internal static HostIdResult GetDefaultHostId(IEnvironment environment, ScriptAp
5757
if (!string.IsNullOrEmpty(uniqueSlotName))
5858
{
5959
byte[] hash;
60+
// The Functions Host uses a Host ID to uniquely identify a particular Function App. By default, the ID is auto-generated from the Function App name, by taking the first 32 characters.
61+
// CodeQL [SM02196] The hash here is used to create a unique identifier over non-sensitive data and there is no security impact. Changing the hashing algorithm of the host ID creation would be a breaking change for applications.
6062
using (MD5 md5 = MD5.Create())
6163
{
6264
hash = md5.ComputeHash(Encoding.UTF8.GetBytes(uniqueSlotName));

0 commit comments

Comments
 (0)