View Source Lightning.Credentials.SensitiveValues (Lightning v2.10.4)

Functions to pull out sensitive values inside a credential.

These values are used to scrub logs for leaked secrets.

Summary

Functions

Keys that are not considered sensitive

Given a map, find all values allowed (via @safe_keys) and return them as a list.

Types

@type pairs() :: {String.t(), String.t() | number() | boolean()}
@type raw_pairs() :: {String.t(), pairs() | map()}

Functions

@spec flatten_map(item :: %{required(String.t()) => any()} | [raw_pairs()]) :: [
  pairs()
]

Keys that are not considered sensitive

@spec secret_values(map :: %{required(String.t()) => any()}) :: [
  String.t() | number() | boolean()
]

Given a map, find all values allowed (via @safe_keys) and return them as a list.