Skip to content

Commit

Permalink
[Tests] Fix minor errors
Browse files Browse the repository at this point in the history
  • Loading branch information
caruccio committed Jan 23, 2025
1 parent c2bd484 commit 90bfdb2
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ match:
resource: jobs
validations:
- expression: >
allContainers.all(c, !c.image.contains("k8s.grc.io"))
allContainers.all(c, !c.image.contains("not-allowed.io"))
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@
app: nginx
spec:
containers:
- name: reg-fail1
image: not-ok-registry.com:80/nginx@sha256:asdf
- name: reg-fail2
image: also-not-ok-registry.com:80/nginx@sha256:asdf
- name: reg-ok
image: k8s.grc.io/pause
- name: reg-ok1
image: ok-registry.com:80/nginx@sha256:asdf
- name: reg-ok2
image: also-ok-registry.com:80/nginx@sha256:asdf
- name: reg-fail
image: not-allowed.io/pause
2 changes: 1 addition & 1 deletion internal/builtins/mitre/M-203_ssh_server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ validations:
!(p.port in params.sshPorts) &&
!(p.?targetPort.orValue(0) in params.sshPorts)
)
message: "Service could be routing to SSH server"
message: "Service should not be routing to SSH server"
- expression: >
allContainers.all(container,
Expand Down
2 changes: 1 addition & 1 deletion internal/builtins/mitre/M-203_ssh_server_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
- name: "Service with SSH port"
pass: false
message: "Service could be routing to SSH server"
message: "Service should not be routing to SSH server"
input: |
apiVersion: v1
kind: Service
Expand Down

0 comments on commit 90bfdb2

Please sign in to comment.