forked from kubeflow/manifests
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added securityContext profiles for deployments failing PSS restricted…
… level (kubeflow#2836) * Added securityContext for profile-controller deployments Signed-off-by: biswajit-9776 <biswajitpatt139@gmail.com> * Fixed PSS warnings for containers kfam and manager Signed-off-by: biswajit-9776 <biswajitpatt139@gmail.com> * Added securitycontext profiles to dex and oauth2-proxy deployments Signed-off-by: biswajit-9776 <biswajitpatt139@gmail.com> * Added seccompProfile for cluster-local-gateway Signed-off-by: biswajit-9776 <biswajitpatt139@gmail.com> * Added securityContext to cronjob Signed-off-by: biswajit-9776 <biswajitpatt139@gmail.com> * Added securityContext to pipelines pods Signed-off-by: biswajit-9776 <biswajitpatt139@gmail.com> * trigger GitHub actions Signed-off-by: biswajit-9776 <biswajitpatt139@gmail.com> * trigger GitHub actions Signed-off-by: biswajit-9776 <biswajitpatt139@gmail.com> * Undoing changes to cronjob Signed-off-by: biswajit-9776 <biswajitpatt139@gmail.com> --------- Signed-off-by: biswajit-9776 <biswajitpatt139@gmail.com> Signed-off-by: Patrick Schönthaler <patrick.schoenthaler@itsc.de>
- Loading branch information
1 parent
6ea6431
commit ce89920
Showing
18 changed files
with
302 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: cache-server | ||
spec: | ||
template: | ||
spec: | ||
containers: | ||
- name: server | ||
securityContext: | ||
allowPrivilegeEscalation: false | ||
seccompProfile: | ||
type: RuntimeDefault | ||
runAsNonRoot: true | ||
capabilities: | ||
drop: | ||
- ALL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: cluster-local-gateway | ||
spec: | ||
template: | ||
spec: | ||
containers: | ||
- name: istio-proxy | ||
securityContext: | ||
seccompProfile: | ||
type: RuntimeDefault |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: dex | ||
spec: | ||
template: | ||
spec: | ||
containers: | ||
- name: dex | ||
securityContext: | ||
allowPrivilegeEscalation: false | ||
seccompProfile: | ||
type: RuntimeDefault | ||
runAsNonRoot: true | ||
capabilities: | ||
drop: | ||
- ALL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: profiles-deployment | ||
spec: | ||
template: | ||
spec: | ||
containers: | ||
- name: kfam | ||
securityContext: | ||
allowPrivilegeEscalation: false | ||
seccompProfile: | ||
type: RuntimeDefault | ||
runAsNonRoot: true | ||
capabilities: | ||
drop: | ||
- ALL |
17 changes: 17 additions & 0 deletions
17
contrib/security/PSS/patches/kubeflow-pipelines-profile-controller.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: kubeflow-pipelines-profile-controller | ||
spec: | ||
template: | ||
spec: | ||
containers: | ||
- name: profile-controller | ||
securityContext: | ||
allowPrivilegeEscalation: false | ||
seccompProfile: | ||
type: RuntimeDefault | ||
runAsNonRoot: true | ||
capabilities: | ||
drop: | ||
- ALL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: profiles-deployment | ||
spec: | ||
template: | ||
spec: | ||
containers: | ||
- name: manager | ||
securityContext: | ||
allowPrivilegeEscalation: false | ||
seccompProfile: | ||
type: RuntimeDefault | ||
runAsNonRoot: true | ||
capabilities: | ||
drop: | ||
- ALL |
17 changes: 17 additions & 0 deletions
17
contrib/security/PSS/patches/metadata-envoy-deployment.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: metadata-envoy-deployment | ||
spec: | ||
template: | ||
spec: | ||
containers: | ||
- name: container | ||
securityContext: | ||
allowPrivilegeEscalation: false | ||
seccompProfile: | ||
type: RuntimeDefault | ||
runAsNonRoot: true | ||
capabilities: | ||
drop: | ||
- ALL |
17 changes: 17 additions & 0 deletions
17
contrib/security/PSS/patches/metadata-grpc-deployment.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: metadata-grpc-deployment | ||
spec: | ||
template: | ||
spec: | ||
containers: | ||
- name: container | ||
securityContext: | ||
allowPrivilegeEscalation: false | ||
seccompProfile: | ||
type: RuntimeDefault | ||
runAsNonRoot: true | ||
capabilities: | ||
drop: | ||
- ALL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: metadata-writer | ||
spec: | ||
template: | ||
spec: | ||
containers: | ||
- name: main | ||
securityContext: | ||
allowPrivilegeEscalation: false | ||
seccompProfile: | ||
type: RuntimeDefault | ||
runAsNonRoot: true | ||
capabilities: | ||
drop: | ||
- ALL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: minio | ||
spec: | ||
template: | ||
spec: | ||
containers: | ||
- name: minio | ||
securityContext: | ||
allowPrivilegeEscalation: false | ||
seccompProfile: | ||
type: RuntimeDefault | ||
runAsNonRoot: true | ||
capabilities: | ||
drop: | ||
- ALL |
17 changes: 17 additions & 0 deletions
17
contrib/security/PSS/patches/ml-pipeline-persistenceagent.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: ml-pipeline-persistenceagent | ||
spec: | ||
template: | ||
spec: | ||
containers: | ||
- name: ml-pipeline-persistenceagent | ||
securityContext: | ||
allowPrivilegeEscalation: false | ||
seccompProfile: | ||
type: RuntimeDefault | ||
runAsNonRoot: true | ||
capabilities: | ||
drop: | ||
- ALL |
17 changes: 17 additions & 0 deletions
17
contrib/security/PSS/patches/ml-pipeline-scheduledworkflow.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: ml-pipeline-scheduledworkflow | ||
spec: | ||
template: | ||
spec: | ||
containers: | ||
- name: ml-pipeline-scheduledworkflow | ||
securityContext: | ||
allowPrivilegeEscalation: false | ||
seccompProfile: | ||
type: RuntimeDefault | ||
runAsNonRoot: true | ||
capabilities: | ||
drop: | ||
- ALL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: ml-pipeline-ui | ||
spec: | ||
template: | ||
spec: | ||
containers: | ||
- name: ml-pipeline-ui | ||
securityContext: | ||
allowPrivilegeEscalation: false | ||
seccompProfile: | ||
type: RuntimeDefault | ||
runAsNonRoot: true | ||
capabilities: | ||
drop: | ||
- ALL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: ml-pipeline-viewer-crd | ||
spec: | ||
template: | ||
spec: | ||
containers: | ||
- name: ml-pipeline-viewer-crd | ||
securityContext: | ||
allowPrivilegeEscalation: false | ||
seccompProfile: | ||
type: RuntimeDefault | ||
runAsNonRoot: true | ||
capabilities: | ||
drop: | ||
- ALL |
17 changes: 17 additions & 0 deletions
17
contrib/security/PSS/patches/ml-pipeline-visualizationserver.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: ml-pipeline-visualizationserver | ||
spec: | ||
template: | ||
spec: | ||
containers: | ||
- name: ml-pipeline-visualizationserver | ||
securityContext: | ||
allowPrivilegeEscalation: false | ||
seccompProfile: | ||
type: RuntimeDefault | ||
runAsNonRoot: true | ||
capabilities: | ||
drop: | ||
- ALL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: ml-pipeline | ||
spec: | ||
template: | ||
spec: | ||
containers: | ||
- name: ml-pipeline-api-server | ||
securityContext: | ||
allowPrivilegeEscalation: false | ||
seccompProfile: | ||
type: RuntimeDefault | ||
runAsNonRoot: true | ||
capabilities: | ||
drop: | ||
- ALL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: mysql | ||
spec: | ||
template: | ||
spec: | ||
containers: | ||
- name: mysql | ||
securityContext: | ||
allowPrivilegeEscalation: false | ||
seccompProfile: | ||
type: RuntimeDefault | ||
runAsNonRoot: true | ||
capabilities: | ||
drop: | ||
- ALL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: oauth2-proxy | ||
spec: | ||
replicas: 2 | ||
template: | ||
spec: | ||
containers: | ||
- name: oauth2-proxy | ||
securityContext: | ||
allowPrivilegeEscalation: false | ||
seccompProfile: | ||
type: RuntimeDefault | ||
runAsNonRoot: true | ||
capabilities: | ||
drop: | ||
- ALL |