Fides Configuration Syntax
Other pages in this language section describe various concepts and resources that appear in the Fides language. This page describes the syntax of the language in more detail to help better interpret Fides whether you're authoring or reading.
The Fides language is an intentionally simple language designed to be relatively easy for anyone to read and write. The primary objective is to translate complex privacy compliance concepts into a simple syntax, it's for this reason Fides is entirely written as YAML configurations.
YAML - Building Block of Fides
The Fides language is intentionally simple. To assure this, Fides declarations use predefined primitives (e.g. data categories) that are used when describing your datasets, systems, policies, etc. These predefined primitives exist as part of the Fides taxonomy which is maintained in your
fidesctl server so they can be consistently used across your organization's development team.
You can learn more about the taxonomy structure and how to extend it in the taxonomy guide.
Dot Notation and Snake_Case
To make writing and reading Fides language as easy for humans as possible, declarations from the privacy taxonomy use
dot notation for the keys and use
snake_case compound labels.
For example, to describe a field in a database as contact information relating to a user, you can write its data category as:
If we require greater specificity, we could declare the contact type as a phone number by using a more specific sub-category:
1 2 3
The key-value is YAML, and Fides', basic building block. Every item in a Fides YAML document is a member of at least one dictionary. The key is always a
string. The value is a scalar so that it can be any datatype. So the value can be a
number, or another
dictionary - most commonly in Fides, this will be a
string that may provide a description or a pointer to a reference object in the taxonomy.
If we use the example of a user's contact email, to correctly declare this in valid Fides YAML as part of a Dataset, it would be:
1 2 3 4 5 6
data_categoriesmust use values from the Data Categories taxonomy), but many keys accept arbitrary strings as descriptive labels.
Finally, as you see in the example above, keys such as
data_categories accept a list of values for multi-labeling. In this case, the field email has been assigned the value user contact email as well as account-related contact email, indicating that it may be either of those categories when used.
Fides configuration files must always be UTF-8 encoded. While the delimiters of the language are all ASCII characters, Fides accepts non-ASCII characters in key-values, comments, and string values.