Skip to content

Commit

Permalink
redact the hostname of all uris
Browse files Browse the repository at this point in the history
  • Loading branch information
scbedd committed Apr 22, 2024
1 parent 424760b commit 957cc16
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -654,6 +654,14 @@ public SanitizerDictionary() {
new RegisteredSanitizer(
new BodyKeySanitizer("$..functionUri"),
"AZSDK149"
),
new RegisteredSanitizer(
new BodyKeySanitizer("$..secondaryConnectionString"),
"AZSDK150"
),
new RegisteredSanitizer(
new UriRegexSanitizer("REDACTED", regex: "(?<=http://|https://)(?<host>[^/?\\.]+)", groupForReplace: "host"),
"AZSDK151"
)
};

Expand Down

0 comments on commit 957cc16

Please sign in to comment.