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§
- Rejection
Fields - The sanitized properties shared by every authentication-rejection line.
Functions§
- sanitize_
for_ log - Makes
valuesafe 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 thanmax_charscharacters is cut tomax_chars - 1characters plus…. - warn_
auth_ rejection - Logs an authentication rejection with the caller’s network details as properties.