Skip to content

Commit 6891d26

Browse files
committed
Feat(#199): retry, but still no cigar
1 parent e500573 commit 6891d26

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

helm/wrongsecrets-ctf-party/templates/wrongsecrets-balancer/deployment.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@ spec:
2424
runAsGroup: 3000
2525
fsGroup: 2000
2626
serviceAccountName: wrongsecrets-balancer
27-
{{- with .Values.balancer.securityContext }}
28-
securityContext:
29-
{{- toYaml . | nindent 8 }}
30-
{{- end }}
3127
containers:
3228
- name: {{ .Chart.Name }}
3329
image: '{{ .Values.balancer.repository }}:{{ .Values.balancer.tag | default (printf "v%s" .Chart.Version) }}'
@@ -94,6 +90,12 @@ spec:
9490
allowPrivilegeEscalation: false
9591
readOnlyRootFilesystem: true
9692
runAsNonRoot: true
93+
capabilities:
94+
drop:
95+
- ALL
96+
add:
97+
- CAP_NET_ADMIN
98+
- CAP_NET_BIND_SERVICE
9799
volumeMounts:
98100
- name: config-volume
99101
mountPath: /home/app/config/

helm/wrongsecrets-ctf-party/values.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ balancer:
3636
repository: jeroenwillemsen/wrongsecrets-balancer
3737
tag: 1.7aws
3838
# -- Number of replicas of the wrongsecrets-balancer deployment. Changing this in a commit? PLEASE UPDATE THE GITHUB WORKLFOWS THEN!(NUMBER OF "TRUE")
39-
replicas: 4
39+
replicas: 2
4040
service:
4141
# -- Kubernetes service type
4242
type: ClusterIP
@@ -62,6 +62,9 @@ balancer:
6262
capabilities:
6363
drop:
6464
- ALL
65+
add:
66+
- CAP_NET_ADMIN
67+
- CAP_NET_BIND_SERVICE
6568
seccompProfile:
6669
type: RuntimeDefault
6770
# -- Optional Configure kubernetes scheduling affinity for the created JuiceShops (see: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#affinity-and-anti-affinity)

wrongsecrets-balancer/src/kubernetes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1103,7 +1103,7 @@ const createDesktopDeploymentForTeam = async ({ team, passcodeHash }) => {
11031103
readOnlyRootFilesystem: false,
11041104
runAsNonRoot: false,
11051105
capabilities: { drop: ['ALL'], add:['CAP_SETGID','CAP_SETUID','CAP_CHOWN'] },
1106-
seccompProfile: { type: 'RuntimeDefault' },
1106+
seccompProfile: { type: 'Unconfined' },
11071107
},
11081108
env: [...get('virtualdesktop.env', [])],
11091109
envFrom: get('virtualdesktop.envFrom'),

0 commit comments

Comments
 (0)