Skip to main content
NetApp Knowledge Base

Disks not getting encrypted when using CMEK in GCP

Views:
269
Visibility:
Public
Votes:
0
Category:
cloud-manager
Specialty:
bluexp
Last Updated:

Applies to

  • Customer-Managed Encryption Keys (CMEK)
  • Google Cloud (GCP)
  • NetApp Cloud Volumes ONTAP
  • NetApp Cloud Manager

Issue

  • WorkingEnvironment gets deployed via JSON template with "gcpEncryptionParameters" set to use CMEK
  • Deployment succeeds but examining the 'Describe Disks by Label' -task in the Timeline, the disks aren`t getting encrypted with the specified keys:
 
Create Disk
Success
{
"name": "gcpcvo-vm2datadisk1",
"_result": {
"operationType": "insert",
},
"image": null,
"sizeGb": 4096,
"labels": {
"working-environment-id": "vsaworkingenvironment-xxyyzz"
},
"diskType": "pd-ssd",
"encryptionKey": null
}
 
  • The following error can be found in the server.log
Error:Operation Deploy failed with error Error: Code: RESOURCE_ERROR Target: /deployments/gcpcvo-deployment/resources/gcpcvo-disk-xxyyzz Message: {"ResourceType":"compute.v1.disk","ResourceErrorCode":"400","ResourceErrorMessage":{"code":400,"errors":[{"domain":"global","message":"Cloud KMS error when using key projects/project-cvo/locations/gcp-region/keyRings/mykeyring/cryptoKeys/key: Permission 'cloudkms.cryptoKeyVersions.useToEncrypt' denied on resource 'projects/project-cvo/locations/gcp-region/keyRings/mykeyring/cryptoKeys/key' (or it may not exist).","reason":"kmsPermissionDenied"}],"message":"Cloud KMS error when using key projects/project-cvo/locations/gcp-region/keyRings/mykeyring/cryptoKeys/key: Permission 'cloudkms.cryptoKeyVersions.useToEncrypt' denied on resource 'projects/project-cvo/locations/gcp-region/keyRings/mykeyring/cryptoKeys/key' (or it may not exist).","statusMessage":"Bad Request","requestPath":"https://compute.googleapis.com/compu...gcp-zone/disks","httpMethod":"POST"}}

 

Sign in to view the entire content of this KB article.

New to NetApp?

Learn more about our award-winning Support

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.