Skip to content

Add standalone OWASP Kubernetes resource importers#953

Open
Bornunique911 wants to merge 1 commit into
OWASP:mainfrom
Bornunique911:review/issue-471-kubernetes-importers-clean
Open

Add standalone OWASP Kubernetes resource importers#953
Bornunique911 wants to merge 1 commit into
OWASP:mainfrom
Bornunique911:review/issue-471-kubernetes-importers-clean

Conversation

@Bornunique911

@Bornunique911 Bornunique911 commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Summary

This PR is split out from the larger issue-471 review flow to make review smaller and more focused.

It adds standalone importer support for:

  • OWASP Kubernetes Top Ten 2022
  • OWASP Kubernetes Top Ten 2025 (Draft)

Issue reference:

Problem Fixed

The earlier Kubernetes importer review became too large because it was mixed with unrelated OWASP importer, backend, and frontend work.

For this part of the work, the useful standalone contribution is:

  • Kubernetes mapping data
  • Kubernetes parser modules
  • parser tests
  • minimal CLI/import wiring

Solution

This PR adds:

  • Kubernetes Top Ten 2022 mapping data
  • Kubernetes Top Ten 2025 draft mapping data
  • parser implementations for both resources
  • parser tests for direct parsing behavior and fallback behavior
  • minimal cre.py / cre_main.py wiring so the importers can run from main

Files in scope:

  • cre.py
  • application/cmd/cre_main.py
  • application/utils/external_project_parsers/parsers/owasp_kubernetes_top10_2022.py
  • application/utils/external_project_parsers/parsers/owasp_kubernetes_top10_2025.py
  • application/utils/external_project_parsers/data/owasp_kubernetes_top10_2022.json
  • application/utils/external_project_parsers/data/owasp_kubernetes_top10_2025.json
  • application/tests/owasp_kubernetes_top10_2022_parser_test.py
  • application/tests/owasp_kubernetes_top10_2025_parser_test.py

Tests

./venv/bin/python -m pytest application/tests/owasp_kubernetes_top10_2022_parser_test.py application/tests/owasp_kubernetes_top10_2025_parser_test.py -q

Reviewer Notes

This PR is intentionally narrow because it was split to reduce review size:

  • no frontend changes
  • no gap-analysis feature work
  • no unrelated OWASP importer files
  • no bundle artifacts
  • no broader issue-471 aggregation

This PR is meant to be reviewed as a standalone Kubernetes importer addition.

@coderabbitai

coderabbitai Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

@Bornunique911, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 20 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Path: .coderabbit.yml

Review profile: CHILL

Plan: Pro

Run ID: 4bdb2f8e-11a4-49f4-94c1-37b05333f1ff

📥 Commits

Reviewing files that changed from the base of the PR and between 0e16c2e and eed318d.

📒 Files selected for processing (8)
  • application/cmd/cre_main.py
  • application/tests/owasp_kubernetes_top10_2022_parser_test.py
  • application/tests/owasp_kubernetes_top10_2025_parser_test.py
  • application/utils/external_project_parsers/data/owasp_kubernetes_top10_2022.json
  • application/utils/external_project_parsers/data/owasp_kubernetes_top10_2025.json
  • application/utils/external_project_parsers/parsers/owasp_kubernetes_top10_2022.py
  • application/utils/external_project_parsers/parsers/owasp_kubernetes_top10_2025.py
  • cre.py
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@Bornunique911 Bornunique911 force-pushed the review/issue-471-kubernetes-importers-clean branch from 7b7e3ec to eed318d Compare July 7, 2026 12:17
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