one more set of patterns (#5535)

* one more set of patterns

* tr

* ads

* add signed Oid

* clangs
This commit is contained in:
George Arama 2024-04-15 13:25:10 -07:00 committed by GitHub
parent 6ded663ff6
commit 9f30ba4a9a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 0 deletions

View File

@ -243,6 +243,14 @@ void TestProxyManager::SetProxySanitizer()
addSanitizer(SanitizerType::General, g_accountRegex, "account");
addSanitizer(SanitizerType::Body, "client_secret=(?<clientsecret>[^&]+)", "clientsecret");
addSanitizer(SanitizerType::Body, "client_id=(?<clientid>[^&]+)", "clientid");
addSanitizer(
SanitizerType::Body,
"(?<=<UserDelegationKey>).*?(?:<SignedTid>)(.*)(?:</SignedTid>)",
"signedtid");
addSanitizer(
SanitizerType::Body,
"(?<=<UserDelegationKey>).*?(?:<SignedOid>)(.*)(?:</SignedOid>)",
"signedoid");
const std::string storageSasSignatureRegex = "\\?.*sig=(?<sassig>[a-zA-Z0-9\\%\\/+=]+)";
addSanitizer(SanitizerType::Uri, storageSasSignatureRegex, "sassig");
addSanitizer(SanitizerType::Header, storageSasSignatureRegex, "sassig", "x-ms-copy-source");

View File

@ -36,3 +36,4 @@ additional questions or comments.
[coc]: https://opensource.microsoft.com/codeofconduct/
[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/
[coc_contact]: mailto:opencode@microsoft.com