Boop.Redactor (BoopEx v1.0.0)

Copy Markdown View Source

Replaces the values of sensitive keys anywhere inside event data with "[REDACTED]".

The server does the same, but the wire is the first place a secret can leak, so it happens here too. Matching is case-insensitive and treats - and _ alike. Add keys with config :boop_ex, redact_keys: ["ssn"].

Summary

Functions

The keys redacted by default.

Redacts data recursively. extra adds to the default key list.

Functions

default_keys()

@spec default_keys() :: [String.t()]

The keys redacted by default.

redact(data, extra \\ [])

@spec redact(term(), [String.t() | atom()]) :: term()

Redacts data recursively. extra adds to the default key list.