تخطَّ إلى المحتوى

Sensitive Data In Logs (ARCH9160)

هذا المحتوى غير متوفر بلغتك بعد.

Key swift.logging.sensitive-data-in-logs · Severity error · Category logging · CWE CWE-532

Flags log/print calls whose message references passwords, tokens, secrets or keys.

logger.debug("auth with token=\(token)")
logger.debug("auth with token=\(token, privacy: .private)")

Mark credentials private or omit them.