Skip to content
This repository has been archived by the owner on Nov 15, 2024. It is now read-only.

ADAPT-1802: [hydra-publish] Adapt data classification changes according to our policy #12

Merged
merged 8 commits into from
Jan 10, 2024

Conversation

aman-minz
Copy link

@aman-minz aman-minz commented Dec 19, 2023

This PR introduces new Data Classification values in our system. As advised, we are also accepting the old values of data classification. However, the supported values/symbols for data classification in the v1 and v2 metadata schema are as per our policy. The old values are transformed to new values in DVS before they are sent to kafka-broker.

Please note that when an old value of data classification is received in the request, we take care of retaining it by storing in SubDataClassification field.

DataClassification:
{ "name": "dataClassification", "type": { "type": "enum", "name": "DataClassification", "namespace": "hydra.kafka.model", "symbols": [ "Public", "InternalUse", "Confidential", "Restricted" ] } }

SubDataClassification:
{ "name": "subDataClassification", "type": [ "null", { "type": "enum", "name": "SubDataClassification", "namespace": "hydra.kafka.model", "symbols": [ "Public", "InternalUseOnly", "ConfidentialPII", "RestrictedFinancial", "RestrictedEmployeeData" ] } ], "default": null }

Supported Values in request => Values sent to Kafka:

  1. Public => Public
  2. InternalUseOnly => InternalUse
  3. ConfidentialPII => Confidential
  4. RestrictedFinancial => Restricted
  5. RestrictedEmployeeData => Restricted
  6. InternalUse => InternalUse
  7. Confidential => Confidential
  8. Restricted => Restricted

@aman-minz aman-minz self-assigned this Dec 19, 2023
shreedhar-kc
shreedhar-kc previously approved these changes Dec 21, 2023
abhivermaaa
abhivermaaa previously approved these changes Jan 10, 2024
Copy link

@abhivermaaa abhivermaaa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

aadit-chugh
aadit-chugh previously approved these changes Jan 10, 2024
@aman-minz aman-minz dismissed stale reviews from aadit-chugh and abhivermaaa via 976d3a8 January 10, 2024 14:42
Copy link

@abhivermaaa abhivermaaa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@aman-minz aman-minz merged commit da2a93d into master Jan 10, 2024
5 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants