Skip to main content

Module log_sanitize

Module log_sanitize 

Source
Expand description

Sanitizing of caller-controlled text for log lines, and the shared auth-rejection log line Sanitizing of caller-controlled text before it reaches a log line, and the shared auth-rejection log line.

Structs§

RejectionFields
The sanitized properties shared by every authentication-rejection line.

Functions§

sanitize_for_log
Makes value safe to put in a log line: control and bidi override/isolate characters become ?, so one line can’t pretend to be two or render reordered in a terminal. Longer than max_chars characters is cut to max_chars - 1 characters plus ….
warn_auth_rejection
Logs an authentication rejection with the caller’s network details as properties.