Re:Claude Code's "Don't Ask Again" exposes passwords in 1,12...
by wyager on Saturday November 07, 2026 @08:10PM
(#50409619)
Committing `.claude` is at least as dumb as committing `.keys`, so I don't think this is really in-scope
[ Parent
| on HN ]
Re:Claude Code's "Don't Ask Again" exposes passwords in 1,12...
by doginasuit on Saturday November 07, 2026 @08:13PM
(#50409632)
If you know it's there. It gets created on the fly when it is needed, so unless you know that is possible and needs to be gitignored, it could easily slip by.
Re:Claude Code's "Don't Ask Again" exposes passwords in 1,12...
by thenewnewguy on Saturday November 07, 2026 @08:15PM
(#50409641)
Do you not review before committing/pushing?
Re:Claude Code's "Don't Ask Again" exposes passwords in 1,12...
by SV_BubbleTime on Saturday November 07, 2026 @08:26PM
(#50409702)
Oh no, I moved all that manual tedious boring loser mentality stuff to the agent. Now Claude does it for me, and no strangely enough Claude didn’t tell me there was a problem!
Re:Claude Code's "Don't Ask Again" exposes passwords in 1,12...
by weird-eye-issue on Saturday November 07, 2026 @10:02PM
(#50410069)
In these cases they probably just blindly committed everything themselves, if you asked Claude to review the uncommitted changes and do the commit itself it probably would have flagged this.
Re:Claude Code's "Don't Ask Again" exposes passwords in 1,12...
by fwip on Sunday November 08, 2026 @12:37AM
(#50410709)
> Often Claude commits the file itself. In 539 of the 1,105 repos with a real secret that we traced, a commit co-authored by Claude changed the file. Those commits name every recent model, from Sonnet 4.5 to Opus 5.5.
What do you make of that part of the article?
Re:Claude Code's "Don't Ask Again" exposes passwords in 1,12...
by weird-eye-issue on Sunday November 08, 2026 @02:21AM
(#50411128)
Like I said in my comment that you replied to they likely flagged it and then the user just told it to continue anyways.
Re:Claude Code's "Don't Ask Again" exposes passwords in 1,12...
by DrewADesign on Saturday November 07, 2026 @08:39PM
(#50409753)
Saying a professional software developer is responsible for not committing secrets is reasonable. That said, these tool chains all seem to condition developers to offload much of that diligence to the tooling itself, which makes catching mistakes harder because you’re not as used to scanning for them. Secrets files have always been foot guns, and with automation-based complacence, and vibe coders that don’t understand the problem, I imagine these things will become even more common.
Re:Claude Code's "Don't Ask Again" exposes passwords in 1,12...
by doginasuit on Saturday November 07, 2026 @09:41PM
(#50409995)
This did not impact me, but secrets randomly appearing in a project is not an acceptable possibility.
Re:Claude Code's "Don't Ask Again" exposes passwords in 1,12...
by ozozozd on Sunday November 08, 2026 @12:23AM
(#50410633)
Correct stance.
Why would you use a tool that creates tedious and dangerous work for you?
“Oh you are just supposed to make up for Claude’s errors, and problem solved!”
Re:Claude Code's "Don't Ask Again" exposes passwords in 1,12...
by SoftTalker on Saturday November 07, 2026 @08:23PM
(#50409681)
So you just routinely commit everything in the project, without looking at what it is?
Re:Claude Code's "Don't Ask Again" exposes passwords in 1,12...
by Gigachad on Saturday November 07, 2026 @10:54PM
(#50410291)
My coworkers seem to
Re:Claude Code's "Don't Ask Again" exposes passwords in 1,12...
by post-it on Saturday November 07, 2026 @10:37PM
(#50410223)
It's gitignored by default.
Re:Claude Code's "Don't Ask Again" exposes passwords in 1,12...
by TheRoque on Saturday November 07, 2026 @11:11PM
(#50410351)
The default of who or what ? Git ignore is empty "by default", inexistant even
Re:Claude Code's "Don't Ask Again" exposes passwords in 1,12...
by post-it on Saturday November 07, 2026 @11:33PM
(#50410436)
When Claude generates the file, it also generates a .gitignore for it or fills in the existing one.
Re:Claude Code's "Don't Ask Again" exposes passwords in 1,12...
by doginasuit on Sunday November 08, 2026 @04:16AM
(#50411625)
If this is the intended behavior, a quick search of github and the article's findings seem to suggest it doesn't work.
Re:Claude Code's "Don't Ask Again" exposes passwords in 1,12...
by Hizonner on Saturday November 07, 2026 @11:15PM
(#50410366)
If you have stuff in your tree that's not part of your project's code, you're already dumb.
If it's keys or secrets of any kind, you're even dumber.
If it's in a hidden directory, you are even dumber still.
If you rely on somebody stupid enough to do any of that not to commit it, you have gone beyond the valley of the ultra-dumb. Actually that's true even if you rely on smart people not to do it.
You got your dumb card fully punched when you created `.keys` to begin with.
Re:Claude Code's "Don't Ask Again" exposes passwords in 1,12...
by ozozozd on Sunday November 08, 2026 @12:30AM
(#50410671)
Hmm.
Dumb if you don’t turn on auto-mode, dumb if auto-mode commits .claude.
No way to hold it right I guess?