Skip to content

Commit 8f7f127

Browse files
feat: enforce PSS restricted for CI and upgrade Istio to 1.30
- Enforce PSS restricted labels on user namespace during CI tests via kubeflow_profile_install.sh - Update workflow triggers for broader PSS test coverage across katib, pipeline, trainer, training-operator, and dex workflows - Add PSS-compliant securityContext and workingDir to test Notebook and Katib trial manifests to prevent permission issues - Add seccompProfile to JupyterLab WorkspaceKind sample - Add PSS-compliant overrides to istio_validation test-client pod - Upgrade Istio manifests from 1.29 to 1.30.0-rc.0 for native PSS Restricted compatibility (CRDs, install, sidecar injector, cluster-local-gateway, ztunnel, profile) Signed-off-by: abdullahpathan22 <abdullahpathan22@users.noreply.github.com>
1 parent 6095d6b commit 8f7f127

22 files changed

Lines changed: 644 additions & 145 deletions

.github/workflows/dex_oauth2-proxy_test.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ on:
77
- common/cert-manager/**
88
- common/oauth2-proxy/**
99
- common/istio*/**
10-
- experimental/security/PSS/*
10+
- tests/kubeflow_profile_install.sh
11+
- tests/PSS_enable.sh
1112
- common/dex/base/**
1213
- tests/istio*
1314
- tests/dex_login_test.py

.github/workflows/istio_validation.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,8 @@ jobs:
252252
- name: Test basic connectivity
253253
run: |
254254
kubectl expose deployment test-application --port=80 --target-port=8080 -n $KF_PROFILE
255-
kubectl run test-client --image=busybox --rm -i --restart=Never -n $KF_PROFILE -- \
255+
kubectl run test-client --image=busybox --rm -i --restart=Never -n $KF_PROFILE \
256+
--overrides='{"spec": {"securityContext": {"runAsNonRoot": true, "runAsUser": 1000, "seccompProfile": {"type": "RuntimeDefault"}}, "containers": [{"name": "test-client", "image": "busybox", "securityContext": {"allowPrivilegeEscalation": false, "capabilities": {"drop": ["ALL"]}, "runAsNonRoot": true, "runAsUser": 1000}}]}}' -- \
256257
wget -qO- --timeout=10 test-application.$KF_PROFILE.svc.cluster.local
257258
258259
- name: Apply Pod Security Standards Restricted levels

.github/workflows/katib_test.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ on:
33
pull_request:
44
paths:
55
- tests/install_KinD_create_KinD_cluster_install_kustomize.sh
6-
- tests/katib_install.sh
6+
- tests/katib*
77
- .github/workflows/katib_test.yaml
88
- applications/katib/upstream/**
99
- common/istio*/**
@@ -12,7 +12,8 @@ on:
1212
- tests/profile_controller_install.sh
1313
- applications/dashboard/upstream/profile-controller/**
1414
- common/cert-manager/**
15-
- experimental/security/PSS/*
15+
- tests/kubeflow_profile_install.sh
16+
- tests/PSS_enable.sh
1617

1718
permissions:
1819
contents: read

.github/workflows/pipeline_run_from_notebook.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ on:
1414
- common/cert-manager/**
1515
- common/oauth2-proxy/**
1616
- common/istio*/**
17+
- tests/pipeline*
18+
- tests/kubeflow_profile_install.sh
19+
- tests/PSS_enable.sh
1720
- common/kubeflow-namespace/**
1821

1922
permissions:

.github/workflows/pipeline_test.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ on:
1313
- common/cert-manager/**
1414
- common/oauth2-proxy/**
1515
- common/istio*/**
16-
- tests/pipeline_v1_test.py
17-
- tests/pipeline_v2_test.py
18-
- experimental/security/PSS/*
16+
- tests/pipeline*
17+
- tests/kubeflow_profile_install.sh
18+
- tests/PSS_enable.sh
1919

2020
permissions:
2121
contents: read

.github/workflows/trainer_test.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ on:
1414
- common/cert-manager/**
1515
- common/oauth2-proxy/**
1616
- common/istio*/**
17-
- experimental/security/PSS/*
17+
- tests/kubeflow_profile_install.sh
18+
- tests/PSS_enable.sh
1819

1920
permissions:
2021
contents: read

.github/workflows/training_operator_test.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ on:
1414
- common/cert-manager/**
1515
- common/oauth2-proxy/**
1616
- common/istio*/**
17-
- experimental/security/PSS/*
17+
- tests/kubeflow_profile_install.sh
18+
- tests/PSS_enable.sh
1819

1920
permissions:
2021
contents: read

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ This repository periodically synchronizes all official Kubeflow components from
7979
| Kubeflow Pipelines | applications/pipeline/upstream | [2.16.1](https://github.com/kubeflow/pipelines/tree/2.16.1/manifests/kustomize) | 970m | 3552Mi | 35GB |
8080
| Kubeflow Hub | applications/hub/upstream | [v0.3.9](https://github.com/kubeflow/hub/tree/v0.3.9/manifests/kustomize) | 510m | 2112Mi | 20GB |
8181
| Spark Operator | applications/spark/spark-operator | [2.5.0](https://github.com/kubeflow/spark-operator/tree/v2.5.0) | 9m | 41Mi | 0GB |
82-
| Istio | common/istio | [1.29.2](https://github.com/istio/istio/releases/tag/1.29.2) | 750m | 2364Mi | 0GB |
82+
| Istio | common/istio | [1.30.0-rc.0](https://github.com/istio/istio/releases/tag/1.30.0-rc.0) | 750m | 2364Mi | 0GB |
8383
| Knative | common/knative/knative-serving <br /> common/knative/knative-eventing | [v1.21.1](https://github.com/knative/serving/releases/tag/knative-v1.21.1) <br /> [v1.21.0](https://github.com/knative/eventing/releases/tag/knative-v1.21.0) | 1450m | 1038Mi | 0GB |
8484
| Cert Manager | common/cert-manager | [1.19.4](https://github.com/cert-manager/cert-manager/releases/tag/v1.19.4) | 3m | 128Mi | 0GB |
8585
| Dex | common/dex | [2.45.0](https://github.com/dexidp/dex/releases/tag/v2.45.0) | 3m | 27Mi | 0GB |

applications/trainer/upstream/base/runtimes/torch_distributed.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,19 @@ spec:
1919
spec:
2020
template:
2121
spec:
22+
securityContext:
23+
runAsNonRoot: true
24+
runAsUser: 1000
25+
seccompProfile:
26+
type: RuntimeDefault
2227
containers:
2328
- name: node
2429
image: pytorch/pytorch:2.10.0-cuda12.8-cudnn9-runtime
30+
workingDir: /tmp
31+
securityContext:
32+
allowPrivilegeEscalation: false
33+
capabilities:
34+
drop:
35+
- ALL
36+
add: []
37+
runAsNonRoot: true

applications/workspaces/upstream/controller/samples/jupyterlab_v1beta1_workspacekind.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,8 @@ spec:
208208
##
209209
securityContext:
210210
fsGroup: 100
211+
seccompProfile:
212+
type: RuntimeDefault
211213

212214
## container SecurityContext for Workspace Pods (MUTABLE)
213215
## - spec for SecurityContext:

0 commit comments

Comments
 (0)