Sensitive Data In Logs (ARCH9160)
Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.
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.
Incorrect
Section titled “Incorrect”logger.debug("auth with token=\(token)")Correct
Section titled “Correct”logger.debug("auth with token=\(token, privacy: .private)")Mark credentials private or omit them.