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

[release-1.12] fix invalid handling of ip addresses in comparisons #6297

Merged

Conversation

SgtCoDFish
Copy link
Member

@SgtCoDFish SgtCoDFish commented Aug 24, 2023

This manual backport of #6293 was to avoid adding a new dependency to the 1.12 branch of cert-manager. It uses sort.Slice instead of the slices package.

We first tried an automatic backport via #6295 but realised a manual backport would be needed

Kind

/kind bug

Release Note

Fixes an issue where cert-manager would incorrectly reject two IP addresses as being unequal when they should have compared equal. This would be most noticeable when using an IPv6 address which doesn't match how Go's `net.IP.String()` function would have printed that address.

This manual backport was to avoid adding a new dependency[1] to the 1.12
branch of cert-manager. It uses sort.Slice instead of the slices
package.

[1] https://pkg.go.dev/golang.org/x/exp/slices

Signed-off-by: Ashley Davis <ashley.davis@venafi.com>
@jetstack-bot jetstack-bot added kind/bug Categorizes issue or PR as related to a bug. release-note Denotes a PR that will be considered when it comes time to generate release notes. dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. approved Indicates a PR has been approved by an approver from all required OWNERS files. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Aug 24, 2023
@inteon
Copy link
Member

inteon commented Aug 24, 2023

/approve
/lgtm

@jetstack-bot jetstack-bot added the lgtm Indicates that a PR is ready to be merged. label Aug 24, 2023
@jetstack-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: inteon, SgtCoDFish

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

@jetstack-bot jetstack-bot merged commit 3c13ce5 into cert-manager:release-1.12 Aug 24, 2023
7 checks passed
@SgtCoDFish SgtCoDFish deleted the release-1.12-ipv6compare branch August 24, 2023 16:42
nrdufour added a commit to nrdufour/home-ops that referenced this pull request Sep 3, 2023
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [cert-manager](https://github.com/cert-manager/cert-manager) | patch | `v1.12.3` -> `v1.12.4` |

---

### Release Notes

<details>
<summary>cert-manager/cert-manager (cert-manager)</summary>

### [`v1.12.4`](https://github.com/cert-manager/cert-manager/releases/tag/v1.12.4)

[Compare Source](cert-manager/cert-manager@v1.12.3...v1.12.4)

v1.12.4 contains an important security fix that addresses [CVE-2023-29409](https://cve.report/CVE-2023-29409).

#### Changes since v1.12.3

-   Fixes an issue where cert-manager would incorrectly reject two IP addresses as being unequal when they should hav
    e compared equal. This would be most noticeable when using an IPv6 address which doesn't match how Go's `net.IP.Str
    ing()` function would have printed that address. ([#&#8203;6297](cert-manager/cert-manager#6297), [@&#8203;SgtCoDFish](https://github.com/SgtCoDFish))
-   Use Go 1.20.7 to fix a security issue in Go's `crypto/tls` library. ([#&#8203;6318](cert-manager/cert-manager#6318), [@&#8203;maelvls](https://github.com/maelvls))

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNi4yMy4yIiwidXBkYXRlZEluVmVyIjoiMzYuMjMuMiIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

Reviewed-on: https://git.home/nrdufour/home-ops/pulls/70
Co-authored-by: Renovate <renovate@ptinem.io>
Co-committed-by: Renovate <renovate@ptinem.io>
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. dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. kind/bug Categorizes issue or PR as related to a bug. lgtm Indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants