-
Notifications
You must be signed in to change notification settings - Fork 697
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Azure - VM Disk Double Encryption Plugin #1813
Azure - VM Disk Double Encryption Plugin #1813
Conversation
a1a73cb
to
66930c4
Compare
domain: 'Compute', | ||
description: 'Ensures that VM disks are encrypted at rest using both platform and customer managed keys.', | ||
more_info: 'Using double encryption for VM disks adds an extra layer of protection using a different encryption algorithm/mode at the infrastructure layer using platform managed encryption keys and provides an additional level of security if one of the keys is compromised.', | ||
recommended_action: 'Enable double encryption for all VM disks.', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (!disk.id) continue; | ||
|
||
if (disk.encryption && disk.encryption.type && disk.encryption.type.toLowerCase() === 'encryptionatrestwithplatformandcustomerkeys'){ | ||
helpers.addResult(results, 0, 'VM disk is encrypted using both platform and customer managed keys', location, disk.id); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think we should have the message as VM Disk has double encryption enabled. ( Mapping as plugin name )
if (disk.encryption && disk.encryption.type && disk.encryption.type.toLowerCase() === 'encryptionatrestwithplatformandcustomerkeys'){ | ||
helpers.addResult(results, 0, 'VM disk is encrypted using both platform and customer managed keys', location, disk.id); | ||
} else { | ||
let message = 'VM disk is not double encrypted'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let message = 'VM disk is not double encrypted'; | |
let message = 'VM disk does not have double encryption enabled.'; |
@@ -39,6 +39,7 @@ module.exports = { | |||
var found = false; | |||
for (var i in disks.data) { | |||
var disk = disks.data[i]; | |||
console.log(disk); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
console.log(disk); |
bf2eca1
to
cc40aa9
Compare
d3d8836
to
feb4559
Compare
2eac639
to
b720d0e
Compare
No description provided.