ROX-28590: [POC] (04) Pod-to-Deployment resolution - #22114
Draft
robbycochran wants to merge 1 commit into
Draft
Conversation
Share ParentHierarchy between deploymentHandler and PolicyReport dispatcher via NewDispatcherRegistry. resolveSubject walks the ownership chain (Pod → ReplicaSet → Deployment) using TopLevelParents, then looks up the ACS Deployment by UID. Still dry-run — returns nil, records resolution metrics (rox_sensor_policyreport_resolution_total) with outcomes: resolved, unresolved, error. Tests cover: resolved pod, unresolved pod, non-pod subject, multiple owners, owner not in store, transitive ownership. AI-assisted.
|
Skipping CI for Draft Pull Request. |
Contributor
🚀 Build Images ReadyImages are ready for commit 78f55ee. To use with deploy scripts: export MAIN_IMAGE_TAG=4.12.x-517-g78f55eeaff |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## rc-security-event-03-sensor-crd #22114 +/- ##
================================================================
Coverage 51.30% 51.31%
================================================================
Files 2853 2853
Lines 178114 178146 +32
================================================================
+ Hits 91385 91419 +34
- Misses 78715 78719 +4
+ Partials 8014 8008 -6
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
POC branch 4/9. Resolves PolicyReport Pod subjects to ACS Deployments via
ParentHierarchy.TopLevelParents()andDeploymentStore. Adds resolution outcome metrics (resolved,unresolved,error).AI-assisted development.
User-facing documentation
Testing and quality
Automated testing
How I validated my change
Cluster-validated: deployed, created PolicyReport, confirmed resolution metrics show resolved outcomes.