frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Buildcage – Restrict outbound network access during Docker builds

https://github.com/dash14/buildcage
1•dash14•2h ago
Hi HN,

I built buildcage as part of our supply chain security efforts at work. The problem we kept running into: when you run `RUN npm install` in a Dockerfile, that command can connect to anywhere on the internet, and you have no visibility into where it actually goes. Even with pinned dependencies, a compromised package could still exfiltrate build secrets or phone home to a C2 server during the build itself.

buildcage is a Docker container that wraps BuildKit with an internal proxy. You give it a list of allowed domains, and only connections to those domains go through — everything else is blocked and logged. Your Dockerfiles stay exactly the same.

If you use GitHub Actions, it's a few lines to add to your workflow — see the quick start guide. https://github.com/dash14/buildcage#quick-start

I want to be upfront — this is not a silver bullet. If a malicious package is delivered through a legitimate registry, the connection goes to an allowed domain and buildcage can't catch it. You should still pin dependencies, use lock files, and scan for vulnerabilities.

The way I think about it: buildcage is a last line of defense. If something slips through all your other measures, at least it can't call home to an attacker's server.

That framing is exactly why I focused on making it easy to adopt. A security tool that's hard to set up doesn't get set up. With buildcage, you add a few lines to your GitHub Actions workflow and everything just works — no certificate injection, no Dockerfile changes, no special build flags.

Would love to hear your thoughts — whether it's about the approach, the limitations, or how this fits into your own workflow.

Comments

vict00r99•1h ago
Hey!Really interesting approach

I’m going to try it in one of my CI pipelines

Quick question: how granular is the allowlist matching, is it exact domain only or do you support wildcards and subdomain patterns

Show HN: Azazel – Lightweight eBPF-based malware analysis sandbox using Docker

https://github.com/beelzebub-labs/azazel
1•mariocandela•3m ago•0 comments

We urgently need a federal law forbidding AI from impersonating humans

https://garymarcus.substack.com/p/we-urgently-need-a-federal-law-forbidding
1•headalgorithm•3m ago•0 comments

Show HN: File Brain – Local file search with OCR and semantic search

https://github.com/Hamza5/file-brain
1•Hamza5•6m ago•0 comments

Show HN: CLI Rust tool gitorg helps manage GitHub orgs

https://crates.io/crates/gitorg
1•DavidCanHelp•13m ago•0 comments

Gitdatamodel Documentation

https://git-scm.com/docs/gitdatamodel
1•todsacerdoti•13m ago•0 comments

Men lose their Y chromosome as they age – how it may matter

https://theconversation.com/men-lose-their-y-chromosome-as-they-age-scientists-thought-it-didnt-m...
4•bikenaga•16m ago•1 comments

Biases in the Blind Spot: Detecting What LLMs Fail to Mention

https://arxiv.org/abs/2602.10117
1•mpweiher•17m ago•0 comments

Free SERP Content Analyzer

https://kitful.ai/write-tools/serp-content-analyzer
1•eashish93•18m ago•1 comments

Why I'm Not Worried About My AI Dependency

https://boagworld.com/emails/ai-dependency/
1•cdrnsf•20m ago•0 comments

AI Agent Lands PRs in Major OSS Projects, Targets Maintainers via Cold Outreach

https://socket.dev/blog/ai-agent-lands-prs-in-major-oss-projects-targets-maintainers-via-cold-out...
1•cdrnsf•22m ago•0 comments

Internet Increasingly Becoming Unarchivable

https://www.niemanlab.org/2026/01/news-publishers-limit-internet-archive-access-due-to-ai-scrapin...
29•ninjagoo•23m ago•9 comments

Intent to Experiment: Ship Rust XML Parser to 1% stable for non XSLT scenarios

https://groups.google.com/a/chromium.org/g/blink-dev/c/D7BE4QPw0S4
1•justin-reeves•26m ago•0 comments

Google Search Isn't a Common Carrier–Richards vs. Google

https://blog.ericgoldman.org/archives/2026/02/google-search-isnt-a-common-carrier-richards-v-goog...
2•hn_acker•27m ago•0 comments

Rendering attractors at 200 megapixels on A100s

https://axisophy.com/collections/mersenne
2•scylx•28m ago•1 comments

First Ariane 6 with four boosters lifts off

https://www.esa.int/Enabling_Support/Space_Transportation/Ariane/More_power_first_Ariane_6_with_f...
3•belter•29m ago•0 comments

What If AI Isn't the Goal? – Living in a Post-AI Society

https://zias.be/blog/living-in-a-post-ai-society
1•ziasvannes•32m ago•2 comments

Putting economic theory to the test: Cutting local taxes cuts household income

https://phys.org/news/2026-02-economic-theory-local-taxes-household.html
2•bikenaga•32m ago•1 comments

How AI slop is causing a crisis in computer science

https://www.nature.com/articles/d41586-025-03967-9
4•gnabgib•37m ago•0 comments

Show HN: AuraSpend " Voice-first expense tracker using Gemini for NLU

https://play.google.com/store/apps/details?id=com.intrepid.auraspend&hl=en_US
1•subhanzg•40m ago•0 comments

Every App Needs Auth / Ory Helps / This Template Fixes It

https://github.com/Samuelk0nrad/docker-ory
1•samuel_kx0•40m ago•0 comments

Show HN: DryCast – Never run outside to save your laundry from rain again

https://drycast.app/
1•AwkwardPanda•40m ago•0 comments

Manage, freeze and restore GPU processes quickly

https://github.com/shayonj/gpusched
2•shayonj•41m ago•0 comments

Show HN: Tilth v0.3 – 17% cheaper AI code navigation (279 runs, 3 Claude models)

1•jahala•42m ago•0 comments

Tech leaders pour $50M into super PAC to elect AI-friendly candidates

https://www.latimes.com/business/story/2026-02-13/tech-titans-pour-50-million-into-super-pac-to-e...
3•geox•44m ago•0 comments

How Head Works in Git

https://jvns.ca/blog/2024/03/08/how-head-works-in-git/
3•b-man•44m ago•0 comments

I Visited the Future of AI Engineering – and Returned with a Warning

https://igor718185.substack.com/p/i-visited-the-future-of-ai-engineering
2•iggori•46m ago•3 comments

Dr. Oz pushes AI avatars as a fix for rural health care

https://www.npr.org/2026/02/14/nx-s1-5704189/dr-oz-ai-avatars-replace-rural-health-workers
13•toomuchtodo•47m ago•8 comments

TikTok

https://www.tiktok.com/explore
1•Hackersing•47m ago•0 comments

Bloom-Filter Art: Encode words in a heart; Send it to someone special

https://improbable-heart.com/
1•nait•48m ago•1 comments

Show HN: Clawsec - Open-source plugin for OpenClaw that blocks dangerous actions

https://www.clawsec.bot
1•subho007•51m ago•1 comments