Skip to content

[deps] update jruby-openssl to 0.14.2#7867

Merged
kares merged 1 commit intojruby:masterfrom
chadlwilson:jossl_0142
Aug 8, 2023
Merged

[deps] update jruby-openssl to 0.14.2#7867
kares merged 1 commit intojruby:masterfrom
chadlwilson:jossl_0142

Conversation

@chadlwilson
Copy link
Contributor

See https://github.com/jruby/jruby-openssl/releases/tag/v0.14.2

Not sure from @kares if this is "ready", but there is some CVE noise (that doesn't affect JRuby) mentioned at jruby/jruby-openssl#278 within the bundled bouncy castle version which would be nice to get rid of on the next JRuby 9.4.x release.

@chadlwilson
Copy link
Contributor Author

There seem to be a few flakes here, but imagine they might be OK after a rerun?

@enebo
Copy link
Member

enebo commented Aug 1, 2023

@chadlwilson only one failure seems valid. I am guessing newer openssl is larger than before so we exceed some size check. This is not a real problem though unless we changed packaging of that gem and it has extra crud in it.

@kares is this something we should update yet?

@chadlwilson
Copy link
Contributor Author

chadlwilson commented Aug 1, 2023

@enebo Hmm, that seems odd. I'd actually expect it should reduce jar size by about 3 MB as they removed a whole lot of stuff from Bouncy Castle in this release which was quite a big component within jruby-complete etc if I recall correctly.

Might require some digging to see why this is.

@chadlwilson
Copy link
Contributor Author

chadlwilson commented Aug 1, 2023

OK, so the increase does seem to be expected. While BouncyCastle 1.74 used by jruby-openssl 0.14.2 did reduce bcprov-jdk18on (provider) jar size compared to 1.73, it's still increased a lot compared to 1.71 which was the previous version in use by jruby-openssl 0.14.1.

This is mainly due to addition of a lot of post quantum crypto support, even though some algorithms have been removed in 1.74.

https://rubygems.org/gems/jruby-openssl/versions/0.14.1-java 8.58 MB
https://rubygems.org/gems/jruby-openssl/versions/0.14.2-java 10.70 MB (+ 2.1 MB)

bcprov-jdk18on raw jar sizes
1.71 5.8 MB
1.72 10.8 MB (+ 5.0 MB)
1.73 10.9 MB (+ 5.1 MB)
1.74 8.0 MB (+ 2.1 MB)

So while unfortunate, the size increase is expected 😬

Signed-off-by: Chad Wilson <chadw@thoughtworks.com>
@enebo
Copy link
Member

enebo commented Aug 1, 2023

@chadlwilson Thanks for doing that sleuthing. Now we will just see what @kares has to say.

Copy link
Member

@kares kares left a comment

Choose a reason for hiding this comment

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

Thanks for taking care of this Chad, I do recall you mentioned code being removed from BC.

But indeed as I updated BC in JOSSL noticed a size increase, did not investigate why.
I do assume it's legit - seems the bcprov jar had more than 2MB increase since 1.71.

@kares kares added this to the JRuby 9.4.4.0 milestone Aug 8, 2023
@kares kares merged commit e54fd1d into jruby:master Aug 8, 2023
@chadlwilson chadlwilson deleted the jossl_0142 branch August 8, 2023 09:11
kares pushed a commit that referenced this pull request Aug 8, 2023
Signed-off-by: Chad Wilson <chadw@thoughtworks.com>
@kares
Copy link
Member

kares commented Aug 8, 2023

for the record, also merged the changes for next 9.3: #7877

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.

3 participants