Skip to content

Commit

Permalink
add shieldGuard changes (#1287)
Browse files Browse the repository at this point in the history
* add shieldGuard changes

* update trivyignore

---------

Co-authored-by: Amol Agrawal <amagraw@microsoft.com>
  • Loading branch information
pfrcks and Amol Agrawal authored Jul 10, 2024
1 parent 3982365 commit bb8cb3c
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 0 deletions.
1 change: 1 addition & 0 deletions .trivyignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ CVE-2024-24783
CVE-2024-24784
CVE-2024-24785
CVE-2024-24790
CVE-2024-24791

# go high
CVE-2024-24789
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ spec:
imagePullPolicy: IfNotPresent
resources:
{{ toYaml .Values.amalogs.resources.daemonsetwindows | indent 9 }}
securityContext:
capabilities:
drop:
- ALL
add:
- DAC_OVERRIDE
env:
- name: FBIT_SERVICE_FLUSH_INTERVAL
value: "15"
Expand Down
10 changes: 10 additions & 0 deletions charts/azuremonitor-containers/templates/ama-logs-daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,11 @@ spec:
fieldPath: spec.nodeName
securityContext:
privileged: true
capabilities:
drop:
- ALL
add:
- DAC_OVERRIDE
ports:
- containerPort: 25225
protocol: TCP
Expand Down Expand Up @@ -244,6 +249,11 @@ spec:
fieldPath: spec.nodeName
securityContext:
privileged: true
capabilities:
drop:
- ALL
add:
- DAC_OVERRIDE
volumeMounts:
{{- if .Values.amalogs.enableServiceAccountTimeBoundToken }}
- name: kube-api-access
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,11 @@ spec:
fieldPath: spec.nodeName
securityContext:
privileged: true
capabilities:
drop:
- ALL
add:
- DAC_OVERRIDE
ports:
- containerPort: 25225
protocol: TCP
Expand Down
21 changes: 21 additions & 0 deletions kubernetes/ama-logs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,11 @@ spec:
value: "28331"
securityContext:
privileged: true
capabilities:
drop:
- ALL
add:
- DAC_OVERRIDE
ports:
- containerPort: 25225
protocol: TCP
Expand Down Expand Up @@ -565,6 +570,11 @@ spec:
# value: "true"
securityContext:
privileged: true
capabilities:
drop:
- ALL
add:
- DAC_OVERRIDE
volumeMounts:
- name: kube-api-access
mountPath: /var/run/secrets/kubernetes.io/serviceaccount
Expand Down Expand Up @@ -843,6 +853,11 @@ spec:
value: "28331"
securityContext:
privileged: true
capabilities:
drop:
- ALL
add:
- DAC_OVERRIDE
ports:
- containerPort: 25225
protocol: TCP
Expand Down Expand Up @@ -1038,6 +1053,12 @@ spec:
limits:
cpu: 2
memory: 2Gi
securityContext:
capabilities:
drop:
- ALL
add:
- DAC_OVERRIDE
env:
- name: CONTAINER_MEMORY_LIMIT_IN_BYTES
valueFrom:
Expand Down

0 comments on commit bb8cb3c

Please sign in to comment.