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

Sensitive Data Logging (ARCH9128)

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

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

Flags log / print calls that write a credential-named value (password, token, API key) into the log store.

logger.info("login ok for \(user) with \(password)")
logger.info("login ok for \(user.id, privacy: .private)")

Log an identifier or a masked form; mark it .private in os.Logger; never the secret itself.