Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OCPBUGS-16482: Update dependencies to remove goproxy dependency #701

Merged
merged 2 commits into from Oct 19, 2023

Conversation

rwsu
Copy link
Contributor

@rwsu rwsu commented Aug 16, 2023

A Denial of service (DoS) via unspecified vectors issue was found in goproxy (CVE-2023-37788). This module is pulled in by k8s.io/apimachinery which in turn is pulled in by machine-config-operator.

goproxy is no longer used by k8s.io/apimachinery starting with v0.27.0. We can remove this potential issue by moving to newer versions.

Updated dependencies to newer versions to remove the goproxy dep.

  • go get -u github.com/openshift/api@release-4.13
  • go get -u github.com/openshift/machine-config-operator@release-4.13
  • go get -u k8s.io/client-go@v0.28.0
  • Remove replace for api in go.mod
  • go get -u sigs.k8s.io/controller-runtime@v0.15.1
  • go get -u github.com/openshift/machine-api-operator@release-4.13
  • replace imports of "github.com/openshift/machine-api-operator/pkg/apis/machine/v1beta1" with "github.com/openshift/api/machine/v1beta1" as it moved to the openshift/api repo.
  • update replace baremetal-operator/apis and baremetal-operator/pkg/hardwareutils to v0.0.0-20230531194024-8dde0991ffdd in go.mod to match the other version changes

@openshift-ci-robot openshift-ci-robot added jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. labels Aug 16, 2023
@openshift-ci-robot
Copy link

@rwsu: This pull request references Jira Issue OCPBUGS-16482, which is valid. The bug has been moved to the POST state.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (4.14.0) matches configured target version for branch (4.14.0)
  • bug is in the state ASSIGNED, which is one of the valid states (NEW, ASSIGNED, POST)

Requesting review from QA contact:
/cc @mhanss

The bug has been updated to refer to the pull request using the external bug tracker.

In response to this:

A Denial of service (DoS) via unspecified vectors issue was found in goproxy. This module is pulled in by k8s.io/apimachinery which in turn is pulled in by machine-config-operator.

goproxy is no longer used by k8s.io/apimachinery starting with v0.27.0. We can remove this potential issue by moving to newer versions.

Updated dependencies to newer versions to remove the goproxy dep.

  • go get -u github.com/openshift/api@release-4.13
  • go get -u github.com/openshift/machine-config-operator@release-4.13
  • go get -u k8s.io/client-go@v0.28.0
  • Remove replace for api in go.mod
  • go get -u sigs.k8s.io/controller-runtime@v0.15.1
  • go get -u github.com/openshift/machine-api-operator@release-4.13
  • replace imports of "github.com/openshift/machine-api-operator/pkg/apis/machine/v1beta1" with "github.com/openshift/api/machine/v1beta1" as it moved to the openshift/api repo.
  • update replace baremetal-operator/apis and baremetal-operator/pkg/hardwareutils to v0.0.0-20230531194024-8dde0991ffdd in go.mod to match the other version changes

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/test-infra repository.

@openshift-ci openshift-ci bot requested a review from mhanss August 16, 2023 21:56
@openshift-ci openshift-ci bot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Aug 16, 2023
@codecov
Copy link

codecov bot commented Aug 16, 2023

Codecov Report

Merging #701 (97b8ac8) into master (10f4681) will increase coverage by 0.10%.
Report is 1 commits behind head on master.
The diff coverage is n/a.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #701      +/-   ##
==========================================
+ Coverage   55.59%   55.70%   +0.10%     
==========================================
  Files          14       14              
  Lines        3119     3129      +10     
==========================================
+ Hits         1734     1743       +9     
- Misses       1224     1226       +2     
+ Partials      161      160       -1     
Files Coverage Δ
...taller_controller/assisted_installer_controller.go 76.37% <ø> (ø)

... and 2 files with indirect coverage changes

@openshift-ci-robot
Copy link

@rwsu: This pull request references Jira Issue OCPBUGS-16482, which is valid.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (4.14.0) matches configured target version for branch (4.14.0)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, POST)

Requesting review from QA contact:
/cc @mhanss

In response to this:

A Denial of service (DoS) via unspecified vectors issue was found in goproxy (CVE-2023-37788). This module is pulled in by k8s.io/apimachinery which in turn is pulled in by machine-config-operator.

goproxy is no longer used by k8s.io/apimachinery starting with v0.27.0. We can remove this potential issue by moving to newer versions.

Updated dependencies to newer versions to remove the goproxy dep.

  • go get -u github.com/openshift/api@release-4.13
  • go get -u github.com/openshift/machine-config-operator@release-4.13
  • go get -u k8s.io/client-go@v0.28.0
  • Remove replace for api in go.mod
  • go get -u sigs.k8s.io/controller-runtime@v0.15.1
  • go get -u github.com/openshift/machine-api-operator@release-4.13
  • replace imports of "github.com/openshift/machine-api-operator/pkg/apis/machine/v1beta1" with "github.com/openshift/api/machine/v1beta1" as it moved to the openshift/api repo.
  • update replace baremetal-operator/apis and baremetal-operator/pkg/hardwareutils to v0.0.0-20230531194024-8dde0991ffdd in go.mod to match the other version changes

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/test-infra repository.

@eranco74
Copy link
Contributor

lgtm, just need to pass lint...

@openshift-ci openshift-ci bot added the downstream-change-needed Requires updating downstream image label Aug 17, 2023
rwsu added a commit to rwsu/assisted-installer that referenced this pull request Aug 17, 2023
Cannot update golangci-lint in the same PR as one exhibiting
issues because the CI still uses the previous version.

Updating k8s.io/apimachinery module to a newer version
causes the old linter to throw nil pointer error.

Example openshift#701
rwsu added a commit to rwsu/assisted-installer that referenced this pull request Aug 17, 2023
Cannot update golangci-lint in the same PR as one exhibiting
issues because the CI still uses the previous version.

Updating k8s.io/apimachinery module to a newer version
causes the old linter to throw nil pointer error.

Example openshift#701
openshift-merge-robot pushed a commit that referenced this pull request Aug 21, 2023
Cannot update golangci-lint in the same PR as one exhibiting
issues because the CI still uses the previous version.

Updating k8s.io/apimachinery module to a newer version
causes the old linter to throw nil pointer error.

Example #701
@rwsu
Copy link
Contributor Author

rwsu commented Aug 21, 2023

/retest-required

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Sep 28, 2023
@openshift-ci
Copy link

openshift-ci bot commented Sep 28, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: osherdp, rwsu

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

The pull request process is described here

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

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 28, 2023
@rwsu
Copy link
Contributor Author

rwsu commented Oct 2, 2023

@osherdp Can the downstream-change-needed label be removed?

@osherdp
Copy link
Contributor

osherdp commented Oct 2, 2023

@osherdp Can the downstream-change-needed label be removed?

In this case, yes
/remove-label downstream-change-needed

@openshift-ci openshift-ci bot removed the downstream-change-needed Requires updating downstream image label Oct 2, 2023
@openshift-ci-robot openshift-ci-robot added jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. and removed jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. labels Oct 2, 2023
@openshift-ci-robot
Copy link

@rwsu: This pull request references Jira Issue OCPBUGS-16482, which is invalid:

  • expected the bug to target the "4.15.0" version, but it targets "4.14.0" instead

Comment /jira refresh to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.

In response to this:

A Denial of service (DoS) via unspecified vectors issue was found in goproxy (CVE-2023-37788). This module is pulled in by k8s.io/apimachinery which in turn is pulled in by machine-config-operator.

goproxy is no longer used by k8s.io/apimachinery starting with v0.27.0. We can remove this potential issue by moving to newer versions.

Updated dependencies to newer versions to remove the goproxy dep.

  • go get -u github.com/openshift/api@release-4.13
  • go get -u github.com/openshift/machine-config-operator@release-4.13
  • go get -u k8s.io/client-go@v0.28.0
  • Remove replace for api in go.mod
  • go get -u sigs.k8s.io/controller-runtime@v0.15.1
  • go get -u github.com/openshift/machine-api-operator@release-4.13
  • replace imports of "github.com/openshift/machine-api-operator/pkg/apis/machine/v1beta1" with "github.com/openshift/api/machine/v1beta1" as it moved to the openshift/api repo.
  • update replace baremetal-operator/apis and baremetal-operator/pkg/hardwareutils to v0.0.0-20230531194024-8dde0991ffdd in go.mod to match the other version changes

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/test-infra repository.

A Denial of service (DoS) via unspecified vectors issue was found
in goproxy. This module is pulled in by k8s.io/apimachinery which
in turn is pulled in by machine-config-operator.

goproxy is no longer used by k8s.io/apimachinery starting with
v0.27.0. We can remove this potential issue by moving to newer
versions.

Updated dependencies to newer versions to remove the goproxy dep.

* go get -u github.com/openshift/api@release-4.13
* go get -u github.com/openshift/machine-config-operator@release-4.13
* go get -u k8s.io/client-go@v0.28.0
* Remove replace for api in go.mod
* go get -u sigs.k8s.io/controller-runtime@v0.15.1
* go get -u github.com/openshift/machine-api-operator@release-4.13
* replace imports of
  "github.com/openshift/machine-api-operator/pkg/apis/machine/v1beta1"
  with "github.com/openshift/api/machine/v1beta1"
  as it moved to the openshift/api repo.
* update replace baremetal-operator/apis and
  baremetal-operator/pkg/hardwareutils to
  v0.0.0-20230531194024-8dde0991ffdd in go.mod to match the other
  version changes
@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Oct 16, 2023
@rwsu
Copy link
Contributor Author

rwsu commented Oct 16, 2023

/jira refresh

@openshift-ci-robot openshift-ci-robot added jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. and removed jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. labels Oct 16, 2023
@openshift-ci-robot
Copy link

@rwsu: This pull request references Jira Issue OCPBUGS-16482, which is valid.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (4.15.0) matches configured target version for branch (4.15.0)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, POST)

Requesting review from QA contact:
/cc @mhanss

In response to this:

/jira refresh

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/test-infra repository.

@omertuc
Copy link
Contributor

omertuc commented Oct 18, 2023

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Oct 18, 2023
@openshift-ci-robot
Copy link

/retest-required

Remaining retests: 0 against base HEAD dc35bcb and 2 for PR HEAD 97b8ac8 in total

@omertuc
Copy link
Contributor

omertuc commented Oct 19, 2023

Known issue with edge-e2e-metal-assisted, let's wait for it to be fixed

@gamli75
Copy link
Contributor

gamli75 commented Oct 19, 2023

/test edge-e2e-metal-assisted

@openshift-ci
Copy link

openshift-ci bot commented Oct 19, 2023

@rwsu: all tests passed!

Full PR test history. Your PR dashboard.

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/test-infra repository. I understand the commands that are listed here.

@openshift-ci openshift-ci bot merged commit 2d99fad into openshift:master Oct 19, 2023
10 checks passed
@openshift-ci-robot
Copy link

@rwsu: Jira Issue OCPBUGS-16482: All pull requests linked via external trackers have merged:

Jira Issue OCPBUGS-16482 has been moved to the MODIFIED state.

In response to this:

A Denial of service (DoS) via unspecified vectors issue was found in goproxy (CVE-2023-37788). This module is pulled in by k8s.io/apimachinery which in turn is pulled in by machine-config-operator.

goproxy is no longer used by k8s.io/apimachinery starting with v0.27.0. We can remove this potential issue by moving to newer versions.

Updated dependencies to newer versions to remove the goproxy dep.

  • go get -u github.com/openshift/api@release-4.13
  • go get -u github.com/openshift/machine-config-operator@release-4.13
  • go get -u k8s.io/client-go@v0.28.0
  • Remove replace for api in go.mod
  • go get -u sigs.k8s.io/controller-runtime@v0.15.1
  • go get -u github.com/openshift/machine-api-operator@release-4.13
  • replace imports of "github.com/openshift/machine-api-operator/pkg/apis/machine/v1beta1" with "github.com/openshift/api/machine/v1beta1" as it moved to the openshift/api repo.
  • update replace baremetal-operator/apis and baremetal-operator/pkg/hardwareutils to v0.0.0-20230531194024-8dde0991ffdd in go.mod to match the other version changes

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/test-infra repository.

@openshift-merge-robot
Copy link

Fix included in accepted release 4.15.0-0.nightly-2023-10-24-230302

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants