Skip to content
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

Conversation

mehakseedat63
Copy link
Collaborator

No description provided.

@mehakseedat63 mehakseedat63 force-pushed the azure/vm_disk_double_encryption branch 3 times, most recently from a1a73cb to 66930c4 Compare December 26, 2023 06:02
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.',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think we cannot enabled double encryption after vm disk is created
Screenshot 2023-12-29 at 1 45 15 PM

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);
Copy link
Collaborator

@alphadev4 alphadev4 Dec 29, 2023

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';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
console.log(disk);

@mehakseedat63 mehakseedat63 force-pushed the azure/vm_disk_double_encryption branch from bf2eca1 to cc40aa9 Compare January 22, 2024 05:58
@mehakseedat63 mehakseedat63 force-pushed the azure/vm_disk_double_encryption branch from d3d8836 to feb4559 Compare January 24, 2024 09:07
@mehakseedat63 mehakseedat63 force-pushed the azure/vm_disk_double_encryption branch from 2eac639 to b720d0e Compare January 30, 2024 17:36
@mehakseedat63 mehakseedat63 added readytogo PRs ready to merge and removed question labels Jan 30, 2024
@mehakseedat63 mehakseedat63 merged commit 89c4b05 into aquasecurity:master Feb 19, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants