GoogleCloudPlatform / config-validator

Golang library which provides functionality to evaluate GCP resources against Rego-based policies
Apache License 2.0
45 stars 34 forks source link

Add test case to verify what can match organizations/unknown #187

Closed iyabchen closed 2 years ago

iyabchen commented 2 years ago

One small change request. Also, it would be great to be able to provide organizations/unknown as the match parameter. I know you mentioned that gave you an error - could you share the error message or traceback if there is one?

Since unknown is not *, or **, or numbers, it throws error from this function https://github.com/GoogleCloudPlatform/config-validator/blob/master/pkg/gcptarget/gcptarget.go#L262