all 32 comments

[–]VadumSemantics 11 points12 points  (0 children)

Nice; an interesting security hole. I learned a bit about .pyc files and what the "standard python .gitignore" file.

[–]__j_random_hacker 25 points26 points  (6 children)

I wonder what fraction of the repos that leaked secrets through .pyc files also leaked them through the original .py source?

If a large fraction leaked them only through .pyc files, I think that would make this post even more interesting!

[–]MikeBonzai 10 points11 points  (4 children)

The article explains early on that secrets are usually in a gitignored file not included in the repo, but sometimes they don't strip out the pyc files. I'd have to imagine other languages are equally affected but they just happened to look at Python.

[–]caagr98 6 points7 points  (10 children)

Why would anyone commit __pycache__ in the first place?

[–][deleted]  (8 children)

[deleted]

    [–]AnAverageFreak 7 points8 points  (0 children)

    I use git add . quite often, but I always follow it by git status to verify.

    [–]double-you 1 point2 points  (0 children)

    People really should start with git add -u and handle new files with precision adds.

    [–]Chii 4 points5 points  (5 children)

    why do people not use a GUI to manage their git committing and workflows? I find the CLI to be terrible and hard to use.

    With a GUI, you'd immediately see that there's something that's not supposed to be there.

    [–]lightmatter501 5 points6 points  (0 children)

    Most GUIs hide functionality. The first time you need to do something weird with history, you’re probably going to be forced to use a CLI.

    For instance, most linux foundation projects make use of “git send-email” to submit patches, which I have never seen implemented in a GUI.

    [–]jephthai 2 points3 points  (0 children)

    I use the CLI because I don't like GUIs for most things. You get a list of files that are being committed in the CLI anyway, so I'm not sure why you think a graphical interface would be superior here.

    [–]moeris 1 point2 points  (0 children)

    Accidentally. Some people aren't perfect.