Skip to content
This repository was archived by the owner on Jul 21, 2025. It is now read-only.
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 23 additions & 1 deletion src/ADOGenerator/Services/ProjectService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2866,13 +2866,35 @@ public static class Utility
public static string SanitizeJson(string json)
{
// Implement sanitization logic to remove or mask sensitive information
// For example, remove password fields
var jsonObject = JObject.Parse(json);

// Mask password fields
if (jsonObject["password"] != null)
{
jsonObject["password"] = "****";
}

// Mask GitUserPassword fields
if (jsonObject["GitUserPassword"] != null)
{
jsonObject["GitUserPassword"] = "****";
}

// Mask BikeSharing360password fields
if (jsonObject["BikeSharing360password"] != null)
{
jsonObject["BikeSharing360password"] = "****";
}

// Mask ContosoPassword fields
if (jsonObject["ContosoPassword"] != null)
{
jsonObject["ContosoPassword"] = "****";
}

// Mask other sensitive fields as needed
// Add more sanitization logic as needed

return jsonObject.ToString();
}
}
Loading