Skip to main content

Masking

Masking allows replacing sensitive fields with hash of that field or with a static string. The field to mask is specified by the jsonPath config and value field defines the hash function or the static value. See example.

FieldDescriptionSchemeRequired
selectorSelector helps in choosing which configs should use the mask.jsonpathtrue
jsonpathSpecify JSONPath expression for the fieldsstringtrue
valueValue can be a name of a hash function or just a string.hashFunctiontrue
info

Masks are applied in the order they are specified in the configuration file.

Template Variable

The selector cel expression receives the ScrapeResult as its template variable.

Supported hash functions

  • md5sum