Skip to content

Commit

Permalink
fix: pss restricted securityContext (argoproj#9765)
Browse files Browse the repository at this point in the history
* fix: pss restricted securityContext

Signed-off-by: Joe Bowbeer <[email protected]>

* fix: argocd-dex-server seccomp strict

Signed-off-by: Joe Bowbeer <[email protected]>

* fix: remove seccomp from generated haproxy manifests

Signed-off-by: Joe Bowbeer <[email protected]>

* fix: indentation in namespace-install

Signed-off-by: Joe Bowbeer <[email protected]>

* fix: indentation in namespace-install

Signed-off-by: Joe Bowbeer <[email protected]>
  • Loading branch information
joebowbeer authored Jun 28, 2022
1 parent a491eb2 commit 356307e
Show file tree
Hide file tree
Showing 12 changed files with 131 additions and 35 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,9 @@ spec:
allowPrivilegeEscalation: false
capabilities:
drop:
- all
- ALL
seccompProfile:
type: RuntimeDefault
workingDir: /home/argocd
volumeMounts:
- name: argocd-repo-server-tls
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,14 @@ spec:
- mountPath: /tmp
name: tmp
securityContext:
capabilities:
drop:
- ALL
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
runAsNonRoot: true
capabilities:
drop:
- ALL
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
serviceAccountName: argocd-applicationset-controller
volumes:
- configMap:
Expand Down
4 changes: 4 additions & 0 deletions manifests/base/dex/argocd-dex-server-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ spec:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
containers:
- name: dex
image: ghcr.io/dexidp/dex:v2.30.2
Expand All @@ -45,6 +47,8 @@ spec:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
ports:
- containerPort: 5556
- containerPort: 5557
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ spec:
drop:
- ALL
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
readOnlyRootFilesystem: true
serviceAccountName: argocd-notifications-controller
securityContext:
runAsNonRoot: true
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
4 changes: 3 additions & 1 deletion manifests/base/redis/argocd-redis-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ spec:
securityContext:
runAsNonRoot: true
runAsUser: 999
seccompProfile:
type: RuntimeDefault
serviceAccountName: argocd-redis
containers:
- name: redis
Expand All @@ -34,7 +36,7 @@ spec:
allowPrivilegeEscalation: false
capabilities:
drop:
- all
- ALL
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
Expand Down
8 changes: 6 additions & 2 deletions manifests/base/repo-server/argocd-repo-server-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,9 @@ spec:
allowPrivilegeEscalation: false
capabilities:
drop:
- all
- ALL
seccompProfile:
type: RuntimeDefault
volumeMounts:
- name: ssh-known-hosts
mountPath: /app/config/ssh
Expand Down Expand Up @@ -167,7 +169,9 @@ spec:
allowPrivilegeEscalation: false
capabilities:
drop:
- all
- ALL
seccompProfile:
type: RuntimeDefault
volumeMounts:
- mountPath: /var/run/argocd
name: var-files
Expand Down
4 changes: 3 additions & 1 deletion manifests/base/server/argocd-server-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,9 @@ spec:
runAsNonRoot: true
capabilities:
drop:
- all
- ALL
seccompProfile:
type: RuntimeDefault
volumes:
- emptyDir: {}
name: plugins-home
Expand Down
18 changes: 14 additions & 4 deletions manifests/core-install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9550,6 +9550,8 @@ spec:
- ALL
readOnlyRootFilesystem: true
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
volumeMounts:
- mountPath: /app/config/ssh
name: ssh-known-hosts
Expand Down Expand Up @@ -9624,10 +9626,12 @@ spec:
allowPrivilegeEscalation: false
capabilities:
drop:
- all
- ALL
securityContext:
runAsNonRoot: true
runAsUser: 999
seccompProfile:
type: RuntimeDefault
serviceAccountName: argocd-redis
---
apiVersion: apps/v1
Expand Down Expand Up @@ -9782,9 +9786,11 @@ spec:
allowPrivilegeEscalation: false
capabilities:
drop:
- all
- ALL
readOnlyRootFilesystem: true
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
volumeMounts:
- mountPath: /app/config/ssh
name: ssh-known-hosts
Expand Down Expand Up @@ -9814,9 +9820,11 @@ spec:
allowPrivilegeEscalation: false
capabilities:
drop:
- all
- ALL
readOnlyRootFilesystem: true
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
volumeMounts:
- mountPath: /var/run/argocd
name: var-files
Expand Down Expand Up @@ -10010,9 +10018,11 @@ spec:
allowPrivilegeEscalation: false
capabilities:
drop:
- all
- ALL
readOnlyRootFilesystem: true
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
volumeMounts:
- mountPath: /app/config/controller/tls
name: argocd-repo-server-tls
Expand Down
24 changes: 20 additions & 4 deletions manifests/ha/install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10489,6 +10489,8 @@ spec:
- ALL
readOnlyRootFilesystem: true
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
volumeMounts:
- mountPath: /app/config/ssh
name: ssh-known-hosts
Expand Down Expand Up @@ -10560,6 +10562,8 @@ spec:
- ALL
readOnlyRootFilesystem: true
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
volumeMounts:
- mountPath: /shared
name: static-files
Expand All @@ -10581,6 +10585,8 @@ spec:
- ALL
readOnlyRootFilesystem: true
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
volumeMounts:
- mountPath: /shared
name: static-files
Expand Down Expand Up @@ -10631,6 +10637,8 @@ spec:
workingDir: /app
securityContext:
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
serviceAccountName: argocd-notifications-controller
volumes:
- configMap:
Expand Down Expand Up @@ -10885,9 +10893,11 @@ spec:
allowPrivilegeEscalation: false
capabilities:
drop:
- all
- ALL
readOnlyRootFilesystem: true
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
volumeMounts:
- mountPath: /app/config/ssh
name: ssh-known-hosts
Expand Down Expand Up @@ -10917,9 +10927,11 @@ spec:
allowPrivilegeEscalation: false
capabilities:
drop:
- all
- ALL
readOnlyRootFilesystem: true
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
volumeMounts:
- mountPath: /var/run/argocd
name: var-files
Expand Down Expand Up @@ -11180,9 +11192,11 @@ spec:
allowPrivilegeEscalation: false
capabilities:
drop:
- all
- ALL
readOnlyRootFilesystem: true
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
volumeMounts:
- mountPath: /app/config/ssh
name: ssh-known-hosts
Expand Down Expand Up @@ -11381,9 +11395,11 @@ spec:
allowPrivilegeEscalation: false
capabilities:
drop:
- all
- ALL
readOnlyRootFilesystem: true
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
volumeMounts:
- mountPath: /app/config/controller/tls
name: argocd-repo-server-tls
Expand Down
24 changes: 20 additions & 4 deletions manifests/ha/namespace-install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1263,6 +1263,8 @@ spec:
- ALL
readOnlyRootFilesystem: true
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
volumeMounts:
- mountPath: /app/config/ssh
name: ssh-known-hosts
Expand Down Expand Up @@ -1334,6 +1336,8 @@ spec:
- ALL
readOnlyRootFilesystem: true
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
volumeMounts:
- mountPath: /shared
name: static-files
Expand All @@ -1355,6 +1359,8 @@ spec:
- ALL
readOnlyRootFilesystem: true
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
volumeMounts:
- mountPath: /shared
name: static-files
Expand Down Expand Up @@ -1405,6 +1411,8 @@ spec:
workingDir: /app
securityContext:
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
serviceAccountName: argocd-notifications-controller
volumes:
- configMap:
Expand Down Expand Up @@ -1659,9 +1667,11 @@ spec:
allowPrivilegeEscalation: false
capabilities:
drop:
- all
- ALL
readOnlyRootFilesystem: true
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
volumeMounts:
- mountPath: /app/config/ssh
name: ssh-known-hosts
Expand Down Expand Up @@ -1691,9 +1701,11 @@ spec:
allowPrivilegeEscalation: false
capabilities:
drop:
- all
- ALL
readOnlyRootFilesystem: true
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
volumeMounts:
- mountPath: /var/run/argocd
name: var-files
Expand Down Expand Up @@ -1954,9 +1966,11 @@ spec:
allowPrivilegeEscalation: false
capabilities:
drop:
- all
- ALL
readOnlyRootFilesystem: true
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
volumeMounts:
- mountPath: /app/config/ssh
name: ssh-known-hosts
Expand Down Expand Up @@ -2155,9 +2169,11 @@ spec:
allowPrivilegeEscalation: false
capabilities:
drop:
- all
- ALL
readOnlyRootFilesystem: true
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
volumeMounts:
- mountPath: /app/config/controller/tls
name: argocd-repo-server-tls
Expand Down
Loading

0 comments on commit 356307e

Please sign in to comment.