Skip to content

SANDBOX-1357: update kube & openshift dependencies to 4.19#544

Closed
rsoaresd wants to merge 4 commits intomasterfrom
openshift_4_19_registration_service
Closed

SANDBOX-1357: update kube & openshift dependencies to 4.19#544
rsoaresd wants to merge 4 commits intomasterfrom
openshift_4_19_registration_service

Conversation

@rsoaresd
Copy link
Contributor

@rsoaresd rsoaresd commented Sep 4, 2025

Description

Update dependencies

Tool/Library Current Version Updates to Version
k8s.io/* v0.31.2 v0.32.1
controller-runtime v0.19.7 v0.20.4
controller-tools v0.16.5 v0.17.2

Related PRs

Issue ticket number and link

SANDBOX-1357

Summary by CodeRabbit

  • Chores
    • Updated an indirect third-party library to a newer version for improved compatibility.
    • Refined vulnerability scanning configuration by adding a time-bounded ignore entry, reducing noisy alerts while maintaining visibility into security status.

@openshift-ci openshift-ci bot requested review from metlos and mfrancisc September 4, 2025 14:09
@openshift-ci openshift-ci bot added the approved label Sep 4, 2025
@coderabbitai
Copy link

coderabbitai bot commented Sep 4, 2025

Walkthrough

Adds a dated ignore entry for vulnerability GO-2025-3595 in .govulncheck.yaml and bumps the indirect dependency github.com/openshift/api in go.mod to a newer pseudo-version.

Changes

Cohort / File(s) Summary
Vulnerability policy config
.\govulncheck.yaml
Replaces empty ignored-vulnerabilities list with a structured list; adds entry for GO-2025-3595 including info URL and silence-until date, with inline comments.
Go module dependency
go.mod
Updates indirect dependency github.com/openshift/api from v0.0.0-20250903165707-ce7baf0afbc4 to v0.0.0-20250904140438-5b2b8cafdd82.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

I twitch my whiskers, scan the log,
A hush for one small vuln to fog—
Date-bound snooze, then back to prowl,
While deps hop forward, fresh as now.
Carrot commits, a gentle nudge 🥕
Ship it swift—no need to trudge!

✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch openshift_4_19_registration_service

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
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

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

Other keywords and placeholders

  • Add @coderabbitai ignore or @coderabbit ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@openshift-ci
Copy link

openshift-ci bot commented Sep 4, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: rsoaresd

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

The pull request process is described 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

@sonarqubecloud
Copy link

sonarqubecloud bot commented Sep 4, 2025

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
go.mod (1)

178-181: Remove replace directives from go.mod

The two replace lines are still present (go.mod lines 178 and 180) and must be removed before merge:

-replace github.com/codeready-toolchain/api => github.com/rsoaresd/api v0.0.0-20250904111715-ce08642a4499
-
-replace github.com/codeready-toolchain/toolchain-common => github.com/rsoaresd/toolchain-common v0.0.0-20250904123823-7c569c802618
+

After removal, re-run:

rg -n '^replace\s' go.mod
go mod tidy
go mod graph | rg 'github.com/codeready-toolchain/(api|toolchain-common)@'

to confirm no personal-fork replaces remain and dependencies resolve to upstream.

🧹 Nitpick comments (1)
.govulncheck.yaml (1)

7-7: Add trailing newline

Fix YAML lint error: “no new line character at the end of file.”

-    silence-until: 2025-09-17
+    silence-until: 2025-09-17
+
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between ceebb4e and 7820ff7.

⛔ Files ignored due to path filters (1)
  • go.sum is excluded by !**/*.sum
📒 Files selected for processing (2)
  • .govulncheck.yaml (1 hunks)
  • go.mod (1 hunks)
🧰 Additional context used
🪛 YAMLlint (1.37.1)
.govulncheck.yaml

[error] 7-7: no new line character at the end of file

(new-line-at-end-of-file)

⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
  • GitHub Check: GolangCI Lint
  • GitHub Check: Test with Coverage
  • GitHub Check: Build & push operator bundles for e2e tests
🔇 Additional comments (1)
go.mod (1)

152-154: Update OpenShift API branch comment to release-4.19
The inline comment in go.mod (lines 152–154) still references branch release-4.16. Confirm that commit 5b2b8cafdd82 is from release-4.19 and then update the comment to reflect “aligned with OpenShift API release-4.19.”

Comment on lines +1 to +7
ignored-vulnerabilities:
# Incorrect Neutralization of Input During Web Page Generation in x/net in golang.org/x/net
# Found in Found in: golang.org/x/net/html@v0.33.0
# Fixed in Fixed in: golang.org/x/net/html@v0.38.0
- id: GO-2025-3595
info: https://pkg.go.dev/vuln/GO-2025-3595
silence-until: 2025-09-17 No newline at end of file
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Verification agent

🧩 Analysis chain

Don’t suppress GO-2025-3595 if you can patch; bump x/net to a fixed version

The note says fixed in golang.org/x/net/html@v0.38.0, but go.mod resolves golang.org/x/net v0.34.0 (indirect). Prefer upgrading to ≥0.38.0 and dropping this ignore.

Proposed changes:

  • In go.mod force a safe minimum:
-	golang.org/x/net v0.34.0 // indirect
+	golang.org/x/net v0.38.0 // indirect
  • Then remove this ignore entry after go mod tidy passes, or keep it with a very short silence window until the bump merges.

To verify what version is actually used:


🏁 Script executed:

#!/bin/bash
go mod graph | rg 'golang.org/x/net@'

Length of output: 8357


Bump golang.org/x/net to v0.38.0 and remove GO-2025-3595 ignore
go mod graph shows the highest x/net version in use is v0.34.0; v0.38.0 includes the HTML fix for GO-2025-3595. Update go.mod to require ≥v0.38.0, run go mod tidy, then drop this ignore entry.

🧰 Tools
🪛 YAMLlint (1.37.1)

[error] 7-7: no new line character at the end of file

(new-line-at-end-of-file)

@rsoaresd rsoaresd closed this Sep 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant