Skip to content

Commit

Permalink
mondoo-k8s-sec: fix props
Browse files Browse the repository at this point in the history
Signed-off-by: Manuel Weber <[email protected]>
  • Loading branch information
mm-weber committed Jun 17, 2024
1 parent 3c3a9c1 commit d991304
Showing 1 changed file with 14 additions and 28 deletions.
42 changes: 14 additions & 28 deletions core/mondoo-kubernetes-security.mql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4254,10 +4254,8 @@ queries:
- uid: excludedByFixedImages
title: Exclude containers from the check when using fixed images using hash values.
mql: |
return [
# Add container images <image-name>@<digest>
# image@sha256:45b23dee08af5e43a7fea6c4cf9c25ccf269ee113168c19722f87876677c5cb2
]
# Add a list of container images in the format <image-name>@<digest>, such as: return ['image@sha256:45b23dee08af5e43a7fea6c4cf9c25ccf269ee113168c19722f87876677c5cb2', 'image@sha256:12a23dee08af5e43a7fea6c4cf9c25ccf269ee113168c19722f87876677c5123']
return ['']
mql: |
k8s.pod.ephemeralContainers
.where(image.in(props.excludedByFixedImages) != true)
Expand Down Expand Up @@ -4308,10 +4306,8 @@ queries:
- uid: excludedByFixedImages
title: Exclude containers from the check when using fixed images using hash values.
mql: |
return [
# Add container images <image-name>@<digest>
# image@sha256:45b23dee08af5e43a7fea6c4cf9c25ccf269ee113168c19722f87876677c5cb2
]
# Add a list of container images in the format <image-name>@<digest>, such as: return ['image@sha256:45b23dee08af5e43a7fea6c4cf9c25ccf269ee113168c19722f87876677c5cb2', 'image@sha256:12a23dee08af5e43a7fea6c4cf9c25ccf269ee113168c19722f87876677c5123']
return ['']
mql: |
k8s.cronjob.initContainers
.where(image.in(props.excludedByFixedImages) != true)
Expand Down Expand Up @@ -4359,10 +4355,8 @@ queries:
- uid: excludedByFixedImages
title: Exclude containers from the check when using fixed images using hash values.
mql: |
return [
# Add container images <image-name>@<digest>
# image@sha256:45b23dee08af5e43a7fea6c4cf9c25ccf269ee113168c19722f87876677c5cb2
]
# Add a list of container images in the format <image-name>@<digest>, such as: return ['image@sha256:45b23dee08af5e43a7fea6c4cf9c25ccf269ee113168c19722f87876677c5cb2', 'image@sha256:12a23dee08af5e43a7fea6c4cf9c25ccf269ee113168c19722f87876677c5123']
return ['']
mql: |
k8s.statefulset.initContainers
.where(image.in(props.excludedByFixedImages) != true)
Expand Down Expand Up @@ -4410,10 +4404,8 @@ queries:
- uid: excludedByFixedImages
title: Exclude containers from the check when using fixed images using hash values.
mql: |
return [
# Add container images <image-name>@<digest>
# image@sha256:45b23dee08af5e43a7fea6c4cf9c25ccf269ee113168c19722f87876677c5cb2
]
# Add a list of container images in the format <image-name>@<digest>, such as: return ['image@sha256:45b23dee08af5e43a7fea6c4cf9c25ccf269ee113168c19722f87876677c5cb2', 'image@sha256:12a23dee08af5e43a7fea6c4cf9c25ccf269ee113168c19722f87876677c5123']
return ['']
mql: |
k8s.deployment.initContainers
.where(image.in(props.excludedByFixedImages) != true)
Expand Down Expand Up @@ -4461,10 +4453,8 @@ queries:
- uid: excludedByFixedImages
title: Exclude containers from the check when using fixed images using hash values.
mql: |
return [
# Add container images <image-name>@<digest>
# image@sha256:45b23dee08af5e43a7fea6c4cf9c25ccf269ee113168c19722f87876677c5cb2
]
# Add a list of container images in the format <image-name>@<digest>, such as: return ['image@sha256:45b23dee08af5e43a7fea6c4cf9c25ccf269ee113168c19722f87876677c5cb2', 'image@sha256:12a23dee08af5e43a7fea6c4cf9c25ccf269ee113168c19722f87876677c5123']
return ['']
mql: |
k8s.job.initContainers
.where(image.in(props.excludedByFixedImages) != true)
Expand Down Expand Up @@ -4512,10 +4502,8 @@ queries:
- uid: excludedByFixedImages
title: Exclude containers from the check when using fixed images using hash values.
mql: |
return [
# Add container images <image-name>@<digest>
# image@sha256:45b23dee08af5e43a7fea6c4cf9c25ccf269ee113168c19722f87876677c5cb2
]
# Add a list of container images in the format <image-name>@<digest>, such as: return ['image@sha256:45b23dee08af5e43a7fea6c4cf9c25ccf269ee113168c19722f87876677c5cb2', 'image@sha256:12a23dee08af5e43a7fea6c4cf9c25ccf269ee113168c19722f87876677c5123']
return ['']
mql: |
k8s.replicaset.containers
.where(image.in(props.excludedByFixedImages) != true)
Expand Down Expand Up @@ -4563,10 +4551,8 @@ queries:
- uid: excludedByFixedImages
title: Exclude containers from the check when using fixed images using hash values.
mql: |
return [
# Add container images <image-name>@<digest>
# image@sha256:45b23dee08af5e43a7fea6c4cf9c25ccf269ee113168c19722f87876677c5cb2
]
# Add a list of container images in the format <image-name>@<digest>, such as: return ['image@sha256:45b23dee08af5e43a7fea6c4cf9c25ccf269ee113168c19722f87876677c5cb2', 'image@sha256:12a23dee08af5e43a7fea6c4cf9c25ccf269ee113168c19722f87876677c5123']
return ['']
mql: |
k8s.daemonset.containers
.where(image.in(props.excludedByFixedImages) != true)
Expand Down

0 comments on commit d991304

Please sign in to comment.