OCPBUGS-132754: Handle restrictive policies for layered OS updates #6670
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.37) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 216 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.322
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #6670"
general
weight: 0.35
yuqi-zhang
Fixes: OCPBUGS-132754
Add exact temporary containers-storage exceptions for layered imports and local rebases.
Preserve the host policy and cover tag- and digest-based references with regression tests.
What I did
Added exact, temporary containers-storage policy exceptions for layered OS imports and local rebases, without modifying the host policy. Added support and regression coverage for tag-based import references and digest-based local rebases, including cleanup.
How to verify it
go test ./pkg/daemon -run 'Test(CreateLayeredImportPolicy_TaggedOSImageWithRestrictivePolicy|PatchPoliciesForContainerStorage_RestrictivePolicy|BuildTransportPolicyKey|ContainerStoragePolicyRequiresPatch)$' -count=1go test ./pkg/daemon -count=1— passed.Description for the changelog
Support layered OS updates with restrictive image policies using an exact, temporary per-image exception, while preserving the host policy.
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
<!-- coderabbit-ai-generated:v1 -->
Summary by CodeRabbit
Summary
New Features
Layered container image imports can now use a temporary, image-specific exception when a restrictive container-storage policy would otherwise block the import.
The temporary policy is applied only during the import and cleaned up afterward; the host policy remains unchanged.
Bug Fixes
Policy exceptions preserve existing rules and avoid incomplete or overly broad entries.
Improved validation and error reporting for image references, metadata, and Podman access.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->