[release-5.0] OCPNODE-4526: Block '..' traversal in StorePath - #3020
[release-5.0] OCPNODE-4526: Block '..' traversal in StorePath#3020saschagrunert wants to merge 1 commit into
Conversation
Use component-level CEL validation to reject '..' path components while allowing '..' within filenames (e.g. /var/lib/foo..bar). Add ratcheting tests to verify existing invalid paths don't block updates to adjacent fields. Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
|
Pipeline controller notification For optional jobs, comment This repository is configured in: LGTM mode |
|
@saschagrunert: This pull request references OCPNODE-4526 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "5.0.0" version, but no target version was set. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository YAML (base), Central YAML (inherited) Review profile: CHILL Plan: Enterprise Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Comment |
|
Hello @saschagrunert! Some important instructions when contributing to openshift/api: |
|
/test integration |
|
/approve /label backport-risk-assessed @saschagrunert is this a release-blocker? If not, this should probably be held to go into a 5.0.z at this point. /hold |
|
Scheduling tests matching the |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: everettraven The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
@saschagrunert: The following tests failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
Not a release blocker. 👍 |
Backport of #2999 to release-5.0.
Add a CEL XValidation rule to the StorePath type that rejects paths containing '..' components. This prevents directory traversal sequences from passing API validation, even though containers/storage normalizes them downstream via filepath.Clean().
Update the StorePath and path field godocs to document the '..' restriction per OpenShift API conventions.
Add test cases for '..' traversal and ':' in paths.