Skip to content

All Rules

The GCP Config Connector lexicon provides 29 rules: 3 lint rules and 26 post-synth checks.

IDSeverityCategoryDescription
WGC001warningsecurityHardcoded GCP Project ID
WGC002warningsecurityHardcoded GCP Region/Zone
WGC003warningsecurityPublic IAM Binding

Post-synth checks validate the serialized output after the build pipeline completes.

IDDescription
WGC101StorageBucket or SQLInstance without encryption configuration
WGC102allUsers/allAuthenticatedUsers detected in serialized Config Connector YAML
WGC103Config Connector resource without cnrm.cloud.google.com/project-id annotation
WGC104StorageBucket without uniformBucketLevelAccess enabled
WGC105Cloud SQL instance with public 0.0.0.0/0 in authorizedNetworks
WGC106Config Connector resource without cnrm.cloud.google.com/deletion-policy annotation
WGC107StorageBucket without versioning enabled
WGC108SQLInstance without backup configuration enabled
WGC109ComputeFirewall with sourceRanges containing 0.0.0.0/0
WGC110KMS CryptoKey without rotation period configured
WGC111Resource reference points to a name not defined in the output
WGC112Config Connector resource has missing or invalid apiVersion
WGC113Config Connector resource uses an alpha API version
WGC201Config Connector resource without app.kubernetes.io/managed-by label
WGC202ContainerCluster without workload identity configuration
WGC203ContainerNodePool using overly broad cloud-platform OAuth scope
WGC204ComputeInstance without shielded VM configuration
WGC301No IAMAuditConfig resource found in output — audit logging may not be configured
WGC302No Service resource found — GCP APIs may not be explicitly enabled
WGC303No AccessContextManager ServicePerimeter found — VPC Service Controls not configured
WGC401Config Connector resource spec contains unknown field
WGC402Config Connector resource is missing a required spec field
WGC403Config Connector resource spec field has wrong type or structure
WGC501Org Policy guardrail not enforced — a disabled policy constrains nothing
WGC502Org Policy guardrail defines no rules — it binds its constraint to nothing
WGC503IAMAuditConfig captures nothing or exempts members — the audit sink is scoped down