dominictarr / rc

The non-configurable configuration loader for lazy people.
Other
1.02k stars 97 forks source link

Fixed https://npmjs.com/advisories/1589 #121

Open JimmyBjorklund opened 3 years ago

ariross commented 3 years ago

Could this be merged in? @dominictarr if you have a chance?

jmz527 commented 3 years ago

Let's try them again. Hey @dominictarr! You around? This PR needs approval.

pavoltravnik commented 3 years ago

This change of version of ini is really essential to pass security checks. It seems, that @dominictarr is inactive on internet for a few months. How we can deal with this? Someone forks this package and release it on npm as a substitute?

blankstar85 commented 3 years ago

Bringing this to light again

goatandsheep commented 3 years ago

@TrySound can you please help? fixes #120

TrySound commented 3 years ago

🤷‍♂️

Snipx commented 3 years ago

Hey @dominictarr, apparently after some years the community really needs your help :) Do you think you can merge this PR and release a new version?

dominictarr commented 3 years ago

hey everyone! sorry to have bad news but I'm not gonna merge this. I'm gonna use this issue to point out the bigger problems with the way we do open source, for burnt out maintainers everywhere.

  1. I'm burnt out and I havn't even written any code in months.
  2. this is not actually a problem with my code, it's a dep. ini could backport the fix. then the reported thing would go away without me doing anything.
  3. I don't care about this.
  4. this is a false positive. It will be nearly impossible to actually turn this into an actual attack. this is a configuration loading library. If an attacker can write new configuration files into user space you've probably been owned anyway. But there is some tool like npm audit that's saying this is a problem, but it's not the real problem.
  5. this is not an isolated issue. I am sure there are many other cases where another ex-maintainer has a module that needs a trivial update. npm should have a way to override the dependencies of sub deps. I think that's the real solution that needs to happen here.

If you still really want me to merge this. I'll do it for $300 usd. You should be able to find me by email on transferwise. My email is in the package.json of this module. I am hoping that this will create a viral shit storm. probably loads of open source consumers will be outraged, good. I know that actually open maintainers will back me. ps. going away for the weekend and I won't look at this issue until monday. when I see a transfer into my account I'll merge it.

dominictarr commented 3 years ago

and yes, I could have merged it in less time than it took me to write that response. But, I'd rather do that, because I'd rather fix the underlying problem. The thing that I love about open source is that individuals actually get the agency to make fix the problems that affect them. right now I can do that better by not merging it!

haha, so tell your manager that this issue is still open because the maintainer is not merging it as a political statement

goatandsheep commented 3 years ago

Regarding becoming an ex-maintainer, I've worked with the NPM team before on issues like this. The solution is someone else comes along with a repo where it is solved and the ownership of the library gets passed along. You shouldn't have to deal with it any longer if you don't want to. There shouldn't be single point of failure. This happened with react-native-dotenv, where I took it over and renovated it. Make sure you have people you trust as collaborators on the project so it's maintained or transfer it to someone who cares. Is this a bad system? Probably. What do y'all propose?

On the flip side, you're right that updating a constant stream of dependencies is a job in itself and is something that needs to be fixed.

Github used to have auto-merge but now it's been removed from dependabot

JimmyBjorklund commented 3 years ago

Development groups tend to solve the issue, e.g share the workload. I guess there are a few devs that could help if you let them. It's like normal work, if you sitt on all the power and don't delegate then you also have too do all the work.

goatandsheep commented 3 years ago

@dominictarr I have a strategy to fund open source development:

goatandsheep commented 3 years ago

I've published

this package is protected from crypto attacks and stuff by snyk

lev-kuznetsov commented 3 years ago

I thought kiwis are supposed to be nice. What a dick.

goatandsheep commented 3 years ago

@lev-kuznetsov he's not entitled to your time. Open source is hard, thankless work. No need to call him names

lev-kuznetsov commented 3 years ago

If you have no time for this just send github emails to spam. If you genuinely want to leave the world a little bit better ask if anybody wants to take over npm publish rights. He spent time to figure out what's going on and then spent more time coming up with fallacious arguments why he can't be bothered to make it better and then he spent more time typing it all up.

Life hack: if anyone says they're doing anything to make a political statement they're a dick regardless of actual gender.

beenotung commented 1 year ago

As stieban as mentioned in https://github.com/igorshubovych/markdownlint-cli/issues/146#issuecomment-815227781, you should be able to resolve the npm audit issue by updating the dependency without any update in this package.

e.g. run pnpm update or npm update