Skip to content

Commit 6539ba0

Browse files
DEV-8116-censor-docker-image-hardening (#34)
* change helm chart * change agent version to 1.0.0 * Update Chart.yaml --------- Co-authored-by: Dotan Alter <[email protected]>
1 parent 070f6ac commit 6539ba0

File tree

3 files changed

+19
-7
lines changed

3 files changed

+19
-7
lines changed

charts/streamsec-agent/Chart.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ type: application
1616
# This is the chart version. This version number should be incremented each time you make changes
1717
# to the chart and its templates, including the app version.
1818
# Versions are expected to follow Semantic Versioning (https://semver.org/)
19-
version: 1.1.5
19+
version: 1.1.6
2020

2121
# This is the version number of the application being deployed. This version number should be
2222
# incremented each time you make changes to the application. Versions are not expected to
@@ -27,4 +27,4 @@ dependencies:
2727
- name: tetragon
2828
condition: streamsec.runtime_agent.enabled
2929
version: 1.3.0
30-
repository: "https://helm.cilium.io"
30+
repository: "https://helm.cilium.io"

charts/streamsec-agent/templates/runtime_agent_ds.yaml

+16-4
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ spec:
2626
tolerations:
2727
{{- toYaml . | nindent 8 }}
2828
{{- end }}
29+
securityContext:
30+
runAsUser: 0
31+
fsGroup: 65534
32+
runAsNonRoot: false
2933
containers:
3034
- name: runtime-agent
3135
image: {{ template "streamsec.runtime-agent-image-path" $}}
@@ -53,17 +57,25 @@ spec:
5357
name: {{ template "streamsec.apiTokenSecretName" $ }}
5458
key: api-key
5559
securityContext:
56-
privileged: true
60+
privileged: false
61+
allowPrivilegeEscalation: false
62+
readOnlyRootFilesystem: true
63+
capabilities:
64+
drop:
65+
- ALL
66+
add:
67+
- BPF
68+
- NET_RAW
69+
- SYS_RESOURCE
5770
terminationMessagePolicy: FallbackToLogsOnError
5871
volumeMounts:
5972
- mountPath: /sys/kernel
6073
name: sys-kernel
74+
readOnly: true
6175
- mountPath: {{ .Values.streamsec.runtime_agent.tetragonFilePath }}
6276
name: export-logs
77+
readOnly: true
6378
dnsPolicy: {{ .Values.dnsPolicy }}
64-
hostNetwork: true
65-
hostPID: true
66-
hostIPC: true
6779
{{- with .Values.streamsec.runtime_agent.priorityClassName }}
6880
priorityClassName: "{{ . }}"
6981
{{- end }}

charts/streamsec-agent/values.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ streamsec:
204204
updateStrategy: {}
205205
image:
206206
name: runtime-agent
207-
tag: 0.0.6
207+
tag: 1.0.0
208208
pullPolicy: IfNotPresent
209209

210210
env:

0 commit comments

Comments
 (0)