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.
Field | Description | Scheme | Required |
---|---|---|---|
selector | Selector helps in choosing which configs should use the mask. | jsonpath | true |
jsonpath | Specify JSONPath expression for the fields | string | true |
value | Value can be a name of a hash function or just a string. | hashFunction | true |
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