HashiCorp Cloud Platform
Create custom expressions
Vault Radar custom expressions allows you to receive events when the regular expressions defined by you are matched in resource files. The chosen description also appears in the events list. In general, custom expressions are used to define new secret types, PII information, or non-inclusive language.
Note
Vault Radar supports golang and PCRE formats for regular expressions.Custom expressions
Select Settings/Custom Expressions.
Click Add Regex button.
Select a valid category, provide a description, a valid regex, and an example for your future reference.
Click Save.
You can also edit or delete a defined custom expression. The updated custom expressions do not impact the previous scan results but affect future scans. When you run a reconciliation scan, on-demand scan, PR webhook scan, or similar, you can view events based on the updated regex pattern.