Closed MatMoore closed 6 months ago
Can we decorate a security classification enum with descriptions to get over the hyphen issue? Not Python example 😄
public enum SecurityClassification {
[Description("OFFICIAL-SENSITIVE")]
OfficialSensitive,
[Description("OFFICIAL")]
Official
}
We can use whatever we want for the enum value, we would just need to change the code to use the value rather than the name https://docs.python.org/3/howto/enum.html#using-a-descriptive-string
This is not currently an issue as we've removed this field for now. Can be revisited later if we have a need for recording markings like official-sensitive etc when manually registering data to the catalogue
Currently the way we are storing security classifications is inconsistent, so the data-platform-catalogue library is slightly broken.
This will prevent us from being able to distinguish sensitive datasets, and doing something useful with the classification filter.
It is also likely to cause confusion when we start looking at automatically detecting PII.
Problems
get_table_details
method, where the classification is reset to the default OFFICIAL, even if it's OFFICIAL-SENSITIVE in datahubSecurityClassification
enum doesn't align with what we want to use it forOFFICIAL-SENSITIVE
contains a hyphen so can't be used as a python identifierMissing code in
get_table_details
We are missing something like this when return
TableMetadata
objects:Inconsistencies
sensitivityLevel
, which we display to the user as "Security Classification"SecurityClassification
enum, that includesOFFICIAL
,SECRET
,TOP_SECRET
- this is pointless as we will only ever catalogueOFFICIAL
informationOFFICIAL-SENSITIVE
Proposal
get_table_details
sensitivityLevel
property tosecurityClassification
or introduce new tags (TBD)