Repository navigation
fix: surface RBAC severity changes in scan diffs - #100
Conversation
e88c3e2 to
ceb489e
Compare
|
Correction: I removed the |
|
#82 is merged, so this can now shed its carried commit — please rebase onto Two things before this can go in:
The implementation itself reads right — escalations and de-escalations both land in |
Signed-off-by: Floze <[email protected]>
ceb489e to
af06fdf
Compare
|
Rebased this PR onto the current |
rrskris
left a comment
There was a problem hiding this comment.
Verified locally: rebased cleanly onto main, the diff is exactly the two files you named (rbac_service.py + test_rbac_diff.py), sign-off is present, and the full suite goes 77 → 79 with your two new cases. All checks green.
The severity_changed bucket is the right call — an escalation hiding in unchanged was the actual bug in #99, and keying on the finding identity while comparing severity separately is the clean way to catch it.
Thanks for the careful rebase and for flagging the DCO boundary explicitly rather than just adding a trailer.
Adds Unreleased entries for the five PRs merged today, following the existing "Contributed by [@user](link) (#PR)" convention: - #106 Trivy report ingestion adapter (@Diyaaa-12) - #108 CIS 5.1.6 token_automount rule (@donkk11) - #103 Helm chart skeleton (@girosole60) - #100 severity_changed bucket in the RBAC scan diff (@floze-the-genius) - #118 / #119 doc and scanner-RBAC corrections Notes the doc corrections explicitly rather than folding them in silently: the --output table had been missing sarif and junit since those shipped, api.md never documented GET /rbac/scan/diff, and the claim that Kaaval would not flag its own scanner role stopped being true when segmentation_violation landed. Signed-off-by: Vamshi Krishna Santhapuri <[email protected]>
@floze-the-genius shipped three PRs, but only the bugfix (#100) appeared in the changelog — the two features it built on, GET /rbac/scan/diff (#82) and the kaaval doctor preflight (#80), were missing entirely. Anyone reading the release notes would see the fix to a feature whose arrival was never recorded. Scope of each entry was taken from the merge commits rather than the issue titles: #80 adds the CLI command and typed health results on top of the deep health checks that #75 already provided, so it is credited for the wrapper it actually wrote, not for the checks themselves. Prep for the v1.2.0 release notes, so the credit ships in the release rather than as a later correction. Signed-off-by: Vamshi Krishna Santhapuri <[email protected]>
What this changes
severity_changedbucket to RBAC scan diffsprevious_severityfor escalations and de-escalationsunchanged_countand preservesadded/resolvedsemanticsseverity_changed: []in empty and unchanged response shapesCloses #99.
Type
Checklist
hack/dev/rbac-fixtures.yamlif it is a new rule (not applicable)The new #99 commit intentionally has no
Signed-off-bytrailer because no DCO certification has been provided or authorized for it. The earlier #82 commit is carried unchanged from its existing branch.How you verified it
KAAVAL_ADMIN_PASSWORD=test-admin-password ../.venv/bin/python -m pytest tests/test_rbac_diff.py -v- 9 passedpytest tests/ --cov=app --cov-fail-under=60- 77 passed, 64.02% coveragepython -m compileall -q control-plane/app control-plane/testsgit diff --checkAI assistance
Implemented with OpenAI Codex. I reviewed the final diff and validated the focused and full test suites listed above.