Skip to content

Commit cf1b7d0

Browse files
authored
Merge pull request #25 from olhado/release_2.3.1_agent
Release 2.3.1 agent
2 parents 534cbe4 + 0dffd0e commit cf1b7d0

File tree

4 files changed

+59
-4
lines changed

4 files changed

+59
-4
lines changed

Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v1
22
name: threatstack-agent
3-
version: 2.0.0
4-
appVersion: 2.3.0
3+
version: 2.1.0
4+
appVersion: 2.3.1
55
description: A Helm chart for the Threat Stack Cloud Security Agent
66
keywords:
77
- security

templates/configmap.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,9 @@ data:
1313
{{- if .Values.daemonset.customAuditRules }}
1414
custom-audit-rules-content: {{ toYaml .Values.daemonset.customAuditRules | indent 4 }}
1515
{{- end }}
16+
{{- if .Values.daemonset.customTsAuditdConfig }}
17+
custom-tsauditd-config-content: {{ toYaml .Values.daemonset.customTsAuditdConfig | indent 4 }}
18+
{{- end }}
19+
{{- if .Values.daemonset.customLuaFilter }}
20+
custom-luafilter-content: {{ toYaml .Values.daemonset.customLuaFilter | indent 4 }}
21+
{{- end }}

templates/daemonset.yaml

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ spec:
9999
name: {{ include "threatstack-agent.name" . }}-config-args
100100
key: config-args
101101
securityContext:
102-
privileged: false
102+
privileged: true
103103
capabilities:
104104
add: {{ .Values.capabilities | trim }}
105105
{{- if .Values.daemonset.resources }}
@@ -127,6 +127,16 @@ spec:
127127
- name: custom-audit-rules
128128
mountPath: /opt/threatstack/etc/audit-custom.rules
129129
subPath: audit-custom.rules
130+
{{- end }}
131+
{{- if .Values.daemonset.customTsAuditdConfig }}
132+
- name: custom-tsauditd-config
133+
mountPath: /opt/threatstack/etc/tsauditd-custom.cfg
134+
subPath: tsauditd-custom.cfg
135+
{{- end }}
136+
{{- if .Values.daemonset.customLuaFilter }}
137+
- name: custom-luafilter-config
138+
mountPath: /opt/threatstack/etc/tsauditd-custom.lua
139+
subPath: tsauditd-custom.lua
130140
{{- end }}
131141
volumes:
132142
- hostPath:
@@ -149,3 +159,19 @@ spec:
149159
- key: custom-audit-rules-content
150160
path: audit-custom.rules
151161
{{- end }}
162+
{{- if .Values.daemonset.customTsAuditdConfig }}
163+
- name: custom-tsauditd-config
164+
configMap:
165+
name: {{ include "threatstack-agent.name" . }}-config-args
166+
items:
167+
- key: custom-tsauditd-config-content
168+
path: tsauditd-custom.cfg
169+
{{- end }}
170+
{{- if .Values.daemonset.customLuaFilter }}
171+
- name: custom-luafilter-config
172+
configMap:
173+
name: {{ include "threatstack-agent.name" . }}-config-args
174+
items:
175+
- key: custom-luafilter-content
176+
path: tsauditd-custom.lua
177+
{{- end }}

values.yaml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ rbac:
4949
# additionalConfig :: Additional parameters to configure the running agent
5050
# capabilities :: Docker capabilites required for the proper operation of the agent
5151
capabilities: |
52-
["AUDIT_CONTROL", "AUDIT_READ", "SYS_CHROOT", "CHOWN","DAC_OVERRIDE", "DAC_READ_SEARCH", "FOWNER", "FSETID", "SETGID", "SETUID", "SYS_ADMIN", "SYS_PTRACE"]
52+
["AUDIT_CONTROL", "SYS_CHROOT", "CHOWN","DAC_OVERRIDE", "DAC_READ_SEARCH", "FOWNER", "FSETID", "SETGID", "SETUID", "SYS_ADMIN", "SYS_PTRACE"]
5353
5454
#####
5555
# WARNING!
@@ -212,3 +212,26 @@ daemonset:
212212
# the end
213213
#
214214
customAuditRules: ""
215+
216+
# Override this to provide custom auditd config
217+
# https://threatstack.zendesk.com/hc/en-us/articles/360030897272-FAQ-Workaround-for-the-Known-Linux-Limitation-with-auditd
218+
#
219+
# Example:
220+
# customTsAuditdConfig: |
221+
# {
222+
# ...
223+
# }
224+
#
225+
customTsAuditdConfig: ""
226+
227+
# Override this to provide a custom lua filter to the agent.
228+
# Make sure to use | to ensure the custom lua filter is
229+
# properly parsed and output.
230+
#
231+
# Example:
232+
# customLuaFilter: |
233+
# foo
234+
# bar
235+
# the end
236+
#
237+
customLuaFilter: ""

0 commit comments

Comments
 (0)