Merge pull request #7 from venkateshpabbati/alert-autofix-21
Browse filesPotential fix for code scanning alert no. 21: Clear-text logging of sensitive information
- lightrag/kg/tidb_impl.py +1 -1
lightrag/kg/tidb_impl.py
CHANGED
@@ -25,7 +25,7 @@ from sqlalchemy import create_engine, text # type: ignore
|
|
25 |
|
26 |
def sanitize_sensitive_info(data: dict) -> dict:
|
27 |
sanitized_data = data.copy()
|
28 |
-
sensitive_fields = ['password', 'user', 'host', 'database']
|
29 |
for field in sensitive_fields:
|
30 |
if field in sanitized_data:
|
31 |
sanitized_data[field] = '***'
|
|
|
25 |
|
26 |
def sanitize_sensitive_info(data: dict) -> dict:
|
27 |
sanitized_data = data.copy()
|
28 |
+
sensitive_fields = ['password', 'user', 'host', 'database', 'port', 'ssl_verify_cert', 'ssl_verify_identity']
|
29 |
for field in sensitive_fields:
|
30 |
if field in sanitized_data:
|
31 |
sanitized_data[field] = '***'
|