Skip to content

Commit 6136351

Browse files
authored
profilebrowser: fix incorrect settings (#3227)
- 'allowPrivilegeEscalation' and 'readOnlyRootFilesystem' should be at the container level, not pod level to work - with 'readOnlyRootFilesystem' actually set to true, fix emptyDir volume to be /tmp to allow writing to tmp dir
1 parent b3ac1b3 commit 6136351

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

chart/app-templates/profilebrowser.yaml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,9 @@ spec:
1818
runAsUser: {{ crawler_uid}}
1919
runAsGroup: {{ crawler_gid}}
2020
fsGroup: {{ crawler_fsgroup }}
21-
allowPrivilegeEscalation: false
22-
readOnlyRootFilesystem: true
2321

2422
volumes:
25-
- name: crawler-workdir
23+
- name: tmpdir
2624
emptyDir:
2725
sizeLimit: {{ profile_browser_workdir_size }}
2826

@@ -98,8 +96,8 @@ spec:
9896
{% endif %}
9997

10098
volumeMounts:
101-
- name: crawler-workdir
102-
mountPath: /tmp/home
99+
- name: tmpdir
100+
mountPath: /tmp
103101
{% if proxy_id %}
104102
{% if proxy_ssh_private_key %}
105103
- name: proxies
@@ -149,3 +147,7 @@ spec:
149147
requests:
150148
cpu: "{{ profile_cpu }}"
151149
memory: "{{ profile_memory }}"
150+
151+
securityContext:
152+
allowPrivilegeEscalation: false
153+
readOnlyRootFilesystem: true

0 commit comments

Comments
 (0)