Skip to content

Commit 74c200c

Browse files
committed
rmv secret leak via logging
1 parent a037caa commit 74c200c

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

application/single_app/functions_keyvault.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -189,13 +189,9 @@ def validate_secret_name_dynamic(secret_name):
189189
pattern = rf"^(.+)--({sources_pattern})--({scopes_pattern})--(.+)$"
190190
match = re.match(pattern, secret_name)
191191
if not match:
192-
print(f"Secret name '{secret_name}' does not match the required pattern.")
193-
logging.warning(f"Secret name '{secret_name}' does not match the required pattern.")
194192
return False
195193
# Optionally, check length
196194
if len(secret_name) > 127:
197-
print(f"Secret name '{secret_name}' exceeds the maximum length of 127 characters.")
198-
logging.warning(f"Secret name '{secret_name}' exceeds the maximum length of 127 characters.")
199195
return False
200196
return True
201197

0 commit comments

Comments
 (0)