f9ae8221b
u/f9ae8221b
Does RubyGems have a process for handling situations like this?
Unfortunately no, there was an attempt to put a process in place a few years ago, but it was canceled:
-
https://github.com/rubygems/rfcs-archived/blob/master/text/0017-remove-adoptions.md
-
https://blog.rubygems.org/2022/01/19/rubygems-adoptions.html
Are there ways to release without transferring ownership?
Yes, there's two levels of permissions in Rubygems, owner and maintainer. maintainers can't change others permissions, so the original owner could add you as maintainers to allow you to cut new releases, but wouldn't allow you to dislodge them.
Another alternative is to set up trusted publishing, so that the release process is automated, hence allowing you to release with just the GitHub merge permissions.
But in both case it requires the current owner involvement.
And finally, bundler 4.1 that will release soon introduce a new override feature, that allow overriding dependencies in you gemfile (I'd link to the announcement but Reddit doesn't like devto links), so if you decide to fork under another name, it won't be as bad for your users, they'll be able to migrate regardless to what other gems they may be using have in their dependencies.
This kinda was my first reaction too, but over time I've been humbled by various vulnerabilities found in code I trusted.
I totally agree calling Regexp.new on user input is a terrible idea, but often the way it end up happening is that you don't directly do that, but pass user input to an underlying library or method without realizing it builds a regexp from it.
e.g. Even some Ruby core methods like String#match will implicitly compile a regexp when passed a string.
I suspect few Ruby applications are actually exploitable using that vulnerability, but it's so hard to tell with 100% certainty that it's best to just patch.
unusual but has happened before moves where they give someone else access to rubygems publishing for the name
Has it really happened before? I have no knowledge of such event (no bundler doesn't qualify IMO). Back when httpclient was without a maintainer and breaking large portions of the ecosystem, I tried getting the rubygems team to give me or someone else access and they weren't willing to do so.
That being said, most of the team changed, and the times are changing too, perhaps they'd be more receptive now to put a process in place for re-adoption of important gems.
It's not that bad, htmlentities is a dependency of premailer: https://rubygems.org/gems/htmlentities/reverse_dependencies, so that could be a bit of a problem. After that it's not so common gems.
The second one also doesn't have super popular reverse dependencies it seems: https://rubygems.org/gems/text/reverse_dependencies