Fix clear-text logging in admin.py and security_audit.py
Some checks failed
API Endpoint Tests / test-api-endpoints (push) Successful in 45s
Integration Tests / test-service-integration (push) Successful in 1m45s
Python Tests / test-python (push) Successful in 27s
Security Scanning / security-scan (push) Has been cancelled

This commit is contained in:
aitbc
2026-04-27 08:37:47 +02:00
parent 29124f80dc
commit 8df40c1860
2 changed files with 18 additions and 9 deletions

View File

@@ -76,6 +76,7 @@ class SecurityAudit:
self.results["warnings"].append(issue)
except Exception as e:
# SECURITY FIX: Don't log full exception details to prevent leaking sensitive information
logger.error(f"Error in {category_name} check: {type(e).__name__}")
self.results["findings"].append({
"category": category_name,