You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
possibility to choose a custom domain (list of possible characters on input)
automatic preservation of chars outside of domain
template to execute on error
Examples
version: "1"masking:
- selector:
jsonpath: "id"mask:
ff1:
keyFromEnv: "FF1_ENCRYPTION_KEY"domain: "ABCD0123456"# will be used to compute radix (radix and domain can't be used at the same time)preserve: true # will preserve chars outside of the domain (at the same positions)onError: "{{ .id }}"# will execute this template and use the result on error
Input value
Output value
Description
1234-ABC
A326-1DC
The '-' at position 5 is preserved because it is not part of the domain, the rest of the string is encrypted
XXXXX
XXXXX
There is nothing to encrypt, so ff1 will fail, the "on error" template is executed so the original value is used
version: "1"masking:
- selector:
jsonpath: "id"mask:
ff1:
keyFromEnv: "FF1_ENCRYPTION_KEY"domain: "ABCD0123456"# will be used to compute radix (radix and domain can't be used at the same time)preserve: false # default value if not specifiedonError: "{{ .id }}"# will execute this template and use the result on error
Input value
Output value
Description
1234-ABC
1234-ABC
The '-' at position 5 is not part of the domain, preserve is false, so the ff1 will fail, the "on error" template is executed so the original value is used
XXXXX
XXXXX
'X' is not part of the domain, so ff1 will fail, the "on error" template is executed so the original value is used
version: "1"masking:
- selector:
jsonpath: "id"mask:
ff1:
keyFromEnv: "FF1_ENCRYPTION_KEY"domain: "ABCD0123456"# will be used to compute radix (radix and domain can't be used at the same time)preserve: false # default value if not specified# onError is not specified (null)
Input value
Output value
Description
1234-ABC
error
The '-' at position 5 is not part of the domain, preserve is false, so the ff1 will fail, the "on error" parameter is not set, so the mask will fail
XXXXX
error
'X' is not part of the domain, so ff1 will fail, the "on error" parameter is not set, so the mask will fail
The text was updated successfully, but these errors were encountered:
New features
Examples
The text was updated successfully, but these errors were encountered: