profiles
directory which by default is located at /opt/philter/profiles/
.name
that uniquely identifies it.identifiers
that are filters for sensitive information.identifier
, or filter, can have zero or more filter strategies. A filter strategy tells Philter how to manipulate that type of sensitive information when it is identified.{{{REDACTED-email-address}}}
. The %t
gets replaced by the type of the filter. Likewise, when a phone number is found it is replaced with the text {{{REDACTED-phone-number}}}
. You are free to change the redaction formats to whatever fits your use-case. See Filter Strategies for all replacement options.email-and-phone-numbers
. Filter profiles can be named anything you like but their names must be unique from all other filter profiles. As a best practice, the filter profile should be saved as [name].json
, e.g. email-and-phone-numbers.json
./opt/philter/profiles/email-and-phone-numbers.json
. We must restart Philter for the new profile to be available for use. To apply the filter profile we will pass the filter profile's name to Philter when making a filter request, as shown in the example request below.p
along with a value that is the name of the filter profile we want to use for this request. If we had multiple filter profiles in Philter we could choose a different filter profile for this request simply by changing the name given to the parameter p
. For more details see Philter’s API.file.txt
by applying the filter profile named email-and-phone-numbers
. As we saw in the filter profile above, this filter profile redacts email addresses and phone numbers. Philter will return the redacted text in response to the API call.