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

Re-implement missing jruby functionality atop java.security #192

Conversation

segiddins
Copy link
Member

Signed-off-by: Samuel Giddins [email protected]

@segiddins segiddins force-pushed the segiddins/re-implement-missing-jruby-functionality-atop-java.security branch from 3be06b6 to 882a525 Compare January 27, 2025 17:21
@segiddins segiddins force-pushed the segiddins/re-implement-missing-jruby-functionality-atop-java.security branch from 882a525 to 51f9811 Compare February 14, 2025 03:12
@segiddins segiddins force-pushed the segiddins/re-implement-missing-jruby-functionality-atop-java.security branch from 51f9811 to b97e5ad Compare February 14, 2025 03:23
@@ -309,11 +381,15 @@ def parse_value(value)
@general_names = value.map do |general_name|
tag = general_name.tag

value = general_name.value
value = value.first if value.is_a?(Array) && value.size == 1
Copy link
Member Author

Choose a reason for hiding this comment

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

i think this is a jruby discrepancy here -- file issue for it

Copy link
Member Author

Choose a reason for hiding this comment

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

lib/sigstore/internal/x509.rb Outdated Show resolved Hide resolved
lib/sigstore/internal/x509.rb Outdated Show resolved Hide resolved
lib/sigstore/internal/x509.rb Outdated Show resolved Hide resolved
lib/sigstore/verifier.rb Outdated Show resolved Hide resolved
@segiddins segiddins marked this pull request as ready for review February 14, 2025 04:04
@segiddins segiddins requested a review from woodruffw February 14, 2025 04:44
@segiddins
Copy link
Member Author

Cc @headius, I think this works around most of the incompatibilities / missing features needed from jruby-openssl

@headius
Copy link

headius commented Feb 18, 2025

This is a very cool set of changes! We are fully willing to include pure-Ruby fixes in jruby-openssl if it makes sense for us to do so, and moving that library as much as possible toward 100% java.security is a key goal of mine.

@segiddins We would love to see PRs for any appropriate changes you've made to work around jruby-openssl.

@kares I think it's worth exploring these and other changes to try to improve functionality and slowly chip away at how much Bouncy Castle we need.

@segiddins segiddins enabled auto-merge (squash) February 19, 2025 03:35
@segiddins segiddins merged commit c8ad4cf into main Feb 19, 2025
44 checks passed
@segiddins segiddins deleted the segiddins/re-implement-missing-jruby-functionality-atop-java.security branch February 19, 2025 04:25
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