mirror of
https://github.com/datahub-project/datahub.git
synced 2025-11-07 15:04:01 +00:00
updates security spec creation, removes unused specification
This commit is contained in:
parent
80a43d9114
commit
c60545ab54
@ -1,5 +1,6 @@
|
|||||||
/**
|
/**
|
||||||
* Builds a privacyCompliancePolicy map with default / unset values for non null properties
|
* Builds a privacyCompliancePolicy map with default / unset
|
||||||
|
* values for non null properties
|
||||||
*/
|
*/
|
||||||
export const createPrivacyCompliancePolicy = () => {
|
export const createPrivacyCompliancePolicy = () => {
|
||||||
const policy = {
|
const policy = {
|
||||||
@ -13,16 +14,19 @@ export const createPrivacyCompliancePolicy = () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Builds a securitySpecification map with default / unset values for non null properties as per avro schema
|
* Builds a securitySpecification map with default / unset values
|
||||||
|
* for non null properties as per avro schema
|
||||||
* @param {number} id
|
* @param {number} id
|
||||||
*/
|
*/
|
||||||
export const createSecuritySpecification = id => {
|
export const createSecuritySpecification = id => {
|
||||||
const classification = [
|
const classification = ['highlyConfidential', 'confidential'].reduce(
|
||||||
'highlyConfidential', 'confidential', 'limitedDistribution', 'mustBeEncrypted', 'mustBeMasked'
|
(classification, classifier) => {
|
||||||
].reduce((classification, classifier) => {
|
|
||||||
classification[classifier] = [];
|
classification[classifier] = [];
|
||||||
return classification;
|
return classification;
|
||||||
}, {});
|
},
|
||||||
|
{}
|
||||||
|
);
|
||||||
|
|
||||||
const securitySpecification = {
|
const securitySpecification = {
|
||||||
classification,
|
classification,
|
||||||
datasetId: id,
|
datasetId: id,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user