Repository navigation
test: enforce restricted PSS for CI user namespace - #3674
vikas-saxena02 wants to merge 4 commits into
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
@danish9039 Thank you for the groundwork in #3487. This pull request continues your work, and you are credited as a co-author. I dropped the Katib and dashboard timeout increases because I could not find the reason for them in the review discussion.
|
|
@juliusvonkohout Both Helm workflows currently stay on This pull request also keeps a full copy of
I will follow your preference on Helm once this draft has continuous integration results. |
|
waiting for ci check to pass so marking this as not ready /hold |
|
all checks passed |
|
We can merge a smaller PR first that does not need any trainer upstream fixes. and yes we need to stick to pss baseline by default for now for regular installations, but in the individual gha tests we can swith to restricted where possible. |
There was a problem hiding this comment.
🟡 Changes recommended
The restricted-security defaults break KFP dependency installation for non-root pipeline components, causing notebook checks to fail, while unbounded status requests can exceed the intended deadline.
2 open issues
What changed in this PR
This pull request extends Kubeflow continuous integration to exercise user workloads under restricted Pod Security Standards, continuing #3487 and addressing #3562. Regular installation defaults remain unchanged, while the two Helm workflows explicitly retain baseline enforcement.
Changes:
- Add restricted Katib, Trainer, and Pipelines overlays selected by GitHub Actions.
- Update workload security contexts and restore pipeline completion checks with failure diagnostics.
- Expand workflow path filters and route Ray Profile creation through the shared installation script.
| File | Description |
|---|---|
tests/trainer_install.sh |
Selects restricted runtimes in continuous integration. |
tests/spark_connect_session.py |
Adds driver and executor security contexts. |
tests/pipelines_install.sh |
Selects the restricted Pipelines overlay. |
tests/pipeline_run_and_wait_kubeflow.py |
Restores completion polling and failure diagnostics. |
tests/notebook.test.kubeflow-user-example.com.yaml |
Adds restricted Notebook security settings. |
tests/notebook.spark.test.kubeflow-user-example-com.yaml |
Adds restricted Spark Notebook security settings. |
tests/kubeflow_profile_install.sh |
Applies and verifies Profile namespace policy labels. |
tests/kserve_test.sh |
Adds predictor security contexts and adjusts authorization readiness checks. |
tests/kserve_sklearn_test.py |
Adds a restricted predictor security context. |
tests/katib_test.yaml |
Configures non-root training with a writable working directory. |
tests/katib_install.sh |
Selects the security overlay and waits for controller rollout. |
experimental/ray/raycluster_example.yaml |
Declares restricted autoscaler security settings. |
applications/trainer/overlays/runtimes-restricted/patches/torch-distributed-restricted-pss.yaml |
Adds restricted Torch runtime settings. |
applications/trainer/overlays/runtimes-restricted/kustomization.yaml |
Composes the restricted Trainer overlay. |
applications/pipeline/restricted-pss/pipeline-install-config-restricted-pss.yaml |
Sets non-root pipeline identity defaults. |
applications/pipeline/restricted-pss/kustomization.yaml |
Layers continuous-integration defaults over regular Pipelines manifests. |
applications/katib/overlays/security/kustomization.yaml |
Replaces Katib configuration for restricted testing. |
applications/katib/overlays/security/katib-config.yaml |
Enables security-context injection and configures suggestion containers. |
.github/workflows/workspaces_pipeline_run_test.yaml |
Tracks restricted overlay and shared policy changes. |
.github/workflows/volumes_web_application_test.yaml |
Tracks Profile installation changes. |
.github/workflows/trainer_test.yaml |
Replaces obsolete policy trigger paths. |
.github/workflows/ray_test.yaml |
Uses and tracks shared Profile installation. |
.github/workflows/pipeline_test.yaml |
Expands pipeline and policy trigger coverage. |
.github/workflows/pipeline_run_from_notebook.yaml |
Tracks pipeline tests, restricted overlays, and policy scripts. |
.github/workflows/kserve_test.yaml |
Tracks shared policy scripts. |
.github/workflows/katib_test.yaml |
Tracks Katib tests, overlays, and policy scripts. |
.github/workflows/istio_validation.yaml |
Uses a restricted connectivity Pod and updates triggers. |
.github/workflows/helm-pipelines-test.yaml |
Explicitly retains baseline Profile enforcement. |
.github/workflows/helm_kubeflow_integration_test.yaml |
Explicitly retains baseline Profile enforcement. |
.github/workflows/dex_oauth2-proxy_test.yaml |
Replaces obsolete policy trigger paths. |
Review effort: Balanced
868bdcf to
72e372e
Compare
@juliusvonkohout Done. |
460e6a0 to
1f4b57d
Compare
|
/retest |
1f4b57d to
e331df0
Compare
There was a problem hiding this comment.
🟡 Changes recommended
Restricted-policy validation remains incomplete, the pipeline timer can interrupt failure diagnostics, and missing workflow path filters allow relevant changes to bypass integration tests.
5 open issues
Add restricted Profile and Pipelines dependencies to the path filter · New Add the restricted Notebook fixture to the path filter · New Add the pipeline wait script to the Workspace path filter · New Trainer workflows still use the baseline security policy · New Disarm the timeout while requesting run status · New
2 resolved since last review
Review effort: Max
Co-authored-by: abdullahpathan22 <abdullahpathan22@users.noreply.github.com> Co-authored-by: danish9039 <danishsiddiqui040@gmail.com> Signed-off-by: Vikas Saxena <Vikas.Saxena.2006@gmail.com>
Signed-off-by: Vikas Saxena <Vikas.Saxena.2006@gmail.com>
Signed-off-by: Vikas Saxena <Vikas.Saxena.2006@gmail.com>
e331df0 to
df47de6
Compare
Signed-off-by: Vikas Saxena <Vikas.Saxena.2006@gmail.com>


✏️ Summary of Changes
This pull request continues #3487 by @danish9039 and @abdullahpathan22, which I have taken over, and supersedes it. Their work is squashed and rebased onto
master, and both are credited as co-authors.tests/kubeflow_profile_install.shstays on Pod Security Standardsbaselineby default, and twelve individual workflows opt in torestrictedwith an argument. Regular installations are unchanged, andkustomize build examplestill renders empty Pipelines security context defaults.Carried over from #3487
GITHUB_ACTIONSis set.tests/pipeline_run_and_wait_kubeflow.py.Dropped or replaced, and why
tests/katib_test.sh. The reason for them was not in the review discussion, andmasteralso changed this file, so themasterversion is restored.tests/dashboard_install.sh. They have the same open question, and the dashboard runs outside the user namespace, so themasterversion is restored.tests/trainer_test.sh. It was diagnostic output only, so themasterversion is restored.tests/trainer_install.shchanges. The Trainer fixes belong upstream first, sotrainer_teststays onbaseline.kubectl patchinexperimental/ray/test.sh.masterrewrote this script. The autoscaler security context is now declared inexperimental/ray/raycluster_example.yaml.runAsUser: 1000in the KServe workloads. The sklearn server image declares user1000.applications/pipeline/restricted-pss/kustomization.yaml.KF_PROFILE_PSSswitch. Workflows now passrestrictedtotests/kubeflow_profile_install.shdirectly.Added
ray_testnow usestests/kubeflow_profile_install.sh restricted.finallyblock, so it cannot interrupt them.Remaining limitations
baseline.runAsUserremains only where the image does not declare a numeric non-root user: Katib, Pipelines, the Istio validation client and Spark.katib-config.yamluntil config: add restricted PSS contexts for suggestions katib#2683 is released and synchronized.📦 Dependencies
None.
🐛 Related Issues
Supersedes #3487. Related to #3562.
✅ Contributor Checklist