gcp-secretmanager-has-policy
match (record)
{
"field": "iamPolicy.bindings",
"resource_type": "google.secretmanager.Secret"
}
emit
| source type | * |
|---|---|
| target type | Policy |
| source | <secret node> |
| target | <secret ResourcePolicy node> |
Narrative
{secret.name} has an IAM allow policy governing who may access it.
Raw rule rules/explicit/gcp-secretmanager.yaml
id: gcp-secretmanager-has-policy
emits: HasPolicy
applies_to:
- gcp
match_record:
resource_type: google.secretmanager.Secret
field: iamPolicy.bindings
emit:
source_type: '*'
target_type: Policy
source: <secret node>
target: <secret ResourcePolicy node>
api_source: secretmanager.projects.secrets.getIamPolicy
evidence_field: iamPolicy.bindings
narrative: '{secret.name} has an IAM allow policy governing who may access it.'