I am trying to implement gcp cmek with cross service account . Means , GKE will be present in one GCP project and we will get the key from another gcp project which i will use in my gke project to encrypt the disks/storage etc . Like Customer-managed key .
When i am trying to get the PVC provisioning getting below error . I have check the service account is already given access to role “Cloud KMS CryptoKey Encrypter/Decrypter” at customer account .
Any suggestions why i am seeing this error ?
Warning ProvisioningFailed 6s (x5 over 20s) pd.csi.storage.gke.io_gke-da3df78f254241feb438-303c-8ce8-vm_fb6f748a-2751-40ce-8e99-5b1524d6b64f failed to provision volume with StorageCla │
│ ss “csi-gce-pd-cmek”: rpc error: code = Unknown desc = CreateVolume failed to create single zonal disk pvc-b4c4fcd6-9d33-4998-bd8e-10c90f262c6d: failed to insert zonal disk: unknown Insert dis │
│ k error: googleapi: Error 400: Cloud KMS error when using key projects/chris-kms-project/locations/us-west1/keyRings/XXX/cryptoKeyVersion │
│ s/1: Permission ‘cloudkms.cryptoKeyVersions.useToEncrypt’ denied on resource ‘projects/chris-kms-project/locations/us-west1/keyRings/XXX-cmk-test-uswest1key’ │
│ (or it may not exist)., kmsPermissionDenied