-
Notifications
You must be signed in to change notification settings - Fork 239
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
20 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,6 +39,7 @@ type Props = { | |
// "locked":(true if unmutable field like KMS), | ||
// "disabledTooltip": "display if message is disabled", | ||
// "hideToggle": true (if you want to hide the toggle | ||
// "email": ["example@porter"] (if you want to add an email field to pass in) | ||
// } | ||
const soc2DataDefault: Soc2Data = { | ||
soc2_checks: { | ||
|
@@ -76,15 +77,15 @@ const soc2DataDefault: Soc2Data = { | |
info: "", | ||
status: "", | ||
}, | ||
"Enable CloudWatch Alarms": { | ||
message: | ||
"Enter Email List", | ||
link: "https://docs.aws.amazon.com/AmazonECR/latest/userguide/image-scanning-enhanced.html", | ||
enabled: false, | ||
info: "", | ||
status: "", | ||
email: ["[email protected]"], // this is a special case for email | ||
}, | ||
// "Enable CloudWatch Alarms": { | ||
// message: | ||
// "Enter Email List", | ||
// link: "https://docs.aws.amazon.com/AmazonECR/latest/userguide/image-scanning-enhanced.html", | ||
// enabled: false, | ||
// info: "", | ||
// status: "", | ||
// email: [""], // this is a special case for email | ||
// }, | ||
}, | ||
}; | ||
|
||
|
@@ -171,6 +172,7 @@ const Compliance: React.FC<Props> = (props) => { | |
soc2Data.soc2_checks["Cluster Secret Encryption"].enabled; | ||
const ecrScanningEnabled = | ||
soc2Data.soc2_checks["Enhanced Image Vulnerability Scanning"].enabled; | ||
//pass in cloudwatch emails here to cluster contract to be saved | ||
|
||
const contractData = JSON.parse(atob(base64Contract)); | ||
const latestCluster: Cluster = Cluster.fromJson(contractData.cluster, { | ||
|
@@ -338,6 +340,12 @@ const Compliance: React.FC<Props> = (props) => { | |
enabled: eksValues.enableEcrScanning, | ||
status: determineStatus(eksValues.enableEcrScanning), | ||
}, | ||
// set Cloudwatch Fields here example: | ||
// "Enable CloudWatch Alarms": { | ||
// ...prevSoc2Data.soc2_checks["Enable CloudWatch Alarms"], | ||
// enabled: eksValues.enableCloudwatchAlarms, | ||
// status: determineStatus(eksValues.enableCloudwatchAlarms), | ||
// email: eksValues.cloudwatchEmails, | ||
}, | ||
}; | ||
}); | ||
|