Incant.Sensitive (incant v0.1.0)

Copy Markdown

Helpers for secret/sensitive Incant metadata.

Incant treats :secret, :sensitive, and :redacted as presentation and transport-safety hints. They do not replace authorization; they prevent common table/detail/contract rendering paths from exposing raw values.

Summary

Functions

Returns a stable redacted display value for sensitive fields.

Redacts a value when opts are sensitive; otherwise returns it unchanged.

Redacts sensitive fields from a row according to resource column metadata.

Returns true when metadata opts mark a value as sensitive.

Functions

redact(value)

Returns a stable redacted display value for sensitive fields.

redact(value, opts)

Redacts a value when opts are sensitive; otherwise returns it unchanged.

redact_row(row, arg2)

Redacts sensitive fields from a row according to resource column metadata.

sensitive?(opts)

Returns true when metadata opts mark a value as sensitive.