gcp-certmanager-template-has-policy

explicit gcp emits HasPolicy

match (record)

{ "field": "iamPolicy.bindings", "resource_type": "google.privateca.CertificateTemplate" }

emit

source type*
target typePolicy
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.'
move · open · esc close