internal
Relationship type: many-to-many
IAM Policy Binding.Name = CryptoKey.CA10__name__c
We cannot do this check automatically.
-
List all Cloud KMS Cryptokeys.
gcloud kms keys list \
--keyring={{key-ring-name}} \
--location=global \
--format=json | jq '.[].name' -
Remove IAM policy binding for a KMS key to remove access to allUsers and allAuthenticatedUsers using the below command.
gcloud kms keys remove-iam-policy-binding {{key-name}} \
--keyring={{key-ring-name}} \
--location=global \
--member='allAuthenticatedUsers' \
--role='{{role}}' gcloud kms keys remove-iam-policy-binding {{key-name}} \
--keyring={{key-ring-name}} \
--location=global \
--member='allUsers' \
--role='{{role}}'