adk_secret_redactor (erlang_adk v0.7.0)

View Source

Recursive redaction for authentication data and diagnostic terms.

Known secret-bearing keys and HTTP headers are always redacted. Explicit seed values are also removed wherever they occur, including inside URLs.

Summary

Functions

Collect binary/string leaves from a credential for seeded error redaction. The returned values must remain local to the refresh worker.

Functions

marker()

-spec marker() -> binary().

redact(Term)

-spec redact(term()) -> term().

redact(Term, Seeds0)

-spec redact(term(), [binary() | string()]) -> term().

seed_values(Term)

-spec seed_values(term()) -> [binary()].

Collect binary/string leaves from a credential for seeded error redaction. The returned values must remain local to the refresh worker.