├── .github ├── dependabot.yml └── workflows │ └── golangci-lint.yml ├── .gitignore ├── CONTRIBUTING.md ├── Dockerfile ├── LICENSE ├── Makefile ├── README.md ├── api └── validator.proto ├── cmd ├── policy-tool │ ├── debug │ │ └── debug.go │ ├── lint │ │ └── lint.go │ └── policy-tool.go └── server │ └── main.go ├── go.mod ├── go.sum ├── internal └── fuzz │ ├── README.md │ ├── corpus │ ├── 01840ba242c9a2e6b78e4129698846caf86b45c6 │ ├── 3007e4c1fbd18d794a1388e81df354a14fe32e94 │ ├── 3ba9c2fa41dd20a8b92a9b56688526f7dd49d8a2 │ ├── 56a40b19db9bb5c98894849ac3520353e9476ed5 │ ├── 674d3ff9f45553f5429054797e9e69ddcd332951 │ ├── aa12af03d5882f2b994bc7b89e2f9857da9e7069 │ ├── aad1faa3a44c083cd1a1ee71ef7a698aafb2eec4 │ ├── b896d5023f02ef7bc760c4b70376b0a817df17e9 │ └── bee8b4bfda220f8c185b48cc95488dc63d8c3097 │ └── fuzz.go ├── main.go ├── pkg ├── api │ └── validator │ │ └── validator.pb.go ├── asset │ ├── asset.go │ ├── asset_test.go │ ├── proto_util.go │ └── proto_util_test.go ├── gcptarget │ ├── gcptarget.go │ ├── gcptarget_test.go │ ├── matcher.go │ └── matcher_test.go ├── gcv │ ├── configs │ │ ├── config.go │ │ ├── config_test.go │ │ ├── file.go │ │ ├── file_test.go │ │ ├── openapischema.go │ │ └── templateschema.go │ ├── insight.go │ ├── oldconfigs │ │ ├── config.go │ │ └── config_test.go │ ├── parallelvalidator.go │ ├── parallelvalidator_test.go │ ├── result.go │ ├── result_test.go │ ├── validator.go │ └── validator_test.go ├── multierror │ └── multierror.go ├── targettesting │ └── targettest.go └── tftarget │ ├── matcher.go │ ├── matcher_test.go │ ├── tftarget.go │ └── tftarget_test.go └── test └── cf ├── constraints ├── all_namespace_must_have_cost_center.yaml ├── cf_gcp_storage_logging_constraint.yaml ├── gcp_storage_logging_constraint.yaml └── tf_compute_instance_mt_constraint.yaml ├── invalid_templates └── cf_http_send_v1.yaml ├── library ├── constraints.rego └── util.rego └── templates ├── cf_gcp_storage_logging_template.yaml ├── gcp_bq_dataset_location_v1.yaml ├── gcp_storage_logging_template.yaml ├── k8srequiredlabels_template.yaml └── tf_compute_instance_machine_type.yaml /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/config-validator/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/workflows/golangci-lint.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/config-validator/HEAD/.github/workflows/golangci-lint.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/config-validator/HEAD/.gitignore -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/config-validator/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/config-validator/HEAD/Dockerfile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/config-validator/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/config-validator/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/config-validator/HEAD/README.md -------------------------------------------------------------------------------- /api/validator.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/config-validator/HEAD/api/validator.proto -------------------------------------------------------------------------------- /cmd/policy-tool/debug/debug.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/config-validator/HEAD/cmd/policy-tool/debug/debug.go -------------------------------------------------------------------------------- /cmd/policy-tool/lint/lint.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/config-validator/HEAD/cmd/policy-tool/lint/lint.go -------------------------------------------------------------------------------- /cmd/policy-tool/policy-tool.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/config-validator/HEAD/cmd/policy-tool/policy-tool.go -------------------------------------------------------------------------------- /cmd/server/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/config-validator/HEAD/cmd/server/main.go -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/config-validator/HEAD/go.mod -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/config-validator/HEAD/go.sum -------------------------------------------------------------------------------- /internal/fuzz/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/config-validator/HEAD/internal/fuzz/README.md -------------------------------------------------------------------------------- /internal/fuzz/corpus/01840ba242c9a2e6b78e4129698846caf86b45c6: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/config-validator/HEAD/internal/fuzz/corpus/01840ba242c9a2e6b78e4129698846caf86b45c6 -------------------------------------------------------------------------------- /internal/fuzz/corpus/3007e4c1fbd18d794a1388e81df354a14fe32e94: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/config-validator/HEAD/internal/fuzz/corpus/3007e4c1fbd18d794a1388e81df354a14fe32e94 -------------------------------------------------------------------------------- /internal/fuzz/corpus/3ba9c2fa41dd20a8b92a9b56688526f7dd49d8a2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/config-validator/HEAD/internal/fuzz/corpus/3ba9c2fa41dd20a8b92a9b56688526f7dd49d8a2 -------------------------------------------------------------------------------- /internal/fuzz/corpus/56a40b19db9bb5c98894849ac3520353e9476ed5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/config-validator/HEAD/internal/fuzz/corpus/56a40b19db9bb5c98894849ac3520353e9476ed5 -------------------------------------------------------------------------------- /internal/fuzz/corpus/674d3ff9f45553f5429054797e9e69ddcd332951: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/config-validator/HEAD/internal/fuzz/corpus/674d3ff9f45553f5429054797e9e69ddcd332951 -------------------------------------------------------------------------------- /internal/fuzz/corpus/aa12af03d5882f2b994bc7b89e2f9857da9e7069: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/config-validator/HEAD/internal/fuzz/corpus/aa12af03d5882f2b994bc7b89e2f9857da9e7069 -------------------------------------------------------------------------------- /internal/fuzz/corpus/aad1faa3a44c083cd1a1ee71ef7a698aafb2eec4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/config-validator/HEAD/internal/fuzz/corpus/aad1faa3a44c083cd1a1ee71ef7a698aafb2eec4 -------------------------------------------------------------------------------- /internal/fuzz/corpus/b896d5023f02ef7bc760c4b70376b0a817df17e9: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/config-validator/HEAD/internal/fuzz/corpus/b896d5023f02ef7bc760c4b70376b0a817df17e9 -------------------------------------------------------------------------------- /internal/fuzz/corpus/bee8b4bfda220f8c185b48cc95488dc63d8c3097: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/config-validator/HEAD/internal/fuzz/corpus/bee8b4bfda220f8c185b48cc95488dc63d8c3097 -------------------------------------------------------------------------------- /internal/fuzz/fuzz.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/config-validator/HEAD/internal/fuzz/fuzz.go -------------------------------------------------------------------------------- /main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/config-validator/HEAD/main.go -------------------------------------------------------------------------------- /pkg/api/validator/validator.pb.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/config-validator/HEAD/pkg/api/validator/validator.pb.go -------------------------------------------------------------------------------- /pkg/asset/asset.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/config-validator/HEAD/pkg/asset/asset.go -------------------------------------------------------------------------------- /pkg/asset/asset_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/config-validator/HEAD/pkg/asset/asset_test.go -------------------------------------------------------------------------------- /pkg/asset/proto_util.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/config-validator/HEAD/pkg/asset/proto_util.go -------------------------------------------------------------------------------- /pkg/asset/proto_util_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/config-validator/HEAD/pkg/asset/proto_util_test.go -------------------------------------------------------------------------------- /pkg/gcptarget/gcptarget.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/config-validator/HEAD/pkg/gcptarget/gcptarget.go -------------------------------------------------------------------------------- /pkg/gcptarget/gcptarget_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/config-validator/HEAD/pkg/gcptarget/gcptarget_test.go -------------------------------------------------------------------------------- /pkg/gcptarget/matcher.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/config-validator/HEAD/pkg/gcptarget/matcher.go -------------------------------------------------------------------------------- /pkg/gcptarget/matcher_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/config-validator/HEAD/pkg/gcptarget/matcher_test.go -------------------------------------------------------------------------------- /pkg/gcv/configs/config.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/config-validator/HEAD/pkg/gcv/configs/config.go -------------------------------------------------------------------------------- /pkg/gcv/configs/config_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/config-validator/HEAD/pkg/gcv/configs/config_test.go -------------------------------------------------------------------------------- /pkg/gcv/configs/file.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/config-validator/HEAD/pkg/gcv/configs/file.go -------------------------------------------------------------------------------- /pkg/gcv/configs/file_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/config-validator/HEAD/pkg/gcv/configs/file_test.go -------------------------------------------------------------------------------- /pkg/gcv/configs/openapischema.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/config-validator/HEAD/pkg/gcv/configs/openapischema.go -------------------------------------------------------------------------------- /pkg/gcv/configs/templateschema.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/config-validator/HEAD/pkg/gcv/configs/templateschema.go -------------------------------------------------------------------------------- /pkg/gcv/insight.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/config-validator/HEAD/pkg/gcv/insight.go -------------------------------------------------------------------------------- /pkg/gcv/oldconfigs/config.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/config-validator/HEAD/pkg/gcv/oldconfigs/config.go -------------------------------------------------------------------------------- /pkg/gcv/oldconfigs/config_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/config-validator/HEAD/pkg/gcv/oldconfigs/config_test.go -------------------------------------------------------------------------------- /pkg/gcv/parallelvalidator.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/config-validator/HEAD/pkg/gcv/parallelvalidator.go -------------------------------------------------------------------------------- /pkg/gcv/parallelvalidator_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/config-validator/HEAD/pkg/gcv/parallelvalidator_test.go -------------------------------------------------------------------------------- /pkg/gcv/result.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/config-validator/HEAD/pkg/gcv/result.go -------------------------------------------------------------------------------- /pkg/gcv/result_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/config-validator/HEAD/pkg/gcv/result_test.go -------------------------------------------------------------------------------- /pkg/gcv/validator.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/config-validator/HEAD/pkg/gcv/validator.go -------------------------------------------------------------------------------- /pkg/gcv/validator_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/config-validator/HEAD/pkg/gcv/validator_test.go -------------------------------------------------------------------------------- /pkg/multierror/multierror.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/config-validator/HEAD/pkg/multierror/multierror.go -------------------------------------------------------------------------------- /pkg/targettesting/targettest.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/config-validator/HEAD/pkg/targettesting/targettest.go -------------------------------------------------------------------------------- /pkg/tftarget/matcher.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/config-validator/HEAD/pkg/tftarget/matcher.go -------------------------------------------------------------------------------- /pkg/tftarget/matcher_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/config-validator/HEAD/pkg/tftarget/matcher_test.go -------------------------------------------------------------------------------- /pkg/tftarget/tftarget.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/config-validator/HEAD/pkg/tftarget/tftarget.go -------------------------------------------------------------------------------- /pkg/tftarget/tftarget_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/config-validator/HEAD/pkg/tftarget/tftarget_test.go -------------------------------------------------------------------------------- /test/cf/constraints/all_namespace_must_have_cost_center.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/config-validator/HEAD/test/cf/constraints/all_namespace_must_have_cost_center.yaml -------------------------------------------------------------------------------- /test/cf/constraints/cf_gcp_storage_logging_constraint.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/config-validator/HEAD/test/cf/constraints/cf_gcp_storage_logging_constraint.yaml -------------------------------------------------------------------------------- /test/cf/constraints/gcp_storage_logging_constraint.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/config-validator/HEAD/test/cf/constraints/gcp_storage_logging_constraint.yaml -------------------------------------------------------------------------------- /test/cf/constraints/tf_compute_instance_mt_constraint.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/config-validator/HEAD/test/cf/constraints/tf_compute_instance_mt_constraint.yaml -------------------------------------------------------------------------------- /test/cf/invalid_templates/cf_http_send_v1.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/config-validator/HEAD/test/cf/invalid_templates/cf_http_send_v1.yaml -------------------------------------------------------------------------------- /test/cf/library/constraints.rego: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/config-validator/HEAD/test/cf/library/constraints.rego -------------------------------------------------------------------------------- /test/cf/library/util.rego: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/config-validator/HEAD/test/cf/library/util.rego -------------------------------------------------------------------------------- /test/cf/templates/cf_gcp_storage_logging_template.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/config-validator/HEAD/test/cf/templates/cf_gcp_storage_logging_template.yaml -------------------------------------------------------------------------------- /test/cf/templates/gcp_bq_dataset_location_v1.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/config-validator/HEAD/test/cf/templates/gcp_bq_dataset_location_v1.yaml -------------------------------------------------------------------------------- /test/cf/templates/gcp_storage_logging_template.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/config-validator/HEAD/test/cf/templates/gcp_storage_logging_template.yaml -------------------------------------------------------------------------------- /test/cf/templates/k8srequiredlabels_template.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/config-validator/HEAD/test/cf/templates/k8srequiredlabels_template.yaml -------------------------------------------------------------------------------- /test/cf/templates/tf_compute_instance_machine_type.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/config-validator/HEAD/test/cf/templates/tf_compute_instance_machine_type.yaml --------------------------------------------------------------------------------