Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions charts/s1-agent/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -556,6 +556,10 @@ procMount: Default
value: "0"
- name: S1_POD_GID
value: "0"
{{- if .Values.configuration.env.injection.fargate_ptrace_allow }}
- name: LD_PRELOAD
value: "/usr/local/lib/libptrace_allow.so"
{{- end }}
{{- end -}}

{{- define "helper.rbac.annotations" -}}
Expand Down Expand Up @@ -625,6 +629,7 @@ requests:
{{- if .Values.configuration.env.injection.enabled -}}
{{- $_ := set $helperConfig "S1_NAMESPACE_INJECTION_SELECTORS" (default "" (toJson .Values.agentInjection.selector.namespaceSelector.matchLabels)) -}}
{{- $_ := set $helperConfig "S1_INJECTION_CREATE_SITE_TOKEN_SECRET" (include "site_key.secret.create" .) -}}
{{- $_ := set $helperConfig "S1_FARGATE_PTRACE_ALLOW" (printf "%t" .Values.configuration.env.injection.fargate_ptrace_allow) -}}
{{- if include "custom_ca.secret.create" . -}}
{{- $_ := set $helperConfig "S1_CUSTOM_CA_SECRET_NAME" (include "custom_ca.secret.name" .) -}}
{{- end -}}
Expand Down
4 changes: 4 additions & 0 deletions charts/s1-agent/templates/helper/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,10 @@ spec:
{{- end }}
- name: AGENT_CONTAINER_NAME
value: "{{ include "agent.container_name" . }}"
{{- if and .Values.configuration.env.injection.enabled .Values.configuration.env.injection.fargate_ptrace_allow }}
- name: LD_PRELOAD
value: "/s1-helper/bin/libptrace_allow.so"
{{- end }}
ports:
- name: https
containerPort: {{ include "service.target_port" . }}
Expand Down
1 change: 1 addition & 0 deletions charts/s1-agent/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ configuration:
hostNetwork: false # set to 'true' in case you are running on EKS with amazon linux 2023 ami and hop limit for the instance metadata of 1 in order for the helper to fetch instance metadata
injection:
enabled: false # to enable agent injection mode on AWS Fargate, set to 'true'
fargate_ptrace_allow: true # inject s1-fargate-init + libptrace_allow.so into Fargate pods so the agent can ptrace workload processes; set to 'false' to skip the CMD wrap + LD_PRELOAD injection
admission_controllers:
validating:
enabled: false # to enable validating admission controller, set to 'true'
Expand Down