WIP: Fake bump to get credentials in KMS plugin#903
Conversation
WalkthroughThis PR updates the Go module dependency for ChangesKMS Encryption Provider Update
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 minutes Suggested reviewers
Important Pre-merge checks failedPlease resolve all errors before merging. Addressing warnings is optional. ❌ Failed checks (1 error, 2 warnings, 1 inconclusive)
✅ Passed checks (11 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@go.mod`:
- Line 137: The global go.mod replace redirecting
github.com/openshift/library-go to github.com/bertinatto/library-go (the replace
line) must not be left as an unscoped personal fork: either revert this replace
to restore the upstream module, or restrict it to test/e2e modules or a
temporary tool-specific go.work so production code importing
github.com/openshift/library-go (e.g., pkg/operator/starter.go and other
imports) are unaffected; if you must keep the forked replace, add an in-file
justification comment and a short supply-chain control section in the repo
(linking signed provenance/attestation like Sigstore/cosign, license
compatibility confirmation, and an explicit expiry/scope plan and
reviewer/owner) so maintainers can review the change safely.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository: openshift/coderabbit/.coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: fde8468e-fc59-4d05-bb8d-b996d10b3924
⛔ Files ignored due to path filters (7)
go.sumis excluded by!**/*.sumvendor/github.com/openshift/library-go/pkg/operator/certrotation/target.gois excluded by!**/vendor/**,!vendor/**vendor/github.com/openshift/library-go/pkg/operator/encryption/encryptiondata/secret.gois excluded by!**/vendor/**,!vendor/**vendor/github.com/openshift/library-go/pkg/operator/encryption/kms/pluginlifecycle/sidecar.gois excluded by!**/vendor/**,!vendor/**vendor/github.com/openshift/library-go/pkg/operator/encryption/kms/pluginlifecycle/vault.gois excluded by!**/vendor/**,!vendor/**vendor/github.com/openshift/library-go/test/library/encryption/kms/vault.gois excluded by!**/vendor/**,!vendor/**vendor/modules.txtis excluded by!**/vendor/**,!vendor/**
📒 Files selected for processing (2)
go.modtest/e2e-encryption-kms/encryption_kms.go
|
|
||
| replace github.com/onsi/ginkgo/v2 => github.com/openshift/onsi-ginkgo/v2 v2.6.1-0.20251001123353-fd5b1fb35db1 | ||
|
|
||
| replace github.com/openshift/library-go => github.com/bertinatto/library-go v0.0.0-20260529122804-e63c73d0ca68 |
There was a problem hiding this comment.
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
set -euo pipefail
echo "== Replace directives =="
rg -n '^\s*replace\s+' go.mod
echo
echo "== library-go imports outside tests (impact scope) =="
rg -n --type go '"github.com/openshift/library-go' -g '!**/vendor/**' -g '!**/*_test.go' -g '!**/test/**' || true
echo
echo "== library-go imports in tests =="
rg -n --type go '"github.com/openshift/library-go' -g '!**/vendor/**' -g '**/*_test.go' -g '**/test/**' || trueRepository: openshift/cluster-authentication-operator
Length of output: 27577
Request changes: don’t globally replace github.com/openshift/library-go with an untrusted personal fork without provenance/scope controls
go.mod line 137 adds a global module replace redirecting github.com/openshift/library-go to github.com/bertinatto/library-go v0.0.0-20260529122804-e63c73d0ca68 with no in-file justification. This impacts non-test/production code (e.g., pkg/operator/starter.go imports many github.com/openshift/library-go/... packages), not just e2e/tests.
Provide explicit, reviewable supply-chain rationale and controls (provenance/attestations such as Sigstore/cosign, license compatibility confirmation, and a clear expiry/scope plan), or revert/gate the change to a safer mechanism (not a global go.mod replace to a personal fork).
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@go.mod` at line 137, The global go.mod replace redirecting
github.com/openshift/library-go to github.com/bertinatto/library-go (the replace
line) must not be left as an unscoped personal fork: either revert this replace
to restore the upstream module, or restrict it to test/e2e modules or a
temporary tool-specific go.work so production code importing
github.com/openshift/library-go (e.g., pkg/operator/starter.go and other
imports) are unaffected; if you must keep the forked replace, add an in-file
justification comment and a short supply-chain control section in the repo
(linking signed provenance/attestation like Sigstore/cosign, license
compatibility confirmation, and an explicit expiry/scope plan and
reviewer/owner) so maintainers can review the change safely.
|
@bertinatto: The following tests failed, say
Full PR test history. Your PR dashboard. DetailsInstructions 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. |
Summary by CodeRabbit
Chores
Tests