Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CheckEnableEncryption = rules.Register( rules.Rule{ AVDID: "AVD-AWS-0018", Provider: provider.AWSProvider, Service: "codebuild", ShortCode: "enable-encryption", Summary: "CodeBuild Project artifacts encryption should not be disabled", Impact: "CodeBuild project artifacts are unencrypted", Resolution: "Enable encryption for CodeBuild project artifacts", Explanation: `All artifacts produced by your CodeBuild project pipeline should always be encrypted`, Links: []string{ "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-artifacts.html", "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html", }, Terraform: &rules.EngineMetadata{ GoodExamples: terraformEnableEncryptionGoodExamples, BadExamples: terraformEnableEncryptionBadExamples, Links: terraformEnableEncryptionLinks, RemediationMarkdown: terraformEnableEncryptionRemediationMarkdown, }, CloudFormation: &rules.EngineMetadata{ GoodExamples: cloudFormationEnableEncryptionGoodExamples, BadExamples: cloudFormationEnableEncryptionBadExamples, Links: cloudFormationEnableEncryptionLinks, RemediationMarkdown: cloudFormationEnableEncryptionRemediationMarkdown, }, Severity: severity.High, }, func(s *state.State) (results rules.Results) { for _, project := range s.AWS.CodeBuild.Projects { if project.ArtifactSettings.EncryptionEnabled.IsFalse() { results.Add( "Encryption is not enabled for project artifacts.", &project, project.ArtifactSettings.EncryptionEnabled, ) } else { results.AddPassed(&project) } for _, setting := range project.SecondaryArtifactSettings { if setting.EncryptionEnabled.IsFalse() { results.Add( "Encryption is not enabled for secondary project artifacts.", &setting, setting.EncryptionEnabled, ) } else { results.AddPassed(&setting) } } } return }, )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.