Skip to content

Add prodsec-recommended CodeRabbit security rules#16

Open
onmete wants to merge 5 commits into
openshift:mainfrom
onmete:chore/prodsec-coderabbit-config
Open

Add prodsec-recommended CodeRabbit security rules#16
onmete wants to merge 5 commits into
openshift:mainfrom
onmete:chore/prodsec-coderabbit-config

Conversation

@onmete
Copy link
Copy Markdown
Contributor

@onmete onmete commented May 26, 2026

Summary

  • Adopts the Red Hat Product Security recommended CodeRabbit configuration from openshift/coderabbit#17, sourced from prodsec-skills
  • Adds 6 global review instructions (no-hardcoded-secrets, no-weak-crypto, no-injection-vectors, container-privileges, no-sensitive-data-in-logs, ai-attribution)
  • Adds 18 path-specific security review blocks covering injection, web, crypto, containers, K8s/OpenShift, MCP server/client, agents, LLM, supply chain, CI/CD, auth, API gateway, Go, C/C++, database, messaging, and model registry
  • Enables security scanners: gitleaks, semgrep, checkov, hadolint, trivy, osvScanner, actionlint, ast-grep
  • Adds knowledge base auto-indexing of AGENTS.md, CLAUDE.md, CONTRIBUTING.md
  • Adds path_filters for node_modules, dist, minified JS, yarn.lock

Test plan

  • Verify CodeRabbit picks up the new config on the next PR
  • Confirm no false-positive noise from path_instructions on unrelated file types

Made with Cursor

onmete and others added 3 commits May 20, 2026 15:59
Covers adding an optional tlsCertificate ConfigMap reference to
LLMProviderSpec for corporate proxy CA injection into sandbox pods.

Co-authored-by: Cursor <cursoragent@cursor.com>
- crd-api.md: Add rule 22 for spec.tlsCertificate ConfigMapReference,
  add ConfigMapReference to shared types, update LLMProvider config surface
- sandbox-execution.md: Add rule 17 for TLS CA bundle injection behavior
  (ConfigMap mount, init container concatenation, SSL_CERT_FILE,
  NODE_EXTRA_CA_CERTS), update planned changes
- reconciler.md: Add patchTLSCertificate and addInitContainer to module
  map, update EnsureAgentTemplate description

Co-authored-by: Cursor <cursoragent@cursor.com>
Adopts the security configuration from openshift/coderabbit#17 which adds
Red Hat Product Security recommended review rules, path-specific security
instructions, security scanner tooling, and knowledge base indexing.

Adds:
- Global review instructions (secrets, crypto, injection, container
  privileges, sensitive logging, AI attribution)
- 18 path-specific security review blocks (injection, web, crypto,
  containers, K8s/OpenShift, MCP, agents, LLM, supply chain, CI/CD,
  auth, API gateway, Go, C/C++, database, messaging, model registry)
- Security scanners: gitleaks, semgrep, checkov, hadolint, trivy,
  osvScanner, actionlint, ast-grep
- Knowledge base auto-indexing of AGENTS.md, CLAUDE.md, CONTRIBUTING.md
- Additional path_filters for node_modules, dist, minified JS, yarn.lock

Co-authored-by: Cursor <cursoragent@cursor.com>
@openshift-ci openshift-ci Bot requested review from blublinsky and xrajesh May 26, 2026 12:05
@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented May 26, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign xrajesh for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

onmete and others added 2 commits May 26, 2026 14:19
Noise reduction — disable defaults that add clutter without value:
- in_progress_fortune, suggested_labels, suggested_reviewers,
  estimate_code_review_effort, related_prs
- finishing_touches for docstrings and unit_tests (prevents
  CodeRabbit from opening follow-up PRs)

Useful additions:
- language: en-US, early_access: true
- tone_instructions: direct and concise, focus on bugs/security
- high_level_summary_in_walkthrough: true
- enable_prompt_for_ai_agents: true (AI-friendly inline prompts)
- knowledge_base.jira: auto (cross-reference Jira issues)
- knowledge_base.linked_repositories: sandbox repo for cross-repo
  dependency awareness
- tools: shellcheck, golangci-lint, yamllint (language-specific linters)

Co-authored-by: Cursor <cursoragent@cursor.com>
- Use recursive glob patterns (**/node_modules/**, **/dist/**,
  **/*.min.js, **/yarn.lock) so nested projects are covered
- Add Cargo.lock to the supply-chain path_instructions glob
  alongside Cargo.toml for consistency

Co-authored-by: Cursor <cursoragent@cursor.com>
@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented May 26, 2026

@onmete: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/generate c14af6a link true /test generate
ci/prow/unit c14af6a link true /test unit

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

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