Repository navigation
ROX-35476: Add image layer differentiation to policy evaluation filters #23519
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -150,3 +150,4 @@ spec: | |
| evaluationFilter: | ||
| skipContainerTypes: | ||
| - SKIP_INIT | ||
| skipImageLayers: SKIP_NONE | ||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
🔎 Supported by static analysis
🏁 Script executed:
Repository: stackrox/stackrox
Length of output: 8594
🏁 Script executed:
Repository: stackrox/stackrox
Length of output: 11340
🏁 Script executed:
Repository: stackrox/stackrox
Length of output: 5978
🏁 Script executed:
Repository: stackrox/stackrox
Length of output: 2563
Set
ROX_IMAGE_LAYER_FILTERexplicitly for disabled cases.The disabled test case leaves the variable unchanged. If the test process already has
ROX_IMAGE_LAYER_FILTER=true,ImageLayerFilter.Enabled()returns true and the validator accepts the validSKIP_BASEfilter instead of returning the expected feature-disabled error.ImageLayerFilteris not registered as unchangeable in release builds, so do not skip the enabled cases.🛠️ Suggested fix
🤖 Prompt for AI Agents