gcp-certmanager-template-has-policy
match (record)
{
"field": "iamPolicy.bindings",
"resource_type": "google.privateca.CertificateTemplate"
}
emit
| source type | * |
|---|---|
| target type | Policy |
| source | <certificate template node (Policy)> |
| target | <template ResourcePolicy node> |
Narrative
{template.name} has an IAM allow policy governing who may use it for issuance.
Raw rule rules/explicit/gcp-certmanager.yaml
id: gcp-certmanager-template-has-policy
emits: HasPolicy
applies_to:
- gcp
match_record:
resource_type: google.privateca.CertificateTemplate
field: iamPolicy.bindings
emit:
source_type: '*'
target_type: Policy
source: <certificate template node (Policy)>
target: <template ResourcePolicy node>
api_source: privateca.projects.locations.certificateTemplates.getIamPolicy
evidence_field: iamPolicy.bindings
narrative: '{template.name} has an IAM allow policy governing who may use it for issuance.'