Threadline.Policy.RedactionPresenter (Threadline v0.5.0)

Copy Markdown View Source

Shared redaction drift presenter for Mix and LiveView parity.

It compares validated configured policy against the deployed Threadline trigger SQL found in PostgreSQL catalogs. Parsing is intentionally narrow and fail-closed: only known Threadline.Capture.TriggerSQL fragments are trusted.

Summary

Functions

Builds a redaction drift report from the configured policy and live catalogs.

Builds a redaction drift report from normalized config and deployed rows.

Types

policy()

@type policy() :: %{
  exclude: [String.t()],
  mask: [String.t()],
  mask_placeholder: String.t()
}

Functions

build(opts)

Builds a redaction drift report from the configured policy and live catalogs.

build_report(configured_tables, deployed_rows)

Builds a redaction drift report from normalized config and deployed rows.