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

{Compute} Bump version disks 2020-05-01, compute 2020-06-01, Double encryption of disk encryption set #14212

Merged
merged 21 commits into from
Jul 9, 2020

Conversation

qwordy
Copy link
Member

@qwordy qwordy commented Jul 3, 2020

Description

Resolve #14107

Double encryption at rest is the continuation of server-side encryption (SSE) at rest with customer managed keys (CMK) that we recently announced in GA for managed disks. SSE with CMK allows customers to encrypt the data stored on managed disks at rest with AES 256 encryption. High security sensitive customers who are concerned of the risk associated with any particular encryption algorithm, implementation , or key being compromised can now opt for additional layer of encryption using a different encryption algorithm/mode using platform managed encryption keys.

To enable two layers of encryption at rest for Managed Disks attached to VMs/VMSS, you must must create a DiskEncryptionSet with encryptionType set as EncryptionAtRestWithPlatformAndCustomerKeys and then associate the DiskEncryptionSet to managed disks.

Fix an API version issue of disk encryption set. We should set operation group explicitly!

Testing Guide

az disk-encryption-set create -g {rg} -n {des1} --key-url {kid} --source-vault {vault} --encryption-type EncryptionAtRestWithPlatformAndCustomerKeys

Then you can create disk, VM or VMSS with it.

History Notes

[Compute] Bump version disks 2020-05-01, compute 2020-06-01
[Compute] Double encryption of disk encryption set


This checklist is used to make sure that common guidelines for a pull request are followed.

@yonzhan
Copy link
Collaborator

yonzhan commented Jul 3, 2020

Compute

@yungezz yungezz added the Compute az vm/vmss/image/disk/snapshot label Jul 4, 2020
Copy link
Member

@jiasli jiasli left a comment

Choose a reason for hiding this comment

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

Core LGTM.

@qwordy
Copy link
Member Author

qwordy commented Jul 7, 2020

Wait for Python SDK release.

@qwordy qwordy requested a review from zhoxing-ms as a code owner July 7, 2020 08:24
@qwordy qwordy requested a review from jsntcy as a code owner July 7, 2020 12:21
@qwordy
Copy link
Member Author

qwordy commented Jul 8, 2020

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@qwordy qwordy mentioned this pull request Jul 8, 2020
@qwordy qwordy changed the title {Compute} Bump version disks 2020-05-01, compute 2020-06-01 {Compute} Bump version disks 2020-05-01, compute 2020-06-01, Double encryption of disk encryption set Jul 9, 2020
@@ -934,6 +934,8 @@ def load_arguments(self, _):
c.argument('disk_encryption_set_name', disk_encryption_set_name)
c.argument('key_url', help='URL pointing to a key or secret in KeyVault.')
c.argument('source_vault', help='Name or ID of the KeyVault containing the key or secret.')
c.argument('encryption_type', arg_type=get_enum_type(['EncryptionAtRestWithPlatformKey', 'EncryptionAtRestWithCustomerKey', 'EncryptionAtRestWithPlatformAndCustomerKeys']),
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we use the original enum type instead of hardcode the values ?

Copy link
Member Author

Choose a reason for hiding this comment

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

We should

# if encryption_type is not None:
# encryption = Encryption(type=encryption_type, disk_encryption_set_id=disk_encryption_set)
# else:
# encryption = None
Copy link
Contributor

@arrownj arrownj Jul 9, 2020

Choose a reason for hiding this comment

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

If it's not used anymore, it's better to remove it directly.

@qwordy
Copy link
Member Author

qwordy commented Jul 9, 2020

I will fix comments and a test failure in another PR. Let's merge version bump first to unblock others' work.

@qwordy qwordy self-assigned this Jul 9, 2020
@qwordy qwordy merged commit 4585b78 into Azure:dev Jul 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Compute az vm/vmss/image/disk/snapshot
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CLI Support for enabling double encryption for Managed Disks