Skip to content

docs(fixtures): correct the combo-takeover comments to match scanner output - #157

Merged
rrskris merged 1 commit into
mainfrom
fix/combo-fixture-comments
Aug 13, 2026
Merged

rrskris merged 1 commit into
mainfrom
fix/combo-fixture-comments

Conversation

@rrskris

@rrskris rrskris commented Aug 13, 2026

Copy link
Copy Markdown
Collaborator

Follow-up to #152.

The fixture YAML from #152 is correct and verified — evaluate_combo_findings() reports combo_role_escalation (CRITICAL) for combo-takeover-sa. But three of its explanatory comments describe behaviour the scanner does not actually produce. Since this file is documentation-as-code for whoever picks up #84, a wrong comment costs more here than in most places.

Comment said Scanner actually does
combo-role-writer → "Per-role scan: NO finding" raises segmentation_violation (HIGH) — as every ClusterRoleBinding over a namespaced SA does
combo-escalate-gate → privilege_escalation_verbs (MEDIUM) HIGH — the rule is HIGH whenever the role is cluster-scoped, MEDIUM only for a namespaced Role
"Once #84 lands, ... must report combo_role_escalation" already reported today; the predicates shipped in #105/#131/#145. #84 surfaces it through the per-role scan path

Verified by running scan rbac and evaluate_combo_findings() against the fixture on main.

No YAML changed — comments only.

…output

The fixture YAML is right, but three of its explanatory comments describe
behaviour the scanner does not produce, which would send the next person
working on #84 chasing a phantom:

- combo-role-writer was documented as producing NO per-role finding; its
  ClusterRoleBinding raises segmentation_violation like every other
  ClusterRoleBinding over a namespaced ServiceAccount.
- combo-escalate-gate was documented as privilege_escalation_verbs MEDIUM;
  the rule scores HIGH whenever the role is cluster-scoped, and MEDIUM only
  for a namespaced Role.
- The verify block said combo_role_escalation arrives once #84 lands.
  evaluate_combo_findings() already reports it today (#105/#131/#145) —
  what #84 adds is surfacing it through the per-role scan path.

Verified by running the scan and evaluate_combo_findings() against the
fixture. Follow-up to #152 (@Maqbool61).

Signed-off-by: Vamshi Krishna Santhapuri <[email protected]>
@github-actions

Copy link
Copy Markdown

Invigil — kaaval

Gate G5 · Grade A+ · 34/35 (97%)

All five doors open and documented

Gate Check Effort Why Fix
G4 OpenSSF Scorecard >= 7 hours score 6.9 < 7 triage the Scorecard findings (branch protection, token perms, pinned deps) to reach >=7

30 passing · 1 failing · 4 skipped · report-only

@rrskris
rrskris merged commit d658199 into main Aug 13, 2026
7 checks passed
rrskris added a commit that referenced this pull request Aug 13, 2026
Adds release-notes entries for the five contributor PRs merged today:
Grype ingestion (#123, @Diyaaa-12), combo-escalation remediation and rule
catalog (#133, @Maqbool61), the combination-takeover fixture (#152,
@Maqbool61), the Postgres-unreachable test skip (#151, @HeaTTap — first
contribution), and the CIS 5.1.6 acceptance check moving into CI (#124,
@donkk11). Also records the fixture-comment correction from #157.

Signed-off-by: Vamshi Krishna Santhapuri <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant