Skip to content

Commit 0aacb98

Browse files
add body to data
1 parent ffc8248 commit 0aacb98

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/snowflake/connector/secret_detector.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ class SecretDetector(logging.Formatter):
4343
r'"privateKeyData": "([a-z0-9/+=\\n]{10,})"', flags=re.MULTILINE | re.IGNORECASE
4444
)
4545
CONNECTION_TOKEN_PATTERN = re.compile(
46-
r"(token|assertion content)" r"([\'\"\s:= ]+)" r"([a-z0-9=/_\-\+\.]{8,})",
46+
r"(token|assertion content)" # covers masterToken as well due to ignorecase
47+
r"([\'\"\s:=]+)"
48+
r"([a-z0-9=/_:\-\+\.]{8,})",
4749
flags=re.IGNORECASE,
4850
)
4951

0 commit comments

Comments
 (0)