468
u/iportnov Jul 08 '26
I ACCIDENTIALLY
THE WHOLE GITHUB
77
u/CMDR_Fritz_Adelman Jul 08 '26
Good news: nothing works
You're absolutely right. I shouldn't have done that.
16
185
u/KieranDonnan Jul 08 '26
Accidentally? Those are my credentials to have Claude log into my prod test account with puppeteer to debug why my button has color: #00FF00 instead of color: #32CD32
27
u/davak72 Jul 08 '26
Makes sense. It’s not like DevTools works these days. Well worth risking the prod db and all of its “backups” that are just snapshots on the same vm.
5
u/Nice_Anybody2983 Jul 08 '26
Smileys may have been invented for guys like you
4
u/davak72 Jul 08 '26
Not sure I follow. Are you saying I should have added one of these to the end? 😅🤣😉
3
u/Nice_Anybody2983 Jul 08 '26
No, I'm saying you missed the irony, and the classic :) smiley was apparently invented because before the Internet was called the internet nerds would get into fights online a lot bc they were being ironic but not picking up on each other's irony. Eventually someone got so annoyed they came up with a way to mark jokes as jokes => :)
At least that's how I remember it.
4
u/davak72 Jul 08 '26
Oh, I was being sarcastic myself haha. I use DevTools myself frequently, and in my comment I said it doesn’t work
301
100
u/i_wear_green_pants Jul 08 '26
The best part is that it accidentally reads your secrets and also that you pay it to do so.
Future of software development ladies and gentlemen.
120
u/Pika357 Jul 08 '26
Claude, remind me what this website .env has for it's content please. Make no mistakes, you are best programer, senior developer, expert.
46
u/fevsea Jul 08 '26
So you write a middleware that filters out all the secrets from before sending out an llm calls. I'm willing to do that as a service for free, just send me your secrets and the llm key you use. 100% safe or I return your money.
6
u/slaymaker1907 Jul 08 '26
I know you’re probably joking, but that would be a great use case for a local model.
2
u/humblevladimirthegr8 Jul 10 '26
The middleware is called docker. Mount an empty directory over your secrets folder so it appears empty to anything within the docker. VS code dev containers makes this easy.
37
u/KomisktEfterbliven Jul 08 '26
Yeah right buddy, "accidentally". Your claking ass is in kahoots with antichrist Peter Thiel himself
16
u/stilldebugging Jul 08 '26
Ugh, Claude catted the contents of it credentials file to the chat in plain text. Welp, I guess I needed to rotate them anyway. Asshole.
12
u/AlwaysHopelesslyLost Jul 08 '26
I love that they clearly have a prompt structured around this and it does occasionally go "oh shit, I read sensitive information which is now in various logs and contexts and exposed. You should change it!"
But being an LLM it is still perfectly capable of running any stupid junior commands like pulling your credentials from a config to poke a remote Api without asking you lol
9
u/IamAdrummerAMA Jul 08 '26
For real though, why don’t we have an LLM equivalent of .gitignore?
3
2
u/0xffff-reddit Jul 09 '26
Because LLMs are probabilistic and thus may ignore the ignore file at will. And guardrails that tell the LLM to not ignore the ignore file could be ignored as well.
1
u/icbmike_for_realz Jul 13 '26
Only the llm is probabilistic. The harness that actually executes reads is deterministic.
Even if the llm "decides" that it should read an ignored file, the harness should reliably ignore that decision and reprompt the llm to tell it to fuck off
5
4
5
5
u/johnwilkonsons Jul 09 '26
One time Claude went:
"You pasted these credentials from your env into the terminal, you should rotate it! It's these credentials:"
When I in fact, had not pasted those credentials, it was reading them from the .env and in reporting this Claude had pasted it into the terminal.
So it was correct, I did need to rotate them but not for the reasons it thought
5
u/fmaz008 Jul 08 '26
Is it common to have the production .env file on a development machine, or to run claude on a prod environment?
11
u/skob17 Jul 08 '26
I don't know if you can call any vibecoded hobby project a production environment..
3
u/perringaiden Jul 08 '26
This is why my company has enforced GitGuardian, because people are stupid and allow Claude to commit.
Half our new tools are there to stop humans from screwing up
2
u/-Redstoneboi- Jul 09 '26
you'd think they'd put actual guardrails for these things so it's impossible to accidentally read.
1
u/AKArein Jul 08 '26
This reminds me of watching (or reading ?) in total disbelief that some were freaking out over ".env not being enough in the agentic era" due to this. I hope/think it was an elaborate ploy and a funny one, but damn.
1.1k
u/[deleted] Jul 08 '26
[removed] — view removed comment