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

Remove SHA1 for certs in prep for Go 1.18 #16455

Merged
merged 4 commits into from Jul 28, 2022
Merged

Remove SHA1 for certs in prep for Go 1.18 #16455

merged 4 commits into from Jul 28, 2022

Conversation

swenson
Copy link
Contributor

@swenson swenson commented Jul 26, 2022

  • Remove certs with SHA1 from tests
  • Use default SHA-256 with PKCS7 in AWS
  • Update SHA1 deprecation note

* Remove certs with SHA1 from tests
* Use default SHA-256 with PKCS7 in AWS
* Update SHA1 deprecation note
@swenson swenson requested a review from sgmiller July 26, 2022 17:56
@swenson swenson requested a review from taoism4504 as a code owner July 26, 2022 17:56
@swenson swenson requested a review from a team July 26, 2022 17:56
@swenson
Copy link
Contributor Author

swenson commented Jul 26, 2022

I confirmed that all tests pass locally with Go 1.18 on linux/amd64

builtin/credential/aws/pkcs7/sign_test.go Outdated Show resolved Hide resolved
case *dsa.PrivateKey:
template.SignatureAlgorithm = x509.DSAWithSHA1
}
priv = &dsaPriv
}
Copy link
Member

Choose a reason for hiding this comment

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

I wonder if there should be a default case here that throws an error if sigAlg isn't one of the known cases?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Possibly. But not critical I think since this is only in a _test.go file.

Co-authored-by: Theron Voran <tvoran@users.noreply.github.com>
@swenson
Copy link
Contributor Author

swenson commented Jul 28, 2022

Thanks!

@swenson swenson merged commit 829d522 into main Jul 28, 2022
@swenson swenson deleted the ready-for-go-1.18 branch July 28, 2022 16:14
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.

None yet

2 participants