GoogleCloudPlatform / GoogleCloudPlatform/config-validator

Exclude doesn't support individual resources

Open
#49 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
Go
Stars
48
Forks
37
PR merge metrics
No merged PRs in 30d

Description

AFAIK there is no way to exclude just one resource (individual VM or instance) using the `exclude` parameter: is this expected ?

E.g: I tried the following in a rule to prevent public IPs on CloudSQL, but the exclude is not working:

```
match:
target: ["organization/*"]
exclude: ["//cloudsql.googleapis.com/projects//instances/my-db"]
```

or

```
match:
target: ["organization/*"]
exclude: ["organization//folder//project//cloudsqlinstance/"]
```

but excluding on the project level works (but might be inadequate for certain contexts):
```
match:
target: ["organization/*"]
exclude: ["organization//folder//project/"]
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.