ROX-28590: [POC] (06) boolean policy infra and default policy - #22116
Draft
robbycochran wants to merge 1 commit into
Draft
ROX-28590: [POC] (06) boolean policy infra and default policy#22116robbycochran wants to merge 1 commit into
robbycochran wants to merge 1 commit into
Conversation
…icy for SECURITY_EVENT Register SecurityEventSource field in boolean policy metadata behind ROX_POLICY_REPORTS feature flag. Add SecurityEventMatcher, compiled policy predicate, and runtime detector method. Include default catch-all "Reported Policy Violation" policy gated by feature flag. Wire detectFunc into the PolicyReport dispatcher (passed as nil — dry-run mode; detection infrastructure exists but does not execute). Add policyreport_alerts_generated_total metric. Cluster-validated: all canonicalize/resolve/detect metrics confirmed on rc-testing cluster with custom image. AI-assisted.
|
Skipping CI for Draft Pull Request. |
Contributor
🚀 Build Images ReadyImages are ready for commit 1645151. To use with deploy scripts: export MAIN_IMAGE_TAG=4.12.x-520-g1645151895 |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## rc-security-event-05-proto #22116 +/- ##
===============================================================
+ Coverage 49.93% 51.29% +1.35%
===============================================================
Files 787 2853 +2066
Lines 62122 178256 +116134
===============================================================
+ Hits 31022 91437 +60415
- Misses 27814 78805 +50991
- Partials 3286 8014 +4728
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 6/9. Registers
Security Event Sourcefield in the boolean policy engine withSECURITY_EVENTevent-source requirement. AddsDetectSecurityEventto the unified detector. Ships default "Reported Policy Violation" catch-all policy.AI-assisted development.
User-facing documentation
Testing and quality
Automated testing
How I validated my change
Cluster-validated: deployed, created PolicyReport, confirmed alerts-generated metric incrementing.