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

openssl: upgrade bindings package #1800

Draft
wants to merge 2 commits into
base: stage
Choose a base branch
from

Conversation

iurii-ssv
Copy link

@iurii-ssv iurii-ssv commented Oct 18, 2024

This PR switches OpenSSL package we use for RSA from https://github.com/microsoft/go-crypto-openssl (now deprecated) to https://github.com/golang-fips/openssl,

according to benchmarks I ran, it doesn't bring any performance improvements though.

We can also close this PR for now, and we can get back to it later on. See #1348 for additional historical context.

Reminder to self, before merging will need to:

  • test/check (by deploying to stage) there aren't any panic/fatal/segmentation/fault/cgo errors related to this change

@iurii-ssv iurii-ssv marked this pull request as draft October 18, 2024 09:24
panic(err)
}
}

// getVersion returns the highest available OpenSSL version.
func getVersion() string {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you please add a comment that this code is taken from https://github.com/golang-fips/openssl/blob/v2/openssl_test.go?

Copy link
Author

Choose a reason for hiding this comment

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

Yup, the reason is https://github.com/golang-fips/openssl doesn't really provide any examples/docs on how this should be done, so I found this approach to work for me (in Docker),

added a note on this.

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.

2 participants