Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/twi 3 #93

Open
wants to merge 6 commits into
base: production
Choose a base branch
from
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
4 changes: 4 additions & 0 deletions charts/dirk/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ spec:
labels:
{{- include "common.labels.matchLabels" . | nindent 8 }}
spec:
automountServiceAccountToken: false
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down Expand Up @@ -84,6 +85,7 @@ spec:
runAsUser: {{ .Values.global.securityContext.runAsUser | default 10000 }}
fsGroup: {{ .Values.global.securityContext.fsGroup | default 10000 }}
readOnlyRootFilesystem: {{ .Values.global.securityContext.readOnlyRootFilesystem | default true }}
allowPrivilegeEscalation: {{ .Values.global.securityContext.allowPrivilegeEscalation | default false }}
capabilities:
drop:
- ALL
Expand Down Expand Up @@ -115,6 +117,7 @@ spec:
runAsUser: {{ .Values.global.securityContext.runAsUser | default 10000 }}
fsGroup: {{ .Values.global.securityContext.fsGroup | default 10000 }}
readOnlyRootFilesystem: {{ .Values.global.securityContext.readOnlyRootFilesystem | default true }}
allowPrivilegeEscalation: {{ .Values.global.securityContext.allowPrivilegeEscalation | default false }}
capabilities:
drop:
- ALL
Expand Down Expand Up @@ -166,6 +169,7 @@ spec:
runAsUser: {{ .Values.global.securityContext.runAsUser | default 10000 }}
fsGroup: {{ .Values.global.securityContext.fsGroup | default 10000 }}
readOnlyRootFilesystem: {{ .Values.global.securityContext.readOnlyRootFilesystem | default true }}
allowPrivilegeEscalation: {{ .Values.global.securityContext.allowPrivilegeEscalation | default false }}
capabilities:
drop:
- ALL
Expand Down
1 change: 1 addition & 0 deletions charts/dirk/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ securityContext: {}
# readOnlyRootFilesystem: true
# runAsNonRoot: true
# runAsUser: 1000
# allowPrivilegeEscalation: false

service:
type: ClusterIP
Expand Down
15 changes: 3 additions & 12 deletions charts/execution-beacon/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ spec:
annotations:
checksum/configmap: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
spec:
automountServiceAccountToken: false
{{- with (concat .Values.global.imagePullSecrets .Values.global.imagePullSecrets) }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
Expand Down Expand Up @@ -115,12 +116,7 @@ spec:
image: "{{ (pluck .Values.execution.client .Values.global.image.execution | first ).repository }}:{{ (pluck .Values.execution.client .Values.global.image.execution | first ).tag }}"
imagePullPolicy: {{ .Values.global.image.imagePullPolicy }}
securityContext:
readOnlyRootFilesystem: false
runAsNonRoot: true
runAsUser: 10000
capabilities:
drop:
- ALL
{{- toYaml .Values.global.securityContext | nindent 12 }}
{{- if .Values.global.externalSecrets.enabled }}
envFrom:
- secretRef:
Expand Down Expand Up @@ -377,12 +373,7 @@ spec:
image: "{{ (pluck .Values.beacon.client .Values.global.image.beacon | first ).repository }}:{{ (pluck .Values.beacon.client .Values.global.image.beacon | first ).tag }}"
imagePullPolicy: {{ .Values.global.image.imagePullPolicy }}
securityContext:
readOnlyRootFilesystem: false
runAsNonRoot: true
runAsUser: 10000
capabilities:
drop:
- ALL
{{- toYaml .Values.global.securityContext | nindent 12 }}
{{/* Configuration for Prysm beacon client */}}
{{- if eq .Values.beacon.client "prysm" }}
args:
Expand Down
1 change: 1 addition & 0 deletions charts/execution-beacon/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ global:
readOnlyRootFilesystem: true
runAsNonRoot: true
runAsUser: 10000
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
Expand Down
24 changes: 14 additions & 10 deletions charts/lodestar/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,22 @@ serviceAccount:

podAnnotations: {}

## Pod Security Context
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
##
podSecurityContext:
{}
# fsGroup: 2000

runAsNonRoot: true
runAsUser: 10000
fsGroup: 10000

securityContext:
{}
# capabilities:
# drop:
# - ALL
# readOnlyRootFilesystem: true
# runAsNonRoot: true
# runAsUser: 1000
readOnlyRootFilesystem: true
runAsNonRoot: true
runAsUser: 10000
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL

service:
type: ClusterIP
Expand Down
1 change: 1 addition & 0 deletions charts/mev-boost/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ spec:
labels:
{{- include "common.labels.matchLabels" . | nindent 8 }}
spec:
automountServiceAccountToken: false
{{- with (concat .Values.imagePullSecrets .Values.global.imagePullSecrets) }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
Expand Down
1 change: 1 addition & 0 deletions charts/mev-boost/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ global:
readOnlyRootFilesystem: true
runAsNonRoot: true
runAsUser: 10000
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
Expand Down
1 change: 1 addition & 0 deletions charts/posmoni/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ spec:
labels:
{{- include "common.labels.matchLabels" . | nindent 8 }}
spec:
automountServiceAccountToken: false
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
20 changes: 12 additions & 8 deletions charts/posmoni/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,19 @@ podAnnotations: {}
## Pod Security Context
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
##
podSecurityContext: {}
podSecurityContext:
runAsNonRoot: true
runAsUser: 10000
fsGroup: 10000

securityContext: {}
# capabilities:
# drop:
# - ALL
# readOnlyRootFilesystem: true
# runAsNonRoot: true
# runAsUser: 1000
securityContext:
readOnlyRootFilesystem: true
runAsNonRoot: true
runAsUser: 10000
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL

service:
type: ClusterIP
Expand Down
8 changes: 4 additions & 4 deletions charts/validator-ejector/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ spec:
labels:
{{- include "common.labels.matchLabels" . | nindent 8 }}
spec:
automountServiceAccountToken: false
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand All @@ -37,14 +38,13 @@ spec:
{{- end }}
serviceAccountName: {{ include "ejector.serviceAccountName" . }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
{{- toYaml .Values.global.podSecurityContext | nindent 8 }}
containers:
- name: loader
image: "{{ .Values.global.loader.repository }}:{{ .Values.global.loader.tag }}"
imagePullPolicy: {{ .Values.global.loader.pullPolicy }}
securityContext:
runAsNonRoot: false
runAsUser: 0
{{- toYaml .Values.global.securityContext | nindent 12 }}
env:
- name: EIP2335_PASSWORD
valueFrom:
Expand Down Expand Up @@ -107,7 +107,7 @@ spec:
# mountPath: /data
- name: {{ .Chart.Name }}
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
{{- toYaml .Values.global.securityContext | nindent 12 }}
image: "{{ .Values.global.image.repository }}:{{ .Values.global.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.global.image.pullPolicy }}
env:
Expand Down
23 changes: 16 additions & 7 deletions charts/validator-ejector/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,22 @@ persistence:
size: 5Gi
annotations: {}

securityContext: {}
# capabilities:
# drop:
# - ALL
# readOnlyRootFilesystem: true
# runAsNonRoot: true
# runAsUser: 1000
## Pod Security Context
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
##
podSecurityContext:
runAsNonRoot: true
runAsUser: 10000
fsGroup: 10000

securityContext:
readOnlyRootFilesystem: true
runAsNonRoot: true
runAsUser: 10000
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL

service:
type: ClusterIP
Expand Down
5 changes: 3 additions & 2 deletions charts/validator-kapi/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ spec:
labels:
{{- include "common.labels.matchLabels" . | nindent 8 }}
spec:
automountServiceAccountToken: false
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand All @@ -37,11 +38,11 @@ spec:
{{- end }}
serviceAccountName: {{ include "kapi.serviceAccountName" . }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
{{- toYaml .Values.global.podSecurityContext | nindent 8 }}
containers:
- name: {{ .Chart.Name }}
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
{{- toYaml .Values.global.securityContext | nindent 12 }}
image: "{{ .Values.global.image.repository }}:{{ .Values.global.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.global.image.pullPolicy }}
env:
Expand Down
18 changes: 18 additions & 0 deletions charts/validator-kapi/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,23 @@ global:
pullPolicy: IfNotPresent
tag: "0.10.1"

## Pod Security Context
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
##
podSecurityContext:
runAsNonRoot: true
runAsUser: 10000
fsGroup: 10000

securityContext:
readOnlyRootFilesystem: true
runAsNonRoot: true
runAsUser: 10000
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL

kapi:
env: "production"
# Application port
Expand Down Expand Up @@ -95,6 +112,7 @@ securityContext: {}
# readOnlyRootFilesystem: true
# runAsNonRoot: true
# runAsUser: 1000
# allowPrivilegeEscalation: false

service:
type: ClusterIP
Expand Down
8 changes: 2 additions & 6 deletions charts/validators/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ spec:
annotations:
checksum/configmap: {{ include (print $root.Template.BasePath "/configmap.yaml") $root | sha256sum }}
spec:
automountServiceAccountToken: false
{{- with (concat $root.Values.imagePullSecrets $root.Values.global.imagePullSecrets) }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
Expand Down Expand Up @@ -164,12 +165,7 @@ spec:
image: "{{ (pluck $root.Values.type $root.Values.image | first ).repository }}:{{ (pluck $root.Values.type $root.Values.image | first ).tag }}"
imagePullPolicy: {{ $root.Values.image.pullPolicy }}
securityContext:
readOnlyRootFilesystem: false
runAsNonRoot: true
runAsUser: 10000
capabilities:
drop:
- ALL
{{- toYaml $root.Values.global.securityContext | nindent 12 }}
{{- if eq $root.Values.type "lodestar" }}
command:
- sh
Expand Down
1 change: 1 addition & 0 deletions charts/validators/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ global:
readOnlyRootFilesystem: true
runAsNonRoot: true
runAsUser: 10000
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
Expand Down
3 changes: 3 additions & 0 deletions charts/vouch/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ spec:
labels:
{{- include "common.labels.matchLabels" . | nindent 8 }}
spec:
automountServiceAccountToken: false
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down Expand Up @@ -74,6 +75,7 @@ spec:
runAsUser: {{ .Values.global.securityContext.runAsUser | default 10000 }}
fsGroup: {{ .Values.global.securityContext.fsGroup | default 10000 }}
readOnlyRootFilesystem: {{ .Values.global.securityContext.readOnlyRootFilesystem | default true }}
allowPrivilegeEscalation: {{ .Values.global.securityContext.allowPrivilegeEscalation | default false }}
capabilities:
drop:
- ALL
Expand Down Expand Up @@ -104,6 +106,7 @@ spec:
runAsUser: {{ .Values.global.securityContext.runAsUser | default 10000 }}
fsGroup: {{ .Values.global.securityContext.fsGroup | default 10000 }}
readOnlyRootFilesystem: {{ .Values.global.securityContext.readOnlyRootFilesystem | default true }}
allowPrivilegeEscalation: {{ .Values.global.securityContext.allowPrivilegeEscalation | default false }}
capabilities:
drop:
- ALL
Expand Down
1 change: 1 addition & 0 deletions charts/vouch/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ securityContext: {}
# readOnlyRootFilesystem: true
# runAsNonRoot: true
# runAsUser: 1000
# allowPrivilegeEscalation: false

service:
type: ClusterIP
Expand Down
8 changes: 2 additions & 6 deletions charts/web3signer/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ spec:
labels:
{{- include "common.labels.matchLabels" . | nindent 8 }}
spec:
automountServiceAccountToken: false
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down Expand Up @@ -87,12 +88,7 @@ spec:
containers:
- name: {{ .Chart.Name }}
securityContext:
readOnlyRootFilesystem: false
runAsNonRoot: true
runAsUser: 10000
capabilities:
drop:
- ALL
{{- toYaml .Values.global.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
args:
Expand Down
1 change: 1 addition & 0 deletions charts/web3signer/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ global:
readOnlyRootFilesystem: true
runAsNonRoot: true
runAsUser: 10000
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
Expand Down