Giter VIP home page Giter VIP logo

Comments (6)

bramswenson avatar bramswenson commented on September 26, 2024 3

👍 for more secret pattern management interfaces on the cli.

from git-secrets.

bramswenson avatar bramswenson commented on September 26, 2024 2

This pattern will match tons of JS files for various reasons such as embedded image data.

from git-secrets.

bramswenson avatar bramswenson commented on September 26, 2024 1

Having to write a regex to prevent false positive is also a show stopper. Think about the embedded images in JS pattern.

from git-secrets.

 avatar commented on September 26, 2024 1

#57 might help with this

from git-secrets.

mtdowling avatar mtdowling commented on September 26, 2024

git-secrets shouldn't scan binary files, so that shouldn't be an issue. This pattern does match SHA-1 hashes, so I agree that it does have a high false positive rate. I'm hesitant to remove this regex now, at least without a major version bump; while it is chatty, it does prevent things like AWS access keys from being committed.

I thought that removing patterns from git-secrets is pretty simple: all you need to do is edit your .git/config file and remove the patterns you don't like under the [secrets] section. For example, in this case, you would remove the line patterns = [A-Z0-9]{20}.

For a more automated method for removing a pattern, what would you think about adding the ability to remove a pattern to git-secrets from the command line?

from git-secrets.

mtdowling avatar mtdowling commented on September 26, 2024

Closed by #89

from git-secrets.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.