Skip to content
Snippets Groups Projects
Verified Commit a04b05be authored by Martin Weise's avatar Martin Weise
Browse files

Security improvements

parent c724d5ca
No related branches found
No related tags found
No related merge requests found
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
# Dev # Dev
values.dev.yaml values.dev.yaml
Chart.tpl.yaml
hack/
# MacOS
.DS_Store .DS_Store
# Common VCS dirs # Common VCS dirs
.git/ .git/
......
...@@ -33,6 +33,8 @@ spec: ...@@ -33,6 +33,8 @@ spec:
imagePullPolicy: {{ .Values.analyseService.image.pullPolicy | default "IfNotPresent" }} imagePullPolicy: {{ .Values.analyseService.image.pullPolicy | default "IfNotPresent" }}
securityContext: securityContext:
allowPrivilegeEscalation: false allowPrivilegeEscalation: false
seccompProfile:
type: {{ .Values.analyseService.profileType | default "RuntimeDefault" }}
capabilities: capabilities:
drop: drop:
- ALL - ALL
......
...@@ -30,6 +30,13 @@ spec: ...@@ -30,6 +30,13 @@ spec:
- name: data-service - name: data-service
image: {{ .Values.dataService.image.name }} image: {{ .Values.dataService.image.name }}
imagePullPolicy: {{ .Values.dataService.image.pullPolicy | default "IfNotPresent" }} imagePullPolicy: {{ .Values.dataService.image.pullPolicy | default "IfNotPresent" }}
securityContext:
allowPrivilegeEscalation: false
seccompProfile:
type: {{ .Values.dataService.profileType | default "RuntimeDefault" }}
capabilities:
drop:
- ALL
ports: ports:
- containerPort: 9093 - containerPort: 9093
protocol: TCP protocol: TCP
......
...@@ -35,6 +35,8 @@ spec: ...@@ -35,6 +35,8 @@ spec:
runAsUser: 1000 runAsUser: 1000
runAsGroup: 1000 runAsGroup: 1000
allowPrivilegeEscalation: false allowPrivilegeEscalation: false
seccompProfile:
type: {{ .Values.metadataService.profileType | default "RuntimeDefault" }}
capabilities: capabilities:
drop: drop:
- ALL - ALL
......
...@@ -33,6 +33,8 @@ spec: ...@@ -33,6 +33,8 @@ spec:
imagePullPolicy: {{ .Values.searchService.image.pullPolicy | default "IfNotPresent" }} imagePullPolicy: {{ .Values.searchService.image.pullPolicy | default "IfNotPresent" }}
securityContext: securityContext:
allowPrivilegeEscalation: false allowPrivilegeEscalation: false
seccompProfile:
type: {{ .Values.metadataService.profileType | default "RuntimeDefault" }}
capabilities: capabilities:
drop: drop:
- ALL - ALL
......
...@@ -33,6 +33,8 @@ spec: ...@@ -33,6 +33,8 @@ spec:
imagePullPolicy: {{ .Values.ui.image.pullPolicy | default "IfNotPresent" }} imagePullPolicy: {{ .Values.ui.image.pullPolicy | default "IfNotPresent" }}
securityContext: securityContext:
allowPrivilegeEscalation: false allowPrivilegeEscalation: false
seccompProfile:
type: {{ .Values.ui.profileType | default "RuntimeDefault" }}
capabilities: capabilities:
drop: drop:
- ALL - ALL
......
...@@ -33,6 +33,8 @@ spec: ...@@ -33,6 +33,8 @@ spec:
imagePullPolicy: {{ .Values.uploadService.image.pullPolicy | default "IfNotPresent" }} imagePullPolicy: {{ .Values.uploadService.image.pullPolicy | default "IfNotPresent" }}
securityContext: securityContext:
allowPrivilegeEscalation: false allowPrivilegeEscalation: false
seccompProfile:
type: {{ .Values.uploadService.profileType | default "RuntimeDefault" }}
capabilities: capabilities:
drop: drop:
- ALL - ALL
......
...@@ -115,6 +115,12 @@ dataDb: ...@@ -115,6 +115,12 @@ dataDb:
securityContext: securityContext:
runAsUser: 1001 runAsUser: 1001
runAsGroup: 1001 runAsGroup: 1001
allowPrivilegeEscalation: false
seccompProfile:
type: RuntimeDefault
capabilities:
drop:
- ALL
ports: ports:
- containerPort: 3305 - containerPort: 3305
protocol: TCP protocol: TCP
...@@ -152,6 +158,10 @@ dataDb: ...@@ -152,6 +158,10 @@ dataDb:
size: 10Gi size: 10Gi
replicaCount: 1 # uneven replicaCount: 1 # uneven
dataDbSidecar:
persistence:
storageClass:
searchdb: searchdb:
fullnameOverride: search-db fullnameOverride: search-db
host: search-db host: search-db
...@@ -236,6 +246,15 @@ searchDbDashboard: ...@@ -236,6 +246,15 @@ searchDbDashboard:
- name: init - name: init
image: dbrepo-search-db-init:latest image: dbrepo-search-db-init:latest
imagePullPolicy: Never imagePullPolicy: Never
securityContext:
runAsUser: 1001
runAsGroup: 1001
allowPrivilegeEscalation: false
seccompProfile:
type: RuntimeDefault
capabilities:
drop:
- ALL
env: env:
- name: OPENSEARCH_HOST - name: OPENSEARCH_HOST
value: http://search-db:9200 value: http://search-db:9200
......
...@@ -115,6 +115,12 @@ dataDb: ...@@ -115,6 +115,12 @@ dataDb:
securityContext: securityContext:
runAsUser: 1001 runAsUser: 1001
runAsGroup: 1001 runAsGroup: 1001
allowPrivilegeEscalation: false
seccompProfile:
type: RuntimeDefault
capabilities:
drop:
- ALL
ports: ports:
- containerPort: 3305 - containerPort: 3305
protocol: TCP protocol: TCP
...@@ -240,6 +246,15 @@ searchDbDashboard: ...@@ -240,6 +246,15 @@ searchDbDashboard:
- name: init - name: init
image: s210.dl.hpc.tuwien.ac.at/dbrepo/search-db-init:1.4.2 image: s210.dl.hpc.tuwien.ac.at/dbrepo/search-db-init:1.4.2
imagePullPolicy: Always imagePullPolicy: Always
securityContext:
runAsUser: 1001
runAsGroup: 1001
allowPrivilegeEscalation: false
seccompProfile:
type: RuntimeDefault
capabilities:
drop:
- ALL
env: env:
- name: OPENSEARCH_HOST - name: OPENSEARCH_HOST
value: http://search-db:9200 value: http://search-db:9200
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment