frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

The solution the supply chain problems is removing your deps from .gitignore

4•SchizoDuckie•10h ago
I head the major realisation today that we've all been bamboozled.

All the supply chain attacks currently happening would never even happen if we just checked in our language-respective vendor/node_modules/venv directories into git and just deployed straight from that.

Screw the dependency install and upgrade step. Screw the automated build step. Screw the breaking changes because $package_owner doesnt adhere to semver.

Checking in dependencies and their updates individually is, and has always been the way out of this mess.

Remove vendor/ node_modules/ and venv/ from your .gitignore today and skip the install step in your CI and you eliminate 99% of the attack surface instantly. Was it always that easy???? I think it was!

You think checking in your composer.lock or package.lock saves you? Hah. Npm install is "smart" and checks for updates and silently installs new versions and updates your lockfile. You should have used npm ci instead. We actively train devs to run 'composer update' to check for new releases that fix 'issues' they might encounter locally and delete the lockfiles as a first measure to fix issues.

Do you vet every update to your composer.lock? That one innocent commit hash that's changed could just pull in 20kb of obfuscated exploit code and you'd never know.

All of this is compounded by the longstanding hilarious github bug where you can fork a repository and push your commit to it, then pluck the commit hash and append that to the original repository URL. On the Github webinterface you'll see a notice "this commit has might not belong to this repo or a fork of it" but on the terminal you'll never see that, and that's exactly what the current worms exploit.

Checking in your dependencies and eliminating the install step would make all of this trackable and traceable. Imo the performance hit is worth it.

Ask HN: Did Messages get removed from Google Takeout?

15•MollyRealized•9h ago•0 comments

The solution the supply chain problems is removing your deps from .gitignore

4•SchizoDuckie•10h ago•0 comments

Ask HN: How to learn how to develop real time applications?

4•creatorcoder•12h ago•5 comments

Ask HN: Does anyone what a "RiotCache.dat" file was doing in my EFI partition?

5•kromerless•18h ago•6 comments

Using games/cards to learn new skills

5•dominikz•14h ago•0 comments

Ask HN: Is $300/HR too low these days for custom full stack?

15•noduerme•1d ago•10 comments

Ask HN: Do you have a colophon for your personal website?

8•susam•19h ago•5 comments

We were building infra for OpenClaw, and today I just tried Hermes and holy shit

5•Stanlyya•20h ago•1 comments

Ask HN: Shouldn't Google need to give a public statement about Railway incident?

177•srameshc•3d ago•105 comments

Ask HN: Failing interviews for mid-level SWE in UK, advice please

18•mjb8086•2d ago•11 comments

Alternatives to HN for "tech outside of AI" discussion?

58•summonerOS•4d ago•35 comments

Ask HN: How to increase depth instead of breadth as 10 yoe as swe?

8•Cheesebh•1d ago•6 comments

Ask HN: Are there any serious efforts to organize tech labor now?

35•0rganize•3d ago•26 comments

Ask HN: OpenAI, SpaceX/xAI, Anthropic all to IPO, is this a sign of the peak?

7•virgildotcodes•1d ago•10 comments

Ask HN: How much AI is in your writing?

7•js98•1d ago•26 comments

Ask HN: What to learn and do, that makes me least affected by AI in STEM?

6•s3arch•1d ago•5 comments

Tell HN: Google banned Railway's account. Everything down

32•sergiotapia•4d ago•18 comments

Tell HN: I went to Alaska's northernmost town and this was the GeoIP location

3•ironmagma•2d ago•0 comments

Ask HN: What's New in Crypto?

5•kaycebasques•1d ago•11 comments

Tell HN: The Threat to US Citizen's ID / Voting Is Private Services

2•m3047•1d ago•8 comments

Valgrind-3.27.1 Is Available

10•paulf38•2d ago•1 comments

"Subligence" – proposed coinage for LLM "intelligence"

4•akiarie•1d ago•5 comments

What I learned from tinkering with programming languages in the last 34 days

3•alonsovm44•2d ago•2 comments

Why does it look like LLMs consistently overestimate implementation time?

4•bridgettegraham•2d ago•14 comments

Tell HN: Gemini 3.5 Flash breaks in stupid ways

8•XCSme•2d ago•2 comments

You've reached the end!