Hacker Newsnew | past | comments | ask | show | jobs | submit | MattIPv4's commentslogin


Seen multiple folks in the Railway Discord confirming that their secrets stored in Railway have been used by third parties, so it definitely sounds like the attackers were able to read decrypted environment variables.


Environment variables are a terrible place to store secrets.

I'm just going to say it, since having said it non-stop for over 20 years, nobody seems to listen and we keep circling this drain.

The 12 Factor manifesto was 100% wrong on this point.

Use environment variables to point to where secrets are located, not to store their values.


It doesn't sound like they got them via a shell environment, they just hacked into the place that stored them. If the place you store secrets can be hacked into, it doesn't really matter if they are injected into environment variables or not.


Environment variables are generally fine for secrets. Environment files are problematic. Modern systems that inject secrets into the environment launch the program itself.


(pre-caveat thing to not be massively annoyingly pedantic throughout, I'm not a security buff and I know who it is I'm talking to, I'm not trying to correct them)

I'm not sure I get the difference - the issue I would have thought was having the system code have access to the secrets themselves? Env file vs env vars injected at runtime seems the same there - either can be exfiltrated. The difference would be having it injected when used.

Is the problem with files about what happens outside that, being committed, etc?


Everything can be exfiltrated. If you never store the environment in a durable file, it's not meaningfully easier to exfiltrate from the environment than from process memory. Most of the wisdom about the insecurity of environment variables falls out of people setting them in .profile or in .envrc files --- that's very bad, yes, as are configuration files (the thing 12 Factor Apps was responding to).

The headline here is that there's no reason to believe "environment variables" were the reason this data was breached; presumably, the database those variables came from was what actually got hit.


You can say "everything can be exfiltrated" but capturing my PC's password is about nigh unto impossible. The only way it can be captured is if a program has active control over the keyboard controller/associated drivers when I type in the password to unlock it.

These problems were all solved a long time ago.


Plugging a keyboard into your Railway instance every time you start on app is not going to give you a great SaaS experience.


I think some of this conversation is circling around the concept of 'allowable risk'...

We have a couple of VMs that are not mission critical, and they don't hold sensitive data. We just inject the secrets into the runtime. Access to those machines is restricted to a single IP, there's not much more protection in front of them.

A meaningful attack on one of those machines would require a LOT of effort, and almost nothing in return. Some systems don't NEED to have government level security, as a developer it's my job to provide the best solution for each scenario.

(IE, I wouldn't put 12 security cameras and an armed guard around a fruit stand, but I might around a jewelry store)


> Use environment variables to point to where secrets are located, not to store their values.

Now your apps need to be able to read the secret that is pointed to, as opposed to the task runner populating the secret and the app would not know about the details.Not to mention the changes it entails to development.


> Not to mention the changes it entails to development.

Oh no, guess they'll have to hire developers that can adapt!


I'm not sure the point of your comment.


Developers often do things out of convenience, not thinking about repeatability, deployment reliability, security, or thinking about other people having to manage and patch systems for 30y after their gone.

Docker in 2026 is a perfect example of this (long lasting habits due to familiarity, not best practice).

In addition to the developers not interested in using AI to augment their skills and code.


How does this help? If your container gets compromised it's trivial to exfiltrate the secrets.


Or we could just use our operating systems for the things we do well, and have a service to send our API calls to that inserts the appropriate token.

I don't have to enter my Mac's password every time I open an app.


systemd makes it easy: https://systemd.io/CREDENTIALS/


Very sad to see that DigitalOcean is ending its Open Source Credits Program, and I'm sure there are many other large OSS projects beyond Node.js that will be impacted by this.


Looks like MLH + DEV have taken over Hacktoberfest, and are trying something new this year: pushing AI development skills and local gatherings, rather than counting how many PRs folks open.


Just ran into a bunch of my E2Es failing on innocuous POST requests. Really interested to know how Cloudflare managed to outright break POST requests going through them.


I can unfortunately report that these dots have not helped me in cars or trains; anything more than a few seconds looking at a screen during a journey will ensure I feel awful until I have an opportunity to sit or lie still for quite a while after. To be fair, even facing backwards on a train usually makes me sick rather rapidly.


Related: https://news.ycombinator.com/item?id=47824426

https://x.com/theo/status/2045862972342313374

> I have reason to believe this is credible.

https://x.com/theo/status/2045870216555499636

> Env vars marked as sensitive are safe. Ones NOT marked as sensitive should be rolled out of precaution

https://x.com/theo/status/2045871215705747965

> Everything I know about this hack suggests it could happen to any host

https://x.com/DiffeKey/status/2045813085408051670

> Vercel has reportedly been breached by ShinyHunters.


Who is this “theo” person and why are multiple people quoting him? He seems to have little to say that’s substantive at this point.


He’s a tech influencer, probably getting quoted here because he has the biggest reach of people covering this so far.


He’s a streamer who talks about tech. Previously had a sponsorship relationship with Vercel so is theoretically more well connected than average on the topic. He’s also very divisive because he does a lot of ragebait, grievance reporting, and contrarian takes but famously has blind spots for a few companies and technologies that he’s favored in past videos or been sponsored by. I have friends who watch a lot of his videos but I’ve never been able to get into it.


Theo Browne is a reasonably well known YouTuber & YC founder.

https://t3.gg/


He is a paid Vercel shill (literally, he does sponsored content for them on his YouTube channel)



Not in a few years.


YT tech vlogger


> Ones NOT marked as sensitive should be rolled out of precaution

if it's not marked as sensitive (because it is not sensitive) there is no reason to roll them. if you must roll a insensitive env var it should've been sensitive in the first place, no?


There's a difference between sensitive, private and public. If public (i.e. NEXT_PUBLIC_) then yeah likely not a reason to roll. Private keys that aren't explicitly sensitive probably are still sensitive. It doesn't seem to be the default to have things "sensitive" and I can't tell if that's a new classification or has always been there.

I can imagine the reason why an env variable would be sensitive, but need to be re-read at some point. But overwhelmingly it makes sense for the default to be set, and never access again (i.e. Fly env values, GCP secret manager etc)




Hitting 500s when trying to push branches and create PRs.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: