Skip to content

Commit

Permalink
chore: Add securitycontext for PSS PoC (rootless Kubeflow) (#2939)
Browse files Browse the repository at this point in the history
* chore: Add securitycontext for PSS PoC (rootless Kubeflow)

Signed-off-by: biswassri <[email protected]>

* update PSS for dex

Signed-off-by: biswassri <[email protected]>

* reverse volume-mount change for dex-deploy

Signed-off-by: biswassri <[email protected]>

* alignment change for dex

Signed-off-by: biswassri <[email protected]>

* remove patches from contrib/security

Signed-off-by: biswassri <[email protected]>

---------

Signed-off-by: biswassri <[email protected]>
  • Loading branch information
biswassri authored Jan 20, 2025
1 parent 7fa1a5b commit 26dadec
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 36 deletions.
8 changes: 8 additions & 0 deletions common/dex/base/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ spec:
ports:
- name: http
containerPort: 5556
securityContext:
allowPrivilegeEscalation: false
seccompProfile:
type: RuntimeDefault
runAsNonRoot: true
capabilities:
drop:
- ALL
volumeMounts:
- name: config
mountPath: /etc/dex/cfg
Expand Down
8 changes: 8 additions & 0 deletions common/oauth2-proxy/base/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,14 @@ spec:
configMapKeyRef:
name: oauth2-proxy-parameters
key: EXTRA_JWT_ISSUERS
securityContext:
allowPrivilegeEscalation: false
seccompProfile:
type: RuntimeDefault
runAsNonRoot: true
capabilities:
drop:
- ALL
volumeMounts:
- name: oauth2-proxy-config
mountPath: /etc/oauth2_proxy/oauth2_proxy.cfg
Expand Down
18 changes: 0 additions & 18 deletions contrib/security/PSS/patches/dex.yaml

This file was deleted.

18 changes: 0 additions & 18 deletions contrib/security/PSS/patches/oauth2-proxy.yaml

This file was deleted.

0 comments on commit 26dadec

Please sign in to comment.