Skip to content

Commit 800c1ad

Browse files
maheshwarishikhaShikha Maheshwari
and
Shikha Maheshwari
authored
fix: remove checkov_skips for logdna agent (#341)
* test: temporary code without checkovs for logdna agent * fix: remove checkov_skips --------- Co-authored-by: Shikha Maheshwari <[email protected]>
1 parent e374360 commit 800c1ad

File tree

6 files changed

+0
-41
lines changed

6 files changed

+0
-41
lines changed

Diff for: chart/logdna-agent/templates/daemonset.yaml

-4
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ metadata:
88
app.kubernetes.io/instance: "{{ .Values.metadata.name }}"
99
# Extracts the first part before '@' from .Values.image.version, ensuring it's treated as a string.
1010
app.kubernetes.io/version: {{ .Values.image.version | default "" | toString | splitList "@" | first }}
11-
annotations:
12-
{{- range .Values.checkov_skips }}
13-
{{- . | toYaml | nindent 4 -}}
14-
{{- end }}
1511
spec:
1612
updateStrategy:
1713
type: RollingUpdate

Diff for: chart/logdna-agent/templates/role.yaml

-4
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ metadata:
88
app.kubernetes.io/instance: "{{ .Values.metadata.name }}"
99
# Extracts the first part before '@' from .Values.image.version, ensuring it's treated as a string.
1010
app.kubernetes.io/version: {{ .Values.image.version | default "" | toString | splitList "@" | first }}
11-
annotations:
12-
{{- range .Values.checkov_skips }}
13-
{{- . | toYaml | nindent 4 -}}
14-
{{- end }}
1511
rules:
1612
- apiGroups: [""]
1713
resources: ["configmaps"]

Diff for: chart/logdna-agent/templates/rolebinding.yaml

-4
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ metadata:
88
app.kubernetes.io/instance: "{{ .Values.metadata.name }}"
99
# Extracts the first part before '@' from .Values.image.version, ensuring it's treated as a string.
1010
app.kubernetes.io/version: {{ .Values.image.version | default "" | toString | splitList "@" | first }}
11-
annotations:
12-
{{- range .Values.checkov_skips }}
13-
{{- . | toYaml | nindent 4 -}}
14-
{{- end }}
1511
roleRef:
1612
apiGroup: rbac.authorization.k8s.io
1713
kind: Role

Diff for: chart/logdna-agent/templates/secret.yaml

-4
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,4 @@ metadata:
1010
app.kubernetes.io/instance: {{ .Values.metadata.name }}
1111
# Extracts the first part before '@' from .Values.image.version, ensuring it's treated as a string.
1212
app.kubernetes.io/version: {{ .Values.image.version | default "" | toString | splitList "@" | first }}
13-
annotations:
14-
{{- range .Values.checkov_skips }}
15-
{{- . | toYaml | nindent 4 -}}
16-
{{- end }}
1713
type: Opaque

Diff for: chart/logdna-agent/templates/serviceaccount.yaml

-4
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,3 @@ metadata:
88
app.kubernetes.io/instance: "{{ .Values.metadata.name }}"
99
# Extracts the first part before '@' from .Values.image.version, ensuring it's treated as a string.
1010
app.kubernetes.io/version: {{ .Values.image.version | default "" | toString | splitList "@" | first }}
11-
annotations:
12-
{{- range .Values.checkov_skips }}
13-
{{- . | toYaml | nindent 4 -}}
14-
{{- end }}

Diff for: chart/logdna-agent/values.yaml

-21
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,3 @@ secret:
1212
agent:
1313
tags: ""
1414
dbPath: "/var/lib/logdna"
15-
checkov_skips:
16-
- checkov.io/skip1: CKV_K8S_21 # "The default namespace should not be used" - false positive - the helm namespace is always used, but not picked up by linter
17-
- checkov.io/skip2: CKV_K8S_11 # "CPU limits should be set" - ignoring as chart not owned by us
18-
- checkov.io/skip4: CKV_K8S_38 # "Ensure that Service Account Tokens are only mounted where necessary" - ignoring as chart not owned by us
19-
- checkov.io/skip5: CKV_K8S_29 # "Apply security context to your pods and containers" - ignoring as chart not owned by us
20-
- checkov.io/skip6: CKV_K8S_25 # "Minimize the admission of containers with added capability" - ignoring as chart not owned by us
21-
- checkov.io/skip7: CKV_K8S_35 # "Prefer using secrets as files over secrets as environment variables" - ignoring as chart not owned by us
22-
- checkov.io/skip8: CKV_K8S_9 # "Readiness Probe Should be Configured" - ignoring as chart not owned by us
23-
- checkov.io/skip9: CKV_K8S_22 # "Use read-only filesystem for containers where possible" - ignoring as chart not owned by us
24-
- checkov.io/skip10: CKV_K8S_40 # "Containers should run as a high UID to avoid host conflict" - ignoring as chart not owned by us
25-
- checkov.io/skip11: CKV_K8S_20 # "Containers should not run with allowPrivilegeEscalation" - see https://github.ibm.com/GoldenEye/issues/issues/67
26-
- checkov.io/skip12: CKV_K8S_12 # "Memory requests should be set" - ignoring as chart not owned by us
27-
- checkov.io/skip13: CKV_K8S_8 # "Liveness Probe Should be Configured" - ignoring as chart not owned by us
28-
- checkov.io/skip14: CKV_K8S_31 # "Ensure that the seccomp profile is set to docker/default or runtime/default" - ignoring as chart not owned by us
29-
- checkov.io/skip15: CKV_K8S_37 # "Minimize the admission of containers with capabilities assigned" - ignoring as chart not owned by us
30-
- checkov.io/skip16: CKV_K8S_31 # "Ensure that the seccomp profile is set to docker/default or runtime/default" - ignoring as chart not owned by us
31-
- checkov.io/skip17: CKV_K8S_15 # "Image Pull Policy should be Always" - when imagePullPolicy is Always, the image is pulled every time the pod is started. While this can help ensure deployment consistency, it can also prevent a pod from starting if the image registry can not be reached.
32-
- checkov.io/skip18: CKV_K8S_13 # "Memory limits should be set" - ignoring as chart not owned by us
33-
- checkov.io/skip19: CKV_K8S_10 # "CPU requests should be set" - ignoring as chart not owned by us
34-
- checkov.io/skip20: CKV_K8S_16 # "Container should not be privileged" - ignoring as chart not owned by us
35-
- checkov.io/skip21: CKV_K8S_28 # "Minimize the admission of containers with the NET_RAW capability" - ignoring as chart not owned by us

0 commit comments

Comments
 (0)