gcp-kms-keyring-has-policy
match (record)
{
"field": "iamPolicy.bindings",
"resource_type": "google.cloud.kms.KeyRing"
}
emit
| source type | * |
|---|---|
| target type | Policy |
| source | <KeyRing node> |
| target | <KeyRing ResourcePolicy node> |
Narrative
{keyring.name} has an IAM allow policy inherited by every key in the ring.
Raw rule rules/explicit/gcp-kms.yaml
id: gcp-kms-keyring-has-policy
emits: HasPolicy
applies_to:
- gcp
match_record:
resource_type: google.cloud.kms.KeyRing
field: iamPolicy.bindings
emit:
source_type: '*'
target_type: Policy
source: <KeyRing node>
target: <KeyRing ResourcePolicy node>
api_source: cloudkms.projects.locations.keyRings.getIamPolicy
evidence_field: iamPolicy.bindings
narrative: '{keyring.name} has an IAM allow policy inherited by every key in the ring.'