GoogleCloudPlatform / policy-library

A library of constraint templates and sample constraints for Constraint Framework tools
Apache License 2.0
223 stars 129 forks source link

Request to add assetName as a field in GCPIAMAllowedBindingsConstraintV1 #330

Closed aimjwizards closed 4 years ago

aimjwizards commented 4 years ago

Currently we only have assetType to restrict the policy scope to this template.

Similar to what CAI real time export asset, we should have assetName to restrict the policy scope as well: ASSET_NAME is a list of asset full names that you want to receive change notifications for.

Use case: this allows users to place strict policy monitoring to a controlled list of assets. For example, assets with sensitive information should be carefully monitored and this rule can be used in this case if we extend the parameter to use assetName to specify target resources.