Skip to content

Commit

Permalink
Merge pull request #54 from aquasecurity/fix-avd-ksv-01010
Browse files Browse the repository at this point in the history
fix(checks): Use correct input for AVD-KSV-01010
  • Loading branch information
simar7 authored Jan 15, 2024
2 parents d546428 + b8978d9 commit 3f16e8a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
16 changes: 11 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,7 @@ fmt-rego:
opa fmt -w rules/

.PHONY: bundle
bundle:
./scripts/bundle.sh
cp bundle.tar.gz scripts/bundle.tar.gz
go run ./scripts/verify-bundle.go
rm scripts/bundle.tar.gz
bundle: create-bundle verify-bundle

.PHONY: id
id:
Expand All @@ -33,3 +29,13 @@ docs:
.PHONY: docs-test
docs-test:
go test -v ./cmd/avd_generator/...

.PHONY: create-bundle
create-bundle:
./scripts/bundle.sh

.PHONY: verify-bundle
verify-bundle:
cp bundle.tar.gz scripts/bundle.tar.gz
go run ./scripts/verify-bundle.go
rm scripts/bundle.tar.gz
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ ConfigMapWithSensitive[sensitiveData] {

ConfigMapWithSensitive[sensitiveData] {
input.kind == "ConfigMap"
values = split(input.data[d], "\n")
values = split(kubernetes.object.data[d], "\n")
val = split(values[v], ":")
regex.match(patternForIbanAndPassport[p], val[v])
sensitiveData = d
Expand Down

0 comments on commit 3f16e8a

Please sign in to comment.