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

fix: remove deprecated default cipher for golang >=1.22 #17569

Merged
merged 3 commits into from Apr 17, 2024

Conversation

joshrwolf
Copy link
Contributor

@joshrwolf joshrwolf commented Mar 19, 2024

Closes #17571

newer versions of go remove the TLS_RSA_WITH_AES_256_GCM_SHA384 as an available cipher.

this PR simply removes it in favor of the existing default TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384, which remains a valid default option for the existing go toolchain version, and future ones

Checklist:

  • [] Either (a) I've created an enhancement proposal and discussed it with the community, (b) this is a bug fix, or (c) this does not need to be in the release notes.
  • The title of the PR states what changed and the related issues number (used for the release note).
  • The title of the PR conforms to the Toolchain Guide
  • I've included "Closes [ISSUE #]" or "Fixes [ISSUE #]" in the description to automatically close the associated issue.
  • I've updated both the CLI and UI to expose my feature, or I plan to submit a second PR with them.
  • Does this PR require documentation updates?
  • I've updated documentation as required by this PR.
  • I have signed off all my commits as required by DCO
  • I have written unit and/or e2e tests for my change. PRs without these are unlikely to be merged.
  • My build is green (troubleshooting builds).
  • My new feature complies with the feature status guidelines.
  • I have added a brief description of why this PR is necessary and/or what this PR solves.
  • Optional. My organization is added to USERS.md.
  • Optional. For bug fixes, I've indicated what older releases this fix should be cherry-picked into (this may or may not happen depending on risk/complexity).

@joshrwolf joshrwolf requested a review from a team as a code owner March 19, 2024 15:12
Signed-off-by: Josh Wolf <josh@wolfs.io>
@blakepettersson
Copy link
Member

Have you run make codegen? Which versions of Go does this apply for BTW?

@blakepettersson blakepettersson changed the title remove deprecated default cipher fix: remove deprecated default cipher for newer golang versions Mar 21, 2024
@blakepettersson
Copy link
Member

I see, golang/go#63413

@blakepettersson blakepettersson changed the title fix: remove deprecated default cipher for newer golang versions fix: remove deprecated default cipher for golang >=1.22 Mar 21, 2024
@blakepettersson
Copy link
Member

@joshrwolf I'll mark this PR as a draft until you run make codegen-local on your machine and commit those changes.

@agaudreault
Copy link
Member

FYI, I had go 1.22 installed and running the codegen locally gave me errors with packages downloaded with go 1.22. After installing 1.21, re-downloading all the local toolings in dist/, I don't have the error anymore. Not sure if there is a bigger issue on upgrading argo to 1.22, but this might affect you.

See kubernetes-sigs/controller-tools#888

+ ./dist/gen-crd-spec
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
        panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x0 pc=0x100ef4450]

Ref: kubernetes-sigs/controller-tools#888

Signed-off-by: Alexander Matyushentsev <AMatyushentsev@gmail.com>
@alexmt
Copy link
Collaborator

alexmt commented Apr 17, 2024

I took the liberty, run codegen and pushed changes to the branch (make clidocsgen to regenerate docs only)

@alexmt alexmt marked this pull request as ready for review April 17, 2024 18:47
@alexmt alexmt requested a review from a team as a code owner April 17, 2024 18:47
Copy link
Collaborator

@alexmt alexmt left a comment

Choose a reason for hiding this comment

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

LGTM

@alexmt alexmt enabled auto-merge (squash) April 17, 2024 18:53
@alexmt alexmt merged commit b867c9e into argoproj:master Apr 17, 2024
27 checks passed
@developer-guy developer-guy mentioned this pull request Apr 26, 2024
11 tasks
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.

Default cipher values are invalid for newer versions of go.
5 participants