github.com/khulnasoft-lab/defsec@v1.0.5-0.20230827010352-5e9f46893d95/rules/cloud/policies/aws/workspaces/enable_disk_encryption.cf.go (about) 1 package workspaces 2 3 var cloudFormationEnableDiskEncryptionGoodExamples = []string{ 4 `--- 5 Resources: 6 GoodExample: 7 Type: AWS::WorkSpaces::Workspace 8 Properties: 9 RootVolumeEncryptionEnabled: true 10 UserVolumeEncryptionEnabled: true 11 UserName: "admin" 12 `, `{ 13 "Resources": { 14 "GoodExample": { 15 "Type": "AWS::WorkSpaces::Workspace", 16 "Properties": { 17 "RootVolumeEncryptionEnabled": true, 18 "UserVolumeEncryptionEnabled": true, 19 "UserName": "admin" 20 } 21 } 22 } 23 }`, 24 } 25 26 var cloudFormationEnableDiskEncryptionBadExamples = []string{ 27 `--- 28 Resources: 29 BadExample: 30 Type: AWS::WorkSpaces::Workspace 31 Properties: 32 RootVolumeEncryptionEnabled: false 33 UserVolumeEncryptionEnabled: false 34 UserName: "admin" 35 `, `{ 36 "Resources": { 37 "BadExample": { 38 "Type": "AWS::WorkSpaces::Workspace", 39 "Properties": { 40 "RootVolumeEncryptionEnabled": false, 41 "UserVolumeEncryptionEnabled": false, 42 "UserName": "admin" 43 } 44 } 45 } 46 }`, 47 } 48 49 var cloudFormationEnableDiskEncryptionLinks = []string{} 50 51 var cloudFormationEnableDiskEncryptionRemediationMarkdown = ``