411 points · by jacques_chester · 4y ago · 93 comments
Microsoft and Google have jointly funded the OpenSSF Alpha-Omega project to the tune of $5M. In turn Alpha-Omega has granted $300k for Node.js security[0] and $400k each to the Python Software Foundation and the Eclipse Foundation for security work[1]. Google are also forming an "Open Source Maintenance Crew"[2], a group of engineers dedicated solely to helping OSS projects improve security. Meanwhile Google, Microsoft, VMware, Intel, Ericsson and Amazon have contributed $30M ($10M from Amazon alone![5]) to the OpenSSF[3] towards a $150M plan to address OSS ecosystem security more broadly[4]. This will begin to bear substantial fruit over the next few years.
For Shopify, Ruby Central is close to our history and our heart; it makes both logical and moral sense for us to give back generously. But that by no means diminishes that many companies are starting to step up in a big way across the board. It is an exciting and promising time for open source security.
[0] https://openssf.org/blog/2022/04/18/openssf-selects-node-js-...
[1] https://openssf.org/blog/2022/06/20/openssf-funds-python-and...
[2] https://blog.google/technology/safety-security/shared-succes...
[3] https://openssf.org/press-release/2022/05/12/the-linux-found...
[4] https://openssf.org/oss-security-mobilization-plan/
[5] https://aws.amazon.com/blogs/opensource/aws-investing-an-add...
Open Source software is essential for progress, but can be scary to rely on. Efforts to harden it should be celebrated.
Another thing I would love to see is the ability to incorporate a signed attestation that a gem was built from a given signed commit. A common dirty trick by supply-chain blackhats is to publish a gem which contains code other than that of the corresponding tag in source control. Given that rubygems has no means to browse package contents other than downloading and extracting the tarballs for manual inspection this means that people typically reference changelog or diff links on source control hosts, despite the fact that those diffs will only be accurate for gems published by good-faith actors following platform norms.
There are a number of ways to fix this and I sure hope one of them gets implemented.
https://reproducible-builds.org/
Part of that is that each builder signs statements about what inputs they used and build results they got and then you trust the ones that agree.
It only just dawned on me that you might have switched your employer allegiance to Shopify :)
- Attacks on supply chains are way up
- Use of open-source software is way up
- Shopify is already contributing engineering time to bundler and rubygems.org
- And there is additional shovel-ready work that Ruby Central could execute on with a financial contribution.
Proactive security work now reduces the chances of a successful supply chain attack and the costs associated with recovery, investigation, and mitigation in addition to reputational damage.
There are secondary benefits, too: when we're confident in the supply chain, we can more confidently update our dependencies in a timely fashion, meaning our developers have access to the newest library features; and we're able to patch known vulnerabilities faster. We invest a lot in feedback loops internally, and this is just another facet of that build/measure/learn cycle.
I made the initial pitch that we should support Ruby Central, but it took off very quickly once senior leadership saw the pitch. Once we got the go-ahead it was mostly worked out by Mike Dalessio (aka flavorjones) and Rafael França for Shopify and Evan Phoenix for Ruby Central.
Being a dev myself and knowing how the sausage is made and how FOSS is the casing that holds it all together, this investment makes perfect sense. But I can also see how investment types would complain, it doesn't exactly look like an investment in the books.
In terms of the long run there's a whole bunch that can be done to continuously harden every aspect of the Ruby supply chain. One thing we've been involved in founding is the OpenSSF Securing Software Repos working group[1], which has meant that RubyGems maintainers are now talking directly with folks from PyPI, npm, Maven Central, Cargo and others. We all face shared threats (eg, dependency confusion, resurrection attacks etc), so getting together to work collectively and share ideas has been super awesome.
going all the way to tensorflow, google ought to have a lot of interest in the ecosystem to mature.
but event the top story today - https://news.ycombinator.com/item?id=32002057 - were primarily Microsoft engineers
I see a reference to them firing 50 people since April. They are still hiring aggressively, I'm talking to one of their recruiters next week.
Other companies split their stock too.
I think there's no denial that we're in a different economic situation than we were a year or so ago - it's all about how you deal with it
Seems like its another PHP type of situation, one which companies will move away from in the coming years. Not the fault of the ecosystem or language but simply because it gets expensive and the talent pool shrinks, not a good driver for business decision makers to back.
edit: i really dont understand the downvotes here I am simply mentioning the changing requirements in many companies that used to be on RoR that cannot find enough senior developers with the budget they are used to, to the point that they are moving to a new platform. theres just not enough RoR jobs and not enough RoR senior devs in the marketplace today and it will be far more bleak in the near future. there's not a lot of new minds coming into RoR and thats the talent pool you are gonna be stuck with if you keep the trajectory. Ask any new graduate and what tech stack language they are using, I'm willing to bet it isn't Ruby or RoR. Their attention is in Javascript or Python or more niche languages like Rust/Elixir/Clojure
The language: Tech companies are becoming more aware of the dangers posed by maintaining and updating large codebases written in an untyped language. I know there's a lot of work still being done in Rubyland on this problem but it feels like the horse left the barn long ago. A lot of Rubyists seem aesthetically opposed to types, including influential language stewards. Sorbet is arguably the Typescript of Rubyland, but it doesn't feel like it's taking off to nearly the same degree. (My theory is that the expressiveness required to support a language as flexible as Ruby results in poor developer ergonomics in terms of the necessary type annotations.)
The ecosystem: Rails is still king, for better and for worse. Back when Rails was in its prime, there weren't as many CRUD web use cases that required marshalling lots of async i/o. Now it's a pretty ubiquitous requirement. You need to fetch data from upstream A and upstream B, then combine them to send back to the client. With Rails, the de facto way to do this is to make these requests serially, which isn't very scalable. Hell, even a single call to a slow remote host can easily end up saturating all of your web workers. Like the types issue, there's a lot of work happening trying to make it easier to perform non-blocking i/o in Ruby/Rails, but it seems like too little too late.
My tiny company is torn between throwing out our ruby code and trying to hire more ruby developers. Our senior ruby guy is leaving, and the one senior candidate we had accepted, then later rejected, our offer. Of the other interviews we have had, candidates were asking for too much (i.e. over $200k base salary) and often barely qualified as a senior, or were simply too inexperienced to replace the person who was leaving.
I'm about one more round of interviews from throwing in the towel and doing a hulkamania hackathon in a new language. The existing code really isn't great either (deprecated gems, lots of accidental complexity, etc) so it is almost tempting to think it would work.
This (insinuation that dynamic typing is inherently worse to maintain) actually isn't true. There's no evidence proving this. Its one of those things that slowly became common sense and goes unquestioned.
There was a Github repo with scientific publications demonstrating the above. I think it made it to HN a while ago. Wish I could find it now.
Ruby is not untyped. It's dynamically typed.
FORTH is untyped.
If you are learning something new or just graduating, you're way more likely to learn rust/python/javascript as those languages offer something unique (low level speed/machine learning/browser stuff).
Rails used to be miles ahead of the competition, but the competition has largely caught up. Rails is still probably the best choice(in my opinion at least) for building a feature-rich webapp backend quickly unless you've got some crazy unrealistic performance requirements(spoiler: most engineers love to pretend they do, but they probably don't)
But these days there are frameworks everywhere so you can write your backend in whatever you're most comfortable with.
it should be that RoR devs get increasing rates as they become rarer but its not, demand is also dwindling as enterprises feel uneasy about banking the future on a smaller talent pool.
But Rust has little to do with what Ruby/Rails is used for, and Python is mostly used in other fields also (it's not like Django is taking over the world). Every time I look at the various JS frameworks it seems like just a huge lift to get something going versus Rails, for typical SME type business problems. Most problems don't really seem to require SPA.
Things like Elixir/Phoenix look very interesting and promising, but their ecosystem is (for now) much smaller. And just the size of the Elixir community right now suggests that it's not like all the RoR developers went to Elixir.
So what is the thing that is so much more attractive than Rails, to solve your everyday business logic issues for small to medium scale problems?
Does all engineers and companies think they are solving Google-scale problems or something?
I feel like I'm missing something obvious.
The average net worth of an American is 122k[0]. So this is like the average American donating $2.44 to a cause.
[0] https://www.fool.com/research/average-net-worth-americans
Most of an individuals networth is likely tied up in their primary residence and highly illiquid.
If you want, you can repeat my math comparing personal income to corporate income. The difference you will find out is not substantial.
That said, you weren't all that far off. Based on Shopify's revenue of $4.6 billion and an average household income of $67k, this is equivalent to a donation of $14.57.
I still argue that the presence of this kind of negativity in every thread about corporate donations is toxic. Corporations don't donate to FOSS nearly as often as they should, and there's no harm in giving them some credit on the rare occasions when it happens.
They have different impacts. That million allows shopify to get features it wants and aligns the project to it's goals. That $2.44 comes without those strings.
You can afford more developers with a million but you end up building something shopify supports which pulls existing resources away from current priorities.
It can boost or even kill a project.
You’re making this sound like a bad thing. It’s a kind gesture nonetheless.